0% found this document useful (0 votes)
687 views473 pages

Device Network SDK (Access Control On Card)

This document provides a developer guide for using the Device Network SDK to access device functions for access control applications on cards. It describes typical applications such as collecting data, managing card/face/fingerprint information, configuring schedules, handling alarms/events, remotely controlling doors, status monitoring, and turnstile settings. The document also includes API references and descriptions of relevant structures and enumerations.

Uploaded by

Bruno Lopes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
687 views473 pages

Device Network SDK (Access Control On Card)

This document provides a developer guide for using the Device Network SDK to access device functions for access control applications on cards. It describes typical applications such as collecting data, managing card/face/fingerprint information, configuring schedules, handling alarms/events, remotely controlling doors, status monitoring, and turnstile settings. The document also includes API references and descriptions of relevant structures and enumerations.

Uploaded by

Bruno Lopes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 473

Device Network SDK (Access Control on

Card)
Developer Guide
Device Network SDK (Access Control on Card) Developer Guide

Legal Information
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE DOCUMENT IS PROVIDED "AS IS"
AND “WITH ALL FAULTS AND ERRORS”. OUR COMPANY MAKES NO REPRESENTATIONS OR
WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. IN NO EVENT
WILL OUR COMPANY BE LIABLE FOR ANY SPECIAL, CONSEQUENTIAL, INCIDENTAL, OR INDIRECT
DAMAGES, INCLUDING, AMONG OTHERS, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS
INTERRUPTION OR LOSS OF DATA, CORRUPTION OF SYSTEMS, OR LOSS OF DOCUMENTATION,
WHETHER BASED ON BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE, IN
CONNECTION WITH THE USE OF THE DOCUMENT, EVEN IF OUR COMPANY HAS BEEN ADVISED OF
THE POSSIBILITY OF SUCH DAMAGES OR LOSS.

i
Device Network SDK (Access Control on Card) Developer Guide

Contents
Chapter 1 Overview .................................................................................................................... 1
1.1 Introduction ........................................................................................................................... 1
1.2 Update History ....................................................................................................................... 1
Chapter 2 Typical Applications .................................................................................................... 6
2.1 Data Collection ....................................................................................................................... 6
2.1.1 Online Collect Data ....................................................................................................... 6
2.1.2 Offline Collect Data ..................................................................................................... 10
2.1.3 Collect Fingerprint ....................................................................................................... 14
2.2 Manage Card Information .................................................................................................... 14
2.2.1 Card Operation ............................................................................................................ 21
2.3 Manage Face Information .................................................................................................... 22
2.4 Manage Fingerprint Information ......................................................................................... 24
2.5 Schedule Settings ................................................................................................................. 26
2.5.1 Configure Authentication Mode Control Schedule ..................................................... 26
2.5.2 Configure Access Permission Control Schedule .......................................................... 32
2.5.3 Configure Door Control Schedule ............................................................................... 38
2.6 Alarm and Event ................................................................................................................... 43
2.6.1 Configure Access Control Event .................................................................................. 43
2.6.2 Receive Alarm/Event in Arming Mode ........................................................................ 50
2.6.3 Receive Alarm/Event in Listening Mode ..................................................................... 53
2.6.4 Search for Access Control Events ................................................................................ 56
2.7 Remotely Control Door ........................................................................................................ 60
2.8 Status Monitoring ................................................................................................................ 62
2.8.1 Configure Attendance Status ...................................................................................... 64
2.9 Turnstile Settings .................................................................................................................. 66
2.9.1 Lane Controller Settings .............................................................................................. 67

ii
Device Network SDK (Access Control on Card) Developer Guide

2.9.2 Main Controller Settings ............................................................................................. 70


2.9.3 Other Settings ............................................................................................................. 72
2.10 Other Applications ............................................................................................................. 74
Chapter 3 API Reference ........................................................................................................... 78
3.1 NET_DVR_Cleanup ............................................................................................................... 78
3.2 NET_DVR_GetErrorMsg ....................................................................................................... 78
3.3 NET_DVR_GetLastError ........................................................................................................ 79
3.4 NET_DVR_Init ....................................................................................................................... 79
3.5 NET_DVR_Login_V40 ........................................................................................................... 79
3.5.1 fLoginResultCallBack ................................................................................................... 80
3.6 NET_DVR_Logout ................................................................................................................. 81
3.7 NET_DVR_SetSDKInitCfg ...................................................................................................... 81
3.8 NET_DVR_GetDeviceAbility ................................................................................................. 82
3.9 NET_DVR_GetDeviceConfig ................................................................................................. 83
3.10 NET_DVR_GetDownloadState ............................................................................................ 85
3.11 NET_DVR_GetNextRemoteConfig ...................................................................................... 85
3.12 NET_DVR_GetUploadState ................................................................................................ 86
3.13 NET_DVR_ControlGateway ................................................................................................ 88
3.14 NET_DVR_SendRemoteConfig ........................................................................................... 88
3.15 NET_DVR_SetDeviceConfig ................................................................................................ 89
3.16 NET_DVR_StartDownload .................................................................................................. 90
3.17 NET_DVR_StartRemoteConfig ........................................................................................... 91
3.17.1 fRemoteConfigCallback ............................................................................................. 92
3.18 NET_DVR_STDXMLConfig ................................................................................................... 93
3.19 NET_DVR_StopDownload .................................................................................................. 94
3.20 NET_DVR_StopRemoteConfig ............................................................................................ 95
3.21 NET_DVR_UploadClose ...................................................................................................... 95
3.22 NET_DVR_UploadFile_V40 ................................................................................................ 96

iii
Device Network SDK (Access Control on Card) Developer Guide

3.23 NET_DVR_CloseAlarmChan_V30 ....................................................................................... 97


3.24 NET_DVR_GetDVRConfig ................................................................................................... 97
3.25 NET_DVR_SetDVRConfig .................................................................................................... 98
3.26 NET_DVR_SetDVRMessageCallBack_V50 .......................................................................... 99
3.26.1 MSGCallBack ........................................................................................................... 106
3.27 NET_DVR_SetupAlarmChan_V50 ..................................................................................... 107
3.28 NET_DVR_StartListen_V30 ............................................................................................... 108
3.29 NET_DVR_StopListen_V30 ............................................................................................... 109
Chapter 4 Structure and Enumeration ..................................................................................... 110
4.1 Data Structure .................................................................................................................... 110
4.1.1 NET_ALARM_CVR_SUBINFO_UNION ........................................................................ 110
4.1.2 NET_ALARM_RECORD_EXCEPTION ........................................................................... 110
4.1.3 NET_ALARM_RECORDFILE_LOSS .............................................................................. 111
4.1.4 NET_ALARM_RESOURCE_USAGE .............................................................................. 111
4.1.5 NET_ALARM_STREAM_EXCEPTION .......................................................................... 112
4.1.6 NET_DVR_ALARMER ................................................................................................. 112
4.1.7 NET_DVR_ALARMINFO_DEV ..................................................................................... 113
4.1.8 NET_DVR_ALARMINFO_DEV_V40 ............................................................................ 114
4.1.9 NET_DVR_ALARMINFO_V30 ..................................................................................... 114
4.1.10 NET_DVR_ALARMINFO_V40 ................................................................................... 115
4.1.11 NET_DVR_ALRAM_FIXED_HEADER ......................................................................... 116
4.1.12 NET_DVR_ALARM_ISAPI_INFO ............................................................................... 120
4.1.13 NET_DVR_ALARM_ISAPI_PICDATA .......................................................................... 120
4.1.14 NET_DVR_ACS_ALARM_INFO_V50 ......................................................................... 121
4.1.15 NET_DVR_ACS_EVENT_CFG .................................................................................... 122
4.1.16 NET_DVR_ACS_EVENT_COND ................................................................................. 123
4.1.17 NET_DVR_ACS_EVENT_DETAIL ............................................................................... 125
4.1.18 NET_DVR_ACS_EVENT_INFO_EXTEND ................................................................... 129

iv
Device Network SDK (Access Control on Card) Developer Guide

4.1.19 NET_DVR_ACS_EVENT_INFO_V50 .......................................................................... 131


4.1.20 NET_DVR_ACS_EXTERNAL_DEV_CFG ..................................................................... 133
4.1.21 NET_DVR_ACS_WORK_STATUS_V50 ....................................................................... 134
4.1.22 NET_DVR_AGAIN_RELATEDEV ................................................................................ 137
4.1.23 NET_DVR_CAPTURE_FACE_CFG .............................................................................. 138
4.1.24 NET_DVR_CAPTURE_FACE_COND .......................................................................... 140
4.1.25 NET_DVR_CAPTURE_FINGERPRINT_CFG ................................................................ 140
4.1.26 NET_DVR_CAPTURE_FINGERPRINT_COND ............................................................. 141
4.1.27 NET_DVR_CARD_READER_CFG_V50 ....................................................................... 141
4.1.28 NET_DVR_CARD_CFG_SEND_DATA ......................................................................... 146
4.1.29 NET_DVR_CARD_CFG_V50 ..................................................................................... 147
4.1.30 NET_DVR_CARD_CFG_COND .................................................................................. 151
4.1.31 NET_DVR_CARD_READER_PLAN ............................................................................. 152
4.1.32 NET_DVR_DATE ....................................................................................................... 152
4.1.33 NET_DVR_DEVICEINFO_V30 ................................................................................... 153
4.1.34 NET_DVR_DEVICEINFO_V40 ................................................................................... 157
4.1.35 NET_DVR_DOOR_FILE_UPLOAD_PARAM ............................................................... 159
4.1.36 NET_DVR_DOOR_STATUS_PLAN ............................................................................. 160
4.1.37 NET_DVR_ETHERNET_V30 ...................................................................................... 160
4.1.38 NET_DVR_EVENT_CARD_LINKAGE_CFG_V51 ......................................................... 161
4.1.39 NET_DVR_EVENT_CARD_LINKAGE_COND .............................................................. 163
4.1.40 NET_DVR_EVETN_CARD_LINKAGE_UNION ............................................................ 164
4.1.41 NET_DVR_EVENT_LINKAGE_INFO .......................................................................... 165
4.1.42 NET_DVR_FACE_FEATURE ....................................................................................... 165
4.1.43 NET_DVR_FACE_PARAM_CFG ................................................................................. 166
4.1.44 NET_DVR_FACE_PARAM_COND .............................................................................. 167
4.1.45 NET_DVR_FINGER_PRINT_CFG_V50 ....................................................................... 168
4.1.46 NET_DVR_FINGER_PRINT_INFO_COND_V50 .......................................................... 169

v
Device Network SDK (Access Control on Card) Developer Guide

4.1.47 NET_DVR_GATE_TIME_CFG .................................................................................... 170


4.1.48 NET_DVR_GROUP_CFG ........................................................................................... 171
4.1.49 NET_DVR_GROUP_COMBINATION_INFO_V50 ....................................................... 172
4.1.50 NET_DVR_HOLIDAY_GROUP_CFG ........................................................................... 172
4.1.51 NET_DVR_HOLIDAY_PLAN_CFG .............................................................................. 173
4.1.52 NET_DVR_INDOOR_UNIT_DEVICEID ....................................................................... 174
4.1.53 NET_DVR_INDOOR_UNIT_RELATEDEV ................................................................... 175
4.1.54 NET_DVR_INIT_CFG_ABILITY .................................................................................. 176
4.1.55 NET_DVR_IPADDR ................................................................................................... 176
4.1.56 NET_DVR_JSON_DATA_CFG .................................................................................... 177
4.1.57 NET_DVR_LOCAL_SDK_PATH .................................................................................. 178
4.1.58 NET_DVR_MANAGE_UNIT_DEVICEID ..................................................................... 178
4.1.59 NET_DVR_MANAGE_UNIT_RELATEDEV .................................................................. 179
4.1.60 NET_DVR_MIME_UNIT ........................................................................................... 179
4.1.61 NET_DVR_MULTI_CARD_CFG_V50 ......................................................................... 180
4.1.62 NET_DVR_MULTI_CARD_GROUP_CFG_V50 ........................................................... 181
4.1.63 NET_DVR_NETCFG_V50 .......................................................................................... 181
4.1.64 NET_DVR_OUTDOOR_FENCE_DEVICEID ................................................................. 183
4.1.65 NET_DVR_OUTDOOR_UNIT_DEVICEID ................................................................... 183
4.1.66 NET_DVR_OUTDOOR_UNIT_RELATEDEV ................................................................ 184
4.1.67 NET_DVR_PERSON_STATISTICS_CFG ....................................................................... 185
4.1.68 NET_DVR_PLAN_TEMPLATE .................................................................................... 186
4.1.69 NET_DVR_PPPOECFG .............................................................................................. 186
4.1.70 NET_DVR_RIGHT_CONTROLLER_AUDIO_PARAM ................................................... 187
4.1.71 NET_DVR_SETUPALARM_PARAM_V50 ................................................................... 187
4.1.72 NET_DVR_SIMPLE_DAYTIME ................................................................................... 190
4.1.73 NET_DVR_SINGLE_PLAN_SEGMENT ....................................................................... 191
4.1.74 NET_DVR_TIME ....................................................................................................... 192

vi
Device Network SDK (Access Control on Card) Developer Guide

4.1.75 NET_DVR_TIME_EX ................................................................................................. 192


4.1.76 NET_DVR_TIME_SEGMENT ..................................................................................... 192
4.1.77 NET_DVR_USER_LOGIN_INFO ................................................................................ 193
4.1.78 NET_DVR_VALID_PERIOD_CFG ............................................................................... 194
4.1.79 NET_DVR_VIDEO_INTERCOM_DEVICEID_CFG ........................................................ 195
4.1.80 NET_DVR_VIDEO_INTERCOM_RELATEDEV_CFG ..................................................... 196
4.1.81 NET_DVR_VIDEO_INTERCOM_UNIT_DEVICEID_UNION ......................................... 196
4.1.82 NET_DVR_VIDEO_INTERCOM_UNIT_RELATEDEV_UNION ...................................... 198
4.1.83 NET_DVR_WEEK_PLAN_CFG ................................................................................... 198
4.1.84 NET_DVR_XML_CONFIG_INPUT ............................................................................. 199
4.1.85 NET_DVR_XML_CONFIG_OUTPUT .......................................................................... 200
4.1.86 NET_SDK_CALLBACK_STATUS_NORMAL ................................................................. 200
4.1.87 NET_VCA_POINT ..................................................................................................... 201
4.1.88 NET_VCA_RECT ....................................................................................................... 201
4.2 Enumeration Definition ...................................................................................................... 202
4.2.1 NET_SDK_DOWNLOAD_TYPE .................................................................................... 202
4.2.2 NET_SDK_UPLOAD_TYPE .......................................................................................... 205
Chapter 5 Request URIs .......................................................................................................... 210
5.1 /ISAPI/AccessControl/AcsEventTotalNum/capabilities?format=json ................................. 210
5.2 /ISAPI/AccessControl/AcsEventTotalNum?format=json ..................................................... 210
5.3 /ISAPI/AccessControl/attendanceStatusModeCfg/capabilities?format=json .................... 211
5.4 /ISAPI/AccessControl/attendanceStatusModeCfg?format=json ........................................ 211
5.5 /ISAPI/AccessControl/attendanceStatusRuleCfg/capabilities?format=json ....................... 212
5.6 /ISAPI/AccessControl/attendanceStatusRuleCfg?attendanceStatus=&format=json .......... 212
5.7 /ISAPI/AccessControl/capabilities ...................................................................................... 213
5.8 /ISAPI/AccessControl/CaptureCardInfo/capabilities?format=json .................................... 213
5.9 /ISAPI/AccessControl/CaptureCardInfo?format=json ........................................................ 214
5.10 /ISAPI/AccessControl/CaptureIDInfo/capabilities?format=json ...................................... 214

vii
Device Network SDK (Access Control on Card) Developer Guide

5.11 /ISAPI/AccessControl/CaptureIDInfo?format=json .......................................................... 214


5.12 /ISAPI/AccessControl/CapturePresetParam/capabilities?format=json ............................ 215
5.13 /ISAPI/AccessControl/CapturePresetParam?format=json ............................................... 215
5.14 /ISAPI/AccessControl/CaptureRule/capabilities?format=json ......................................... 216
5.15 /ISAPI/AccessControl/CaptureRule?format=json ............................................................. 216
5.16 /ISAPI/AccessControl/CardOperations/capabilities?format=json .................................... 217
5.17 /ISAPI/AccessControl/CardOperations/cardParam?format=json ..................................... 217
5.18 /ISAPI/AccessControl/CardOperations/controlBlock?format=json .................................. 218
5.19 /ISAPI/AccessControl/CardOperations/dataBlock/control?format=json ......................... 218
5.20 /ISAPI/AccessControl/CardOperations/dataBlock/<address>?format=json .................... 219
5.21 /ISAPI/AccessControl/CardOperations/dataTrans?format=json ...................................... 219
5.22 /ISAPI/AccessControl/CardOperations/encryption?format=json .................................... 220
5.23 /ISAPI/AccessControl/CardOperations/protocol?format=json ........................................ 220
5.24 /ISAPI/AccessControl/CardOperations/reset?format=json .............................................. 221
5.25 /ISAPI/AccessControl/CardOperations/sectionEncryption?format=json ......................... 221
5.26 /ISAPI/AccessControl/CardOperations/verification?format=json .................................... 221
5.27 /ISAPI/AccessControl/ChannelControllerAlarmLinkage ................................................... 222
5.28 /ISAPI/AccessControl/ChannelControllerAlarmLinkage/capabilities ............................... 222
5.29 /ISAPI/AccessControl/ChannelControllerAlarmOut/capabilities ..................................... 223
5.30 /ISAPI/AccessControl/ChannelControllerAlarmOut?controllerType=&alarmOutNo= ..... 223
5.31 /ISAPI/AccessControl/ChannelControllerAlarmOutControl ............................................. 224
5.32 /ISAPI/AccessControl/ChannelControllerAlarmOutControl/capabilities .......................... 225
5.33 /ISAPI/AccessControl/ChannelControllerCfg .................................................................... 225
5.34 /ISAPI/AccessControl/ChannelControllerCfg/capabilities ................................................ 226
5.35 /ISAPI/AccessControl/channelControllerTypeCfg/capabilities?format=json ................... 226
5.36 /ISAPI/AccessControl/channelControllerTypeCfg?format=json ....................................... 226
5.37 /ISAPI/AccessControl/Configuration/IRCfg/capabilities?format=json ............................. 227
5.38 /ISAPI/AccessControl/Configuration/IRCfg?format=json ................................................. 227

viii
Device Network SDK (Access Control on Card) Developer Guide

5.39 /ISAPI/AccessControl/Configuration/NFCCfg/capabilities?format=json .......................... 228


5.40 /ISAPI/AccessControl/Configuration/NFCCfg?format=json .............................................. 229
5.41 /ISAPI/AccessControl/Configuration/RFCardCfg/capabilities?format=json ..................... 229
5.42 /ISAPI/AccessControl/Configuration/RFCardCfg?format=json ......................................... 230
5.43 /ISAPI/AccessControl/FaceCompareCond ........................................................................ 230
5.44 /ISAPI/AccessControl/FaceCompareCond/capabilities .................................................... 231
5.45 /ISAPI/AccessControl/GateDialAndInfo ........................................................................... 231
5.46 /ISAPI/AccessControl/GateDialAndInfo/capabilities ........................................................ 232
5.47 /ISAPI/AccessControl/GateIRStatus ................................................................................. 232
5.48 /ISAPI/AccessControl/GateIRStatus/capabilities .............................................................. 233
5.49 /ISAPI/AccessControl/GateRelatedPartsStatus ................................................................ 233
5.50 /ISAPI/AccessControl/GateRelatedPartsStatus/capabilities ............................................. 233
5.51 /ISAPI/AccessControl/GateStatus .................................................................................... 234
5.52 /ISAPI/AccessControl/GateStatus/capabilities ................................................................. 234
5.53 /ISAPI/AccessControl/GetAcsEvent/capabilities .............................................................. 235
5.54 /ISAPI/AccessControl/IdentityTerminal/capabilities ........................................................ 235
5.55 /ISAPI/AccessControl/IdentityTerminal ............................................................................ 235
5.56 /ISAPI/AccessControl/OfflineCapture/capabilities?format=json ..................................... 236
5.57 /ISAPI/AccessControl/OfflineCapture/DataCollections/<captureNo>?format=json ........ 237
5.58 /ISAPI/AccessControl/OfflineCapture/DataCollections/searchTask?format=json ........... 237
5.59 /ISAPI/AccessControl/OfflineCapture/DataCollections?format=json .............................. 237
5.60 /ISAPI/AccessControl/OfflineCapture/dataOutput/progress?format=json ..................... 238
5.61 /ISAPI/AccessControl/OfflineCapture/dataOutput?format=json ..................................... 238
5.62 /ISAPI/AccessControl/OfflineCapture/progress?format=json .......................................... 239
5.63 /ISAPI/AccessControl/OfflineCapture/ruleInfo?format=json ........................................... 239
5.64 /ISAPI/AccessControl/RightControllerAudio/capabilities ................................................ 240
5.65 /ISAPI/AccessControl/RightControllerAudio/<ID> ........................................................... 240
Chapter 6 Request and Response Messages ............................................................................ 242

ix
Device Network SDK (Access Control on Card) Developer Guide

6.1 JSON_AcsEventTotalNum ................................................................................................... 242


6.2 JSON_AcsEventTotalNumCond .......................................................................................... 242
6.3 JSON_AttendanceStatusModeCfg ...................................................................................... 243
6.4 JSON_AttendanceStatusRuleCfg ........................................................................................ 243
6.5 JSON_Cap_AcsEventTotalNum ........................................................................................... 244
6.6 JSON_Cap_AttendanceStatusModeCfg .............................................................................. 245
6.7 JSON_Cap_AttendanceStatusRuleCfg ................................................................................ 246
6.8 JSON_CapturePreset .......................................................................................................... 247
6.9 JSON_CapturePresetCap .................................................................................................... 247
6.10 JSON_CaptureProgress .................................................................................................... 247
6.11 JSON_CaptureRule ........................................................................................................... 248
6.12 JSON_CaptureRuleCap ..................................................................................................... 248
6.13 JSON_CardEncryption ...................................................................................................... 249
6.14 JSON_CardInfo_Collection ............................................................................................... 249
6.15 JSON_CardInfoCap ........................................................................................................... 249
6.16 JSON_CardOperationsCap ................................................................................................ 250
6.17 JSON_CardParam ............................................................................................................. 253
6.18 JSON_CardProto ............................................................................................................... 254
6.19 JSON_CardResetResponse ............................................................................................... 254
6.20 JSON_ChannelControllerTypeCfg ..................................................................................... 254
6.21 JSON_ChannelControllerTypeCfgCap ............................................................................... 254
6.22 JSON_ControlBlock .......................................................................................................... 255
6.23 JSON_DataBlock ............................................................................................................... 255
6.24 JSON_DataBlockCtrl ......................................................................................................... 255
6.25 JSON_DataOutputCfg ....................................................................................................... 256
6.26 JSON_DataOutputProgress .............................................................................................. 256
6.27 JSON_DataTrans ............................................................................................................... 256
6.28 JSON_EventNotificationAlert_Alarm/EventInfo ............................................................... 257

x
Device Network SDK (Access Control on Card) Developer Guide

6.29 JSON_IdentityInfo ............................................................................................................ 257


6.30 JSON_IdentityInfoCap ...................................................................................................... 258
6.31 JSON_IdentityInfoCond .................................................................................................... 260
6.32 JSON_IRCfg ....................................................................................................................... 261
6.33 JSON_IRCfgCap ................................................................................................................. 261
6.34 JSON_NFCCfg ................................................................................................................... 261
6.35 JSON_NFCCfgCap ............................................................................................................. 262
6.36 JSON_OfflineCaptureCap ................................................................................................. 262
6.37 JSON_ResponseStatus ...................................................................................................... 266
6.38 JSON_RFCardCfg .............................................................................................................. 267
6.39 JSON_RFCardCfgCap ........................................................................................................ 267
6.40 JSON_RuleInfo ................................................................................................................. 267
6.41 JSON_SearchTaskCond ..................................................................................................... 268
6.42 JSON_SearchTaskResponse .............................................................................................. 269
6.43 JSON_SectionEncryption .................................................................................................. 270
6.44 JSON_Verification ............................................................................................................. 271
6.45 XML_AcsAbility ................................................................................................................ 271
6.46 XML_Cap_AccessControl ................................................................................................. 304
6.47 XML_Cap_ChannelControllerAlarmLinkage ..................................................................... 311
6.48 XML_Cap_ChannelControllerAlarmOut ........................................................................... 312
6.49 XML_Cap_ChannelControllerAlarmOutControl ............................................................... 312
6.50 XML_Cap_ChannelControllerCfg ...................................................................................... 313
6.51 XML_Cap_FaceCompareCond .......................................................................................... 313
6.52 XML_Cap_GateDialAndInfo ............................................................................................. 314
6.53 XML_Cap_GateIRStatus ................................................................................................... 314
6.54 XML_Cap_GateRelatedPartsStatus .................................................................................. 315
6.55 XML_Cap_GateStatus ...................................................................................................... 316
6.56 XML_Cap_GetAcsEvent .................................................................................................... 316

xi
Device Network SDK (Access Control on Card) Developer Guide

6.57 XML_Cap_IdentityTerminal .............................................................................................. 317


6.58 XML_Cap_RightControllerAudio ...................................................................................... 319
6.59 XML_ChannelControllerAlarmLinkage ............................................................................. 319
6.60 XML_ChannelControllerAlarmOut ................................................................................... 320
6.61 XML_ChannelControllerAlarmOutControl ....................................................................... 320
6.62 XML_ChannelControllerCfg .............................................................................................. 320
6.63 XML_Desc_AcsAbility ....................................................................................................... 321
6.64 XML_EventNotificationAlert_AlarmEventInfo ................................................................. 321
6.65 XML_FaceCompareCond .................................................................................................. 322
6.66 XML_GateDialAndInfo ..................................................................................................... 322
6.67 XML_GateIRStatus ........................................................................................................... 323
6.68 XML_GateRelatedPartsStatus .......................................................................................... 323
6.69 XML_GateStatus .............................................................................................................. 324
6.70 XML_IdentityTerminal ...................................................................................................... 324
6.71 XML_ResponseStatus ....................................................................................................... 326
6.72 XML_RightControllerAudio .............................................................................................. 327
Appendix A. Appendixes ......................................................................................................... 328
A.1 Access Control Event Types ............................................................................................... 328
A.2 Event Linkage Types ........................................................................................................... 344
A.3 Device Network SDK Errors ................................................................................................ 356
A.4 HCNetSDK Log Types ......................................................................................................... 397
A.5 ISAPI Response Codes ........................................................................................................ 428

xii
Device Network SDK (Access Control on Card) Developer Guide

Chapter 1 Overview
Access Control is the selective restriction of access to a place or other resources. The access control
applications integrated via Hikvision Device Network SDK (hereafter referred as to "HCNetSDK") in
this manual take the card as the management and control unit, which indicates that all applications
are integrated around the basic unit. That is, the fingerprints, faces, and other attributes will be
linked to a card for management and control.

1.1 Introduction
This manual mainly provides the integration flows and related APIs for access controller, access
control terminal, fingerprint access control terminal, face recognition terminal, elevator controller,
swing barrier, and so on, to implement the following functions : schedule configuration, card/
fingerprint/face information management, alarm/event configuration, and door control.

1.2 Update History

Summary of Changes in Version 6.1.4.10_Mar., 2020


Related Product: DS-K3B501S Series Swing Barrier with Software Version 1.1.0
Extended the configuration capability message JSON_ChannelControllerTypeCfgCap and the
parameter message JSON_ChannelControllerTypeCfg of the lane controller's device type (related
URIs: /ISAPI/AccessControl/channelControllerTypeCfg/capabilities?format=json and /ISAPI/
AccessControl/channelControllerTypeCfg?format=json ):
added a device type "K3B501S-A" (DS-K3B501S series swing barrier) to the node deviceModel.
Summary of Changes in Version 6.1.4.10_Mar., 2020
Related Product: DS-K3G501 Series Tripod Turnstile with Software Version 1.0.0
Extended the configuration capability message JSON_ChannelControllerTypeCfgCap and the
parameter message JSON_ChannelControllerTypeCfg of the lane controller's device type (related
URIs: /ISAPI/AccessControl/channelControllerTypeCfg/capabilities?format=json and /ISAPI/
AccessControl/channelControllerTypeCfg?format=json ):
added a device type "K3G501" (DS-K3G501 series tripod turnstile) to the node deviceModel.
Summary of Changes in Version 6.1.3.X_Sept., 2019
Related Products: Enrollment Station with Models DS-K1F600-D6E and DS-K1F600-D6E-F in Version
1.0
1. Extended access control capability message XML_Cap_AccessControl (related URL: /ISAPI/
AccessControl/capabilities ; related API: NET_DVR_STDXMLConfig ):
added five nodes: <isSupportCaptureIDInfo> (whether it supports collecting ID card
information), <isSupportCaptureRule> (whether it supports configuring online collection rules),

1
Device Network SDK (Access Control on Card) Developer Guide

<isSupportCapturePresetParam> (whether it supports configuring preset parameters of online


collection), <isSupportOfflineCapture> (whether it supports offline collection), and
<isSupportCardOperations> (whether it supports card operation).
2. Added the function of online collecting data, refer to Online Collect Data .
3. Added the function of offline collecting data, refer to Offline Collect Data .
4. Added three error codes to Device Network SDK Errors : 1927-"NET_ERR_CAPTURE_TIMEOUT"
(collection timed out), 1928-"NET_ERR_LOW_SCORE" (low quality of collected data), and
1929-"NET_ERR_OFFLINE_CAPTURING" (the device is collecting data offline and cannot
respond).
5. Added two sub status codes: 0x30006000-"captureTimeout" (data collection timed out) and
0x30006001-"lowScore" (low quality of collected data) to status code 3 (Device Error) in ISAPI
Response Codes .
6. Added functions of operating cards, refer to Card Operation for details.
7. Added functions of configuring active infrared intrusion parameters (related API:
NET_DVR_STDXMLConfig ):
Get configuration capability: GET /ISAPI/AccessControl/Configuration/IRCfg/capabilities?
format=json
Get or set parameters: GET or PUT /ISAPI/AccessControl/Configuration/IRCfg?format=json
8. Added multiple log types, refer to HCNetSDK Log Types for details:
added six minor log types to the "MAJOR_EXCEPTION" log type:
MINOR_AUXILIARY_BOARD_OFFLINE (0x43c), MINOR_AUXILIARY_BOARD_RESUME (0x43d),
MINOR_IDCARD_SECURITY_MOUDLE_EXCEPTION (0x43e),
MINOR_IDCARD_SECURITY_MOUDLE_RESUME (0x43f), MINOR_FP_PERIPHERAL_EXCEPTION
(0x440), and MINOR_FP_PERIPHERAL_RESUME (0x441);
added three minor log types to the "MAJOR_OPERATION" log type:
MINOR_OFFLINE_DATA_OUTPUT (0x423), MINOR_CREATE_SSH_LINK (0x42d), and
MINOR_CLOSE_SSH_LINK (0x42e);
added 14 minor log types to the "MAJOR_INFORMATION" log type: MINOR_LIVE_DETECT_OPEN
( 0x400), MINOR_LIVE_DETECT_CLOSE (0x401), MINOR_CLEAR_DATA_COLLECTION (0x402),
MINOR_DELETE_DATA_COLLECTION (0x403), MINOR_EXPORT_DATA_COLLECTION (0x404),
MINOR_CARD_LEN_CONFIG (0x405), MINOR_DATA_BASE_INIT_FAILED (0x406),
MINOR_DATA_BASE_PATCH_UPDATE (0x407), MINOR_PSAM_CARD_INSERT (0x408),
MINOR_PSAM_CARD_REMOVE (0x409), MINOR_HARD_FAULT_REBOOT (0x40a),
MINOR_PSAM_CARD_OCP (0x40b), MINOR_STACK_OVERFLOW (0x40c), and
MINOR_PARM_CFG (0x40d).

Summary of Changes in Version 6.1.0.20_Aug., 2019


Related Product: DS-K3Y501-L1, DS-K3Y501-L2, DS-K3Y501-M1, DS-K3Y501-M2, and DS-K3Y501-R
Flap Barrier with Software Version 1.1.0
1. Added URLs of configuring lane controller (related API: NET_DVR_STDXMLConfig ):
Get configuration capability: GET /ISAPI/AccessControl/ChannelControllerCfg/capabilities ;

2
Device Network SDK (Access Control on Card) Developer Guide

Get or set parameters: GET or PUT /ISAPI/AccessControl/ChannelControllerCfg .


2. Added URLs of configuring device type of the lane controller (related API:
NET_DVR_STDXMLConfig ):
Get configuration capability: GET /ISAPI/AccessControl/channelControllerTypeCfg/capabilities?
format=json ;
Get or set parameters: GET or PUT /ISAPI/AccessControl/channelControllerTypeCfg?
format=json .
3. Extended access control capability message XML_Cap_AccessControl (related URL: /ISAPI/
AccessControl/capabilities ; related API: NET_DVR_STDXMLConfig ):
added a node <isSupportChannelControllerTypeCfg> (whether it supports configuring device
type of the lane controller).

Summary of Changes in Version 6.1.0.10_July, 2019


Related Product Type: DS-K2600 Series, DS-K2600E Series, DS-K2602X-AI, DS-K2800T Series, DS-
K2800-XB Series, and DS-K2800-XF Series Access Controller; DS-K1T105 Series, DS-K1T200 Series
(DS-K1T200/DS-K1T201), DS-K1T300 Series (DS-K1T300/DS-K1T301), and DS-K1T802 Series Access
Control Terminal; DS-K2210 Series Elevator Controller; DS-K1T604 Series, DS-K1T605 Series, DS-
K1T606 Series, DS-K1T607Series, DS-K1T610 Series, DS-K5603 Series, DS-K5604 Series, and DS-
K5607 Series Face Recognition Terminal; DS-K1T500 Series and DS-K1T501 Series Video Access
Control Terminal; DS-K3M200 Swing Barrier.
1. Added the function of enabling or disabling NFC (Near-Field Communication) function (related
API: NET_DVR_STDXMLConfig ):
Get the configuration capability: GET /ISAPI/AccessControl/Configuration/NFCCfg/capabilities?
format=json ;
Get parameters: GET /ISAPI/AccessControl/Configuration/NFCCfg?format=json ;
Set parameters: PUT /ISAPI/AccessControl/Configuration/NFCCfg?format=json .
2. Added the function of enabling or disabling RF (Radio Frequency) card recognition (related API:
NET_DVR_STDXMLConfig ):
Get the configuration capability: GET /ISAPI/AccessControl/Configuration/RFCardCfg/
capabilities?format=json ;
Get parameters: GET /ISAPI/AccessControl/Configuration/RFCardCfg?format=json ;
Set parameters: PUT /ISAPI/AccessControl/Configuration/RFCardCfg?format=json .
3. Extended access control capability message XML_Cap_AccessControl (related URL: /ISAPI/
AccessControl/capabilities ; related API: NET_DVR_STDXMLConfig ):
added two nodes: <isSupportNFCCfg> (whether the device supports enabling or disabling NFC
function) and <isSupportRFCardCfg> (whether the device supports enabling or disabling RF card
recognition).
4. Extended access control capability message XML_AcsAbility (related API:
NET_DVR_GetDeviceAbility ; capability type: "0x801-ACS_ABILITY"):
added eight event types to the sub node <EventEntry> (index: 3) of the node <EventLinkage>
(event card linkage): "InformalMifareCardVerifyFail" (authentication failed: invalid Mifare card),
"CPUCardEncryptVerifyFail" (verifying CPU card encryption failed), "NFCDisableVerifyFail"
(disabling NFC verification failed), "EMCardRecognizeNotEnabled" (EM card recognition is

3
Device Network SDK (Access Control on Card) Developer Guide

disabled), "M1CardRecognizeNotEnabled" (M1 card recognition is disabled),


"CPUCardRecognizeNotEnabled" (CPU card recognition is disabled),
"IDCardRecognizeNotEnabled" (ID card recognition is disabled), and "CardSetSecretKeyFail"
(importing key to the card failed).
5. Extended the access control event types in Access Control Event Types :
added four operation event types to MAJOR_OPERATION:
"MINOR_M1_CARD_ENCRYPT_VERIFY_OPEN" (M1 Card Encryption Verification Enabled),
"MINOR_M1_CARD_ENCRYPT_VERIFY_CLOSE" (M1 Card Encryption Verification Disabled),
"MINOR_NFC_FUNCTION_OPEN" (Opening Door with NFC Card Enabled), and
"MINOR_NFC_FUNCTION_CLOSE" (Opening Door with NFC Card Disabled);
added eight event types to MAJOR_EVENT: "MINOR_INFORMAL_MIFARE_CARD_VERIFY_FAIL"
(Authentication Failed: Invalid Mifare Card), "MINOR_CPU_CARD_ENCRYPT_VERIFY_FAIL"
(Verifying CPU Card Encryption Failed), "MINOR_NFC_DISABLE_VERIFY_FAIL" (Disabling NFC
Verification Failed), "MINOR_EM_CARD_RECOGNIZE_NOT_ENABLED" (EM Card Recognition
Disabled), "MINOR_M1_CARD_RECOGNIZE_NOT_ENABLED" (M1 Card Recognition Disabled),
"MINOR_CPU_CARD_RECOGNIZE_NOT_ENABLED" (CPU Card Recognition Disabled),
"MINOR_ID_CARD_RECOGNIZE_NOT_ENABLED" (ID Card Recognition Disabled), and
"MINOR_CARD_SET_SECRET_KEY_FAIL" (Importing Key to Card Failed).
6. Extended the event linkage types in Event Linkage Types :
added eight event linkage types of the authentication unit:
"EVENT_ACS_INFORMAL_MIFARE_CARD_VERIFY_FAIL" (Authentication Failed: Invalid Mifare
Card), "EVENT_ACS_CPU_CARD_ENCRYPT_VERIFY_FAIL" (Verifying CPU Card Encryption Failed),
"EVENT_ACS_NFC_DISABLE_VERIFY_FAIL" (Disabling NFC Verification Failed),
"EVENT_ACS_EM_CARD_RECOGNIZE_NOT_ENABLED" (EM Card Recognition Disabled),
"EVENT_ACS_M1_CARD_RECOGNIZE_NOT_ENABLED" (M1 Card Recognition Disabled),
"EVENT_ACS_CPU_CARD_RECOGNIZE_NOT_ENABLED" (CPU Card Recognition Disabled),
"EVENT_ACS_ID_CARD_RECOGNIZE_NOT_ENABLED" (ID Card Recognition Disabled), and
"EVENT_ACS_CARD_SET_SECRET_KEY_FAIL" (Importing Key to Card Failed).

Summary of Changes in Version 6.0.2.5_03/2019


Related Product Type: 607 Series, 607P Series, and 607T Series Facial Recognition Terminal
1. Extended configuration capability of intelligent identity detection terminal
XML_Cap_IdentityTerminal (related API: NET_DVR_STDXMLConfig , related URL: /ISAPI/
AccessControl/IdentityTerminal/capabilities ):
added a node <ecoMode> (ECO mode); added a value "none" to the node <idCardReader>.
2. Extended parameter structure of intelligent identity detection terminal XML_IdentityTerminal
(related API: NET_DVR_STDXMLConfig , related URL: /ISAPI/AccessControl/IdentityTerminal ):
added a node <ecoMode> (ECO mode); added a value "none" to the node <idCardReader>.
3. Extended reader configuration structure NET_DVR_CARD_READER_CFG_V50 (related API:
NET_DVR_GetDVRConfig and NET_DVR_SetDVRConfig , commands: 2505-
NET_DVR_GET_CARD_READER_CFG_V50 and 2506-NET_DVR_SET_CARD_READER_CFG_V50):
added a parameter byFaceRecogizeEnable (whether to enable face recognition) via 1 reserved
byte.

4
Device Network SDK (Access Control on Card) Developer Guide

4. Extended schedule parameter structure NET_DVR_SINGLE_PLAN_SEGMENT :


added two values to the parameter byVerifyMode (authentication mode), i.e., 25 (card or face),
26 (card or face or fingerprint).
5. Extended access control capability (related API: NET_DVR_GetDeviceAbility ; capability type:
"0x801-ACS_ABILITY"):
added two values to the sub node <verifyType> (authentication mode) of node
<CardReaderVerifyTypePlan>, i.e., "cardOrFace" (card or face) and "cardOrFaceOrFp" (card or
face or fingerprint);
added three values to the sub node <modifyParamType> (parameter types supported to be
edited) of node <Card> (card parameter capability), i.e., "roomNo", "simNo", and "floorNo".
added two sub nodes <nightFaceMatchThresholdN> (1:N face picture comparison threshold at
night) and <faceRecogizeEnable> (whether to enable face recognition) to the node
<CardReaderCfg>;
added two event names "PeopleAndIdCardComparePass" (face and ID card authenticated) and
"PeopleAndIdCardCompareFail" (face and ID card authentication failed) to the sub node
<SubEventNameList> of <node <EventList>
6. Extended the total capability of access control XML_Cap_AccessControl (related API:
NET_DVR_STDXMLConfig , related URL: /ISAPI/AccessControl/capabilities ):
added a node <FactoryReset> (restore to factory settings by condition).

Summary of Changes in Version 5.3.2.10_02/2018


New document.

5
Device Network SDK (Access Control on Card) Developer Guide

Chapter 2 Typical Applications

2.1 Data Collection

2.1.1 Online Collect Data


When the access control device is connected to the client software or platform via the network,
you can collect data (including ID card information, card information, face data, and fingerprint) on
the client software or platform remotely. The online collected data will be uploaded to the client
software or platform in real time.
Before You Start
• 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 the device.

6
Device Network SDK (Access Control on Card) Developer Guide

Steps

Figure 2-1 Programming Flow of Online Collecting Data

7
Device Network SDK (Access Control on Card) Developer Guide

1. Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/AccessControl/


capabilities for getting the access control capability to check whether the device supports
configuring online data collection rules.
The access control capability is returned in XML_Cap_AccessControl by lpOutputParam.
If the device supports, the node <isSupportCaptureRule> is returned in the capability message
and its value is "true", and then you can perform the following steps.
Otherwise, rule configuration of online data collection is not supported, please end this task.
2. Configure online data collection rules.
1) Optional: Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/
AccessControl/CaptureRule/capabilities?format=json for getting the configuration capability
of online data collection rules.
The capability is returned in the message JSON_CaptureRuleCap by lpOutputParam.
2) Optional: Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/
AccessControl/CaptureRule?format=json for getting default or configured rule parameters of
online data collection for reference.
The rule parameters are returned in the message JSON_CaptureRule by lpOutputParam.
3) Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/AccessControl/
CaptureRule?format=json and set lpInputParam to JSON_CaptureRule for setting rule
parameters of online data collection.
3. Optional: Configure preset parameters of online data collection.
1) Check the access control capability XML_Cap_AccessControl to know whether the device
supports configuring preset parameters of online data collection.
If the device supports, the node <isSupportCapturePresetParam> is in the capability
message and its value is "true", and then you can continue to set preset parameters.
Otherwise, preset configuration of online data collection is not supported.
2) Optional: Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/
AccessControl/CapturePresetParam/capabilities?format=json for getting the configuration
capability of preset parameters of online data collection.
The configuration capability is returned in the message JSON_CapturePresetCap by
lpOutputParam.
3) Optional: Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/
AccessControl/CapturePresetParam?format=json for getting default or configured preset
parameters of online data collection for reference.
The preset parameters are returned in the message JSON_CapturePreset by lpOutputParam.
4) Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/AccessControl/
CapturePresetParam?format=json and set lpInputParam to the message
JSON_CapturePreset for setting preset parameters of online data collection.

8
Device Network SDK (Access Control on Card) Developer Guide

Note
The preset parameters are used to display custom information on the device UI during data
collection. Currently, it only supports displaying the name of the person whose data is being
collected. The preset parameters should be configured again for each collection.
4. Perform the following operation(s) to collect ID card information, card information, face data, or
fingerprint online.
Collect ID a. Call NET_DVR_STDXMLConfig to pass through the request URL: GET /
Card ISAPI/AccessControl/capabilities for getting the access control capability
Information to check whether the device supports online collecting ID card
information.
The capability is returned in the message XML_Cap_AccessControl by
lpOutputParam. If the device supports, the node
<isSupportCaptureCardInfo> will be returned and its value is "true", and
then you can perform the following steps.
Otherwise, online collecting ID card information is not supported by the
device, please end this task.
b. Call NET_DVR_STDXMLConfig to pass through the request URL: GET /
ISAPI/AccessControl/CaptureIDInfo/capabilities?format=json for getting
the capability of online collecting ID card information.
The capability is returned in the message JSON_IdentityInfoCap by
lpOutputParam.
c. Call NET_DVR_STDXMLConfig to pass through the request URL: POST /
ISAPI/AccessControl/CaptureIDInfo?format=json and set lpInputParam
to the message JSON_IdentityInfoCond for online collecting ID card
information.
The online collected ID card information is returned in the message
JSON_IdentityInfo by lpOutputParam.
Collect Card a. Call NET_DVR_STDXMLConfig to pass through the request URL: GET /
Information ISAPI/AccessControl/capabilities for getting the access control capability
to check whether the device supports online collecting card information.
The capability is returned in the message XML_Cap_AccessControl by
lpOutputParam. If the device supports, the node
<isSupportCaptureIDInfo> will be returned and its value is "true", and
then you can perform the following steps.
Otherwise, online collecting card information is not supported by the
device, please end this task.
b. Call NET_DVR_STDXMLConfig to pass through the request URL: GET /
ISAPI/AccessControl/CaptureCardInfo/capabilities?format=json for
getting the capability of online collecting card information.

9
Device Network SDK (Access Control on Card) Developer Guide

The capability is returned in the message JSON_CardInfoCap by


lpOutputParam.
c. Call NET_DVR_STDXMLConfig to pass through the request URL: GET /
ISAPI/AccessControl/CaptureCardInfo?format=json for online collecting
the card information.
The online collected card information is returned in the message
JSON_CardInfo_Collection by lpOutputParam.
Collect Face a. Call NET_DVR_GetDeviceAbility , set dwAbilityType to "ACS_ABILITY",
Data and set pInBuf to XML_Desc_AcsAbility for getting the access control
capability to know the supported parameters of online collecting face
data.
The capability is returned in the message XML_AcsAbility by pOutBuf.
The related node is <CaptureFace>.
b. Call NET_DVR_StartRemoteConfig with
"NET_DVR_CAPTURE_FACE_INFO" (command No.: 2510) and set
lpInBuffer to the structure NET_DVR_CAPTURE_FACE_COND for setting
up persistent connection and set callback function
( fRemoteConfigCallback ) for online collecting face data.
The online collected face data is returned in the structure
NET_DVR_CAPTURE_FACE_CFG by lpBuffer of the callback function.
c. Call NET_DVR_StopRemoteConfig to disconnect the persistent
connection and finishing online collecting face data.
Collect Refer to Collect Fingerprint
Fingerprint
What to do next
Call NET_DVR_Logout and NET_DVR_Cleanup to log out of the device and release the resources.

2.1.2 Offline Collect Data


When the access control device is not connected to the client software or platform via the
network, you can collect data (including ID card information, card information, face data, and
fingerprint) locally on the stand-alone device by importing description of the information that
needs to be collected. The offline collected data will be stored on the device and can also be
downloaded, exported, or deleted from the device.
Before You Start
• 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 the device.

10
Device Network SDK (Access Control on Card) Developer Guide

Steps

Figure 2-2 Programming Flow of Offline Collecting Data

11
Device Network SDK (Access Control on Card) Developer Guide

1. Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/AccessControl/


capabilities for getting the access control capability to check whether the device supports
offline data collection.
The capability is returned in the message XML_Cap_AccessControl by lpOutBuffer of
lpOutputParam.
If this function is supported, the node <isSupportOfflineCapture> will be returned and its value
is "true". Otherwise, please end this task.
2. Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/AccessControl/
OfflineCapture/capabilities?format=json for getting the capability of collecting data offline to
know the supported parameters.
The capability is returned in the message JSON_OfflineCaptureCap lpOutBuffer of
lpOutputParam.
3. Optional: Call NET_DVR_StartDownload with
"NET_SDK_DOWNLOAD_OFFLINE_CAPTURE_INFO_TEMPLATE" (command No.: 40) to download
the user list template of offline data collection.
4. Call NET_DVR_UploadFile_V40 with "UPLOAD_OFFLINE_CAPTURE_INFO" (command No.: 56)
and set lpInBuffer to the structure NET_DVR_DOOR_FILE_UPLOAD_PARAM for importing the
user list of offline data collection filled in the template.
5. Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/AccessControl/
OfflineCapture/ruleInfo?format=json and set lpInBuffer of lpInputParam to the message
JSON_RuleInfo for setting rule parameters of offline data collection.

Note
Before setting rule parameters of offline data collection, you'd better call
NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/AccessControl/
OfflineCapture/ruleInfo?format=json for getting the existing or configured parameters for
reference. The parameters are returned in the message JSON_RuleInfo by lpOutBuffer of
lpOutputParam.
6. Collect ID card information, card information, face data, or fingerprint on the stand-alone device
offline.
7. Optional: Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/
AccessControl/OfflineCapture/progress?format=json for getting the progress of offline data
collection.
The collection progress is returned in the message JSON_CaptureProgress by lpOutBuffer of
lpOutputParam.
8. Optional: Perform the following operation(s) after collecting data offline.
Export Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/
Collected AccessControl/OfflineCapture/dataOutput?format=json and set lpInBuffer
Data of lpInputParam to the message JSON_DataOutputCfg .

12
Device Network SDK (Access Control on Card) Developer Guide

Note
During exporting, you can call NET_DVR_STDXMLConfig to pass through the
request URL: GET /ISAPI/AccessControl/OfflineCapture/dataOutput/
progress?format=json for getting the progress of exporting the offline
collected data.

Download Call NET_DVR_StartDownload with


Collected "NET_SDK_DOWNLOAD_CAPTURE_DATA" (command No.: 41).
Data
Search for a. Call NET_DVR_StartRemoteConfig with
Collected "NET_DVR_CAPTURE_DATA_SEARCH" (command No.: 2554) to pass
Data through the request URL: POST /ISAPI/AccessControl/OfflineCapture/
DataCollections/searchTask?format=json for setting up persistent
connection and set callback function ( fRemoteConfigCallback ) for
searching for the collected data.
b. Call NET_DVR_SendRemoteConfig to send the search condition message
JSON_SearchTaskCond via the persistent connection.
The collected data is returned in the structure
NET_DVR_JSON_DATA_CFG by the output buffer (lpBuffer) of the
callback function.

Note
- The type of data to be sent (dwDataType) should be set to
"ENUM_SEND_JSON_DATA".
- After a search condition message JSON_SearchTaskCond is applied by
calling NET_DVR_SendRemoteConfig , the next piece of data can be
searched only when NET_DVR_JSON_DATA_CFG is returned by the
callback function fRemoteConfigCallback .
c. Call NET_DVR_StopRemoteConfig to disconnect the persistent
connection and finishing searching.
Delete A Call NET_DVR_STDXMLConfig to pass through the request URL: DELETE /
Specific Piece ISAPI/AccessControl/OfflineCapture/DataCollections/<captureNo>?
of Collected format=json .
Data
Delete All Call NET_DVR_STDXMLConfig to pass through the request URL: DELETE /
Collected ISAPI/AccessControl/OfflineCapture/DataCollections?format=json .
Data
What to do next
Call NET_DVR_Logout and NET_DVR_Cleanup to log out of the device and release the resources.

13
Device Network SDK (Access Control on Card) Developer Guide

2.1.3 Collect Fingerprint


The fingerprint information for further management and applying should be collected by
fingerprint recorder first. The following contents about the process and parameter settings of
fingerprint collection.
1. Call NET_DVR_GetDeviceAbility , set dwAbilityType to "ACS_ABILITY", and set pInBuf to
XML_Desc_AcsAbility for getting the access control capability to know the supported
parameters of collecting fingerprint.
The capability is returned in the message XML_AcsAbility by pOutBuf. The related node is
<CaptureFingerPrint>.
2. Call NET_DVR_StartRemoteConfig with "NET_DVR_CAPTURE_FINGERPRINT_INFO" (command
No.: 2504) and set the input buffer to the structure NET_DVR_CAPTURE_FINGERPRINT_COND
for setting up persistent connection and setting status callback function
( fRemoteConfigCallback ).
The collected fingerprint information are returned in the structure
NET_DVR_CAPTURE_FINGERPRINT_CFG by the output buffer (lpBuffer) of the status callback
function.
3. Call NET_DVR_StopRemoteConfig to disconnect the persistent connection and finish the
fingerprint collection.

2.2 Manage Card Information


A card is a basic unit, which can link with multiple face pictures and 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.
Before You Start
• 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.

14
Device Network SDK (Access Control on Card) Developer Guide

Steps

Figure 2-3 Programming Flow of Managing Card Information


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 card information
is supported by device.
The access control capability is returned in the message XML_AcsAbility by the output buffer
(pOutBuffer).
If the node <Card> is returned in the message, it indicates that managing card information is
supported by device, and you can perform the following steps.
Otherwise, managing card information is not supported, please end this task.
2. Perform the following operation(s) to get or apply card information.

Note
Before applying card information, you can configure the access permission schedule template,
refer to Configure Access Permission Control Schedule for details, and link the template to the
card. Otherwise, the default template will be linked.

15
Device Network SDK (Access Control on Card) Developer Guide

Get Card a. Call NET_DVR_StartRemoteConfig with


Information NET_DVR_GET_CARD_CFG_V50
(command No.: 2178) and set the input buffer (lpInBuffer) to
NET_DVR_CARD_CFG_COND for setting up persistent connection and
setting callback function ( fRemoteConfigCallback ).

Note
The card information is returned in the structure
NET_DVR_CARD_CFG_V50 by the output buffer (lpBuffer) of callback
function.
b. Call NET_DVR_SendRemoteConfig , specify data type (dwDataType) to
"ENUM_ACS_SEND_DATA", and set sending buffer (pSendBuf) to
NET_DVR_CARD_CFG_SEND_DATA for getting a specific card
information.
Apply Card a. Call NET_DVR_StartRemoteConfig with
Information NET_DVR_SET_CARD_CFG_V50
(command No.: 2179) and set input buffer (lpInBuffer) to
NET_DVR_CARD_CFG_COND for setting up persistent connection and
setting callback function ( fRemoteConfigCallback ).
b. Call NET_DVR_SendRemoteConfig , specify data type (dwDataType) to
"ENUM_ACS_SEND_DATA", and set sending buffer (pSendBuf) to
NET_DVR_CARD_CFG_V50 for applying the card 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.
Example
Sample Code for Getting and Applying Card Information
#include <stdio.h>
#include <iostream>
#include <afx.h>
#include "Windows.h"
#include "HCNetSDK.h"
using namespace std;

LONG m_lSetCardCfgHandle;
LONG m_lGetCardCfgHandle;
CString m_csCardNo;
CString m_csCardPassword;
BOOL bGetCardCfgFinish = FALSE;
BOOL bSetCardCfgFinish = FALSE;

void CALLBACK g_fGetGatewayCardCallback(DWORD dwType, void* lpBuffer, DWORD dwBufLen, void* pUserData)

16
Device Network SDK (Access Control on Card) Developer Guide

{
//As the operations with long time comsumption are not allowed in the callback function,
//do not call the API of HCNetSDK.DLL in the callback function.
//The following code is for reference only, actually, processing data in the callback function is not suggested.
//for example, process in the message response function as PostMessage

if (dwType == NET_SDK_CALLBACK_TYPE_DATA)//Data information


{
LPNET_DVR_CARD_CFG_V50 lpCardCfg = new NET_DVR_CARD_CFG_V50;
memcpy(lpCardCfg, lpBuffer, sizeof(*lpCardCfg)); //Copy the card information of callback function
//PostMessage(WM_MSG_ADD_CARDCFG_TOLIST, (WPARAM)lpCardCfg,0);

char *pCardNo;
BYTE byCardType;
pCardNo = (char *)lpCardCfg->byCardNo;
byCardType = lpCardCfg->byCardType;
//Other processes...
}
else if (dwType == NET_SDK_CALLBACK_TYPE_STATUS)//Status value
{
DWORD dwStatus = *(DWORD*)lpBuffer;
if (dwStatus == NET_SDK_CALLBACK_STATUS_SUCCESS)
{
bGetCardCfgFinish = TRUE;//Getting card information complated.
//PostMessage(WM_MSG_GETCARD_FINISH,0,0);
//Other processes...
}
else if ( dwStatus == NET_SDK_CALLBACK_STATUS_FAILED )
{
char szCardNumber[ACS_CARD_NO_LEN + 1] = "\0";
DWORD dwErrCode = *(DWORD*)((char *)lpBuffer + 4); //Error code
strncpy(szCardNumber,(char*)(lpBuffer) + 8,ACS_CARD_NO_LEN);//Card No.
printf("GetCard STATUS_FAILED, Error code %d, Card Number %s\n", dwErrCode, szCardNumber);
//Other processes...
}
}
}

void CALLBACK g_fSetGatewayCardCallback(DWORD dwType, void* lpBuffer, DWORD dwBufLen, void* pUserData)
{
if (dwType != NET_SDK_CALLBACK_TYPE_STATUS)//Only status will be returned when applying card
{
return;
}

DWORD dwStatus = *(DWORD*)lpBuffer;//The first 4-byte is status value

if (dwStatus == NET_SDK_CALLBACK_STATUS_PROCESSING)//Sending
{
char szCardNumber[ACS_CARD_NO_LEN + 1] = "\0";
strncpy(szCardNumber,(char*)(lpBuffer) + 4,ACS_CARD_NO_LEN);
printf("SetCard PROCESSING,CardNo: %s\n", szCardNumber);

17
Device Network SDK (Access Control on Card) Developer Guide

//Other processes...
}
else if (dwStatus == NET_SDK_CALLBACK_STATUS_FAILED)//Sending failed.
{
char szCardNumber[ACS_CARD_NO_LEN + 1] = "\0";
DWORD dwErrCode = *((DWORD*)lpBuffer + 1);//Error code
strncpy(szCardNumber,(char*)(lpBuffer) + 8,ACS_CARD_NO_LEN);//Card No.
printf("SetCard Err:%d,CardNo:%s\n", dwErrCode, szCardNumber);
//Other processes...
}
//The following contents should perfrom stopping remote configuration for twice.
else if (dwStatus == NET_SDK_CALLBACK_STATUS_SUCCESS)//Sent
{
printf("SetCard SUCCESS!");
bSetCardCfgFinish = TRUE;
//Other processes...
//PostMessage(WM_MSG_SETCARD_FINISH,0,0);
}
else if (dwStatus == NET_SDK_CALLBACK_STATUS_EXCEPTION)//Exception
{
bSetCardCfgFinish = TRUE;
//Other processes...
//PostMessage(WM_MSG_SETCARD_FINISH,0,0);
}
}

void main()
{
//---------------------------------------
//Initialize
NET_DVR_Init();

//Set connection timeout and reconnection function


NET_DVR_SetConnectTime(2000, 1);
NET_DVR_SetReconnect(10000, true);

//---------------------------------------
//Log in to device
LONG lUserID;
NET_DVR_DEVICEINFO_V30 struDeviceInfo;
lUserID = NET_DVR_Login_V30("192.0.0.64", 8000, "admin", "12345", &struDeviceInfo);
if (lUserID < 0)
{
printf("Login error, %d\n", NET_DVR_GetLastError());
NET_DVR_Cleanup();
return;
}

//Get card information---------------------------------


NET_DVR_CARD_CFG_COND struCond = {0};
struCond.dwSize = sizeof(struCond);
struCond.dwCardNum = 1;//Get the number of cards

18
Device Network SDK (Access Control on Card) Developer Guide

struCond.byCheckCardNo = 1;

NET_DVR_CARD_CFG_SEND_DATA struSendData = {0};


struSendData.dwSize = sizeof(struSendData);
m_csCardNo = "12";//Card No.
strncpy((char *)struSendData.byCardNo, (LPCTSTR)m_csCardNo, ACS_CARD_NO_LEN);

//Start remote configuration


m_lGetCardCfgHandle = NET_DVR_StartRemoteConfig(lUserID,NET_DVR_GET_CARD_CFG_V50,&struCond,\
sizeof(struCond),g_fGetGatewayCardCallback,NULL);
if (m_lGetCardCfgHandle==-1)
{
printf("NET_DVR_StartRemoteConfig fail, error:%d.\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}
//Send search conditions remotely
if (! NET_DVR_SendRemoteConfig(m_lGetCardCfgHandle, ENUM_ACS_SEND_DATA, (char *)(&struSendData),
sizeof(struSendData)) )
{
printf("NET_DVR_SendRemoteConfig fail, error:%d.\n", NET_DVR_GetLastError());
NET_DVR_StopRemoteConfig(m_lGetCardCfgHandle);
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}
//Stop remote configuration
Sleep(1000);
if (bGetCardCfgFinish)//Stop remote connection if getting card information completed.
{
NET_DVR_StopRemoteConfig(m_lGetCardCfgHandle);
}

//Apply card information---------------------------------


NET_DVR_CARD_CFG_COND struCond_set = {0};
struCond_set.dwSize = sizeof(struCond_set);
struCond_set.dwCardNum = 1;//Number of card to apply
struCond_set.byCheckCardNo = 1;
struCond_set.wLocalControllerID = 0;//Apply offline card information to distributed access controller No.
//0-access controller

//Start remote configuration


m_lSetCardCfgHandle = NET_DVR_StartRemoteConfig(lUserID,NET_DVR_SET_CARD_CFG_V50,&struCond_set,\
sizeof(struCond_set),g_fSetGatewayCardCallback,NULL);
if (m_lSetCardCfgHandle==-1)
{
printf("NET_DVR_StartRemoteConfig fail, error:%d.\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

19
Device Network SDK (Access Control on Card) Developer Guide

//Set card information


LPNET_DVR_CARD_CFG_V50 lpCardCfg = new NET_DVR_CARD_CFG_V50;
lpCardCfg->dwSize = sizeof(NET_DVR_CARD_CFG_V50);
lpCardCfg->dwModifyParamType = 0x000003FF;//Card information to be edited, represented by bit,
//each bit refers to one kind of parameter, 0-Not Edit, 1-Edit

m_csCardNo = "12";//Card No.


strncpy((char *)lpCardCfg->byCardNo, (LPCTSTR)m_csCardNo, ACS_CARD_NO_LEN);
lpCardCfg->byCardValid = 1;//Card is valid or not: 0-invalid card, 1-valid card
lpCardCfg->byCardType = 1;//Card type: 1-Normal card (default)
lpCardCfg->byLeaderCard = 0;//First card or not: 1-Yes, 0-No
lpCardCfg->byDoorRight[0] = 1;//byDoorRight[0] to byDoorRight[255]: door 1 to door 256, 1-with permission, 0-no
permission
lpCardCfg->byDoorRight[1] = 1;//Door 1 and door 2 are with permission.

lpCardCfg->byBelongGroup[0] = 1;//byBelongGroup[0] to byBelongGroup[127]: array 1 to array 128, 1-in range, 0-


not in range
m_csCardPassword = "12345678";//Card password
strncpy((char *)lpCardCfg->byCardPassword, (LPCTSTR)m_csCardPassword, CARD_PASSWORD_LEN);
//Configure the access permission schedule template first.
lpCardCfg->wCardRightPlan[0][0]=1;//This card is configured with access permission schedule template 1 and 2 for
door 1
lpCardCfg->wCardRightPlan[0][1]=2;
lpCardCfg->wCardRightPlan[1][0]=3;//This card is configured with access permission schedule template 3 and 4 for
door 2
lpCardCfg->wCardRightPlan[1][1]=4;

lpCardCfg->dwMaxSwipeTime = 0;//Maximum card swiping times, 0-no limit


lpCardCfg->dwSwipeTime = 0;//Swiped times

lpCardCfg->struValid.byEnable = 1;//Validity duration


lpCardCfg->struValid.struBeginTime.wYear=2017;//Start time: 2017-01-01 00:00:00
lpCardCfg->struValid.struBeginTime.byMonth=1;
lpCardCfg->struValid.struBeginTime.byDay=1;
lpCardCfg->struValid.struBeginTime.byHour=0;
lpCardCfg->struValid.struBeginTime.byMinute=0;
lpCardCfg->struValid.struBeginTime.bySecond=0;

lpCardCfg->struValid.struEndTime.wYear=2018;//End time: 2018-01-01 00:00:00


lpCardCfg->struValid.struEndTime.byMonth=1;
lpCardCfg->struValid.struEndTime.byDay=1;
lpCardCfg->struValid.struEndTime.byHour=0;
lpCardCfg->struValid.struEndTime.byMinute=0;
lpCardCfg->struValid.struEndTime.bySecond=0;

//Send card information remotely


if (!NET_DVR_SendRemoteConfig(m_lSetCardCfgHandle,ENUM_ACS_SEND_DATA, (char
*)lpCardCfg ,sizeof(*lpCardCfg)))
{
printf("NET_DVR_SendRemoteConfig fail, error:%d.\n", NET_DVR_GetLastError());
NET_DVR_StopRemoteConfig(m_lSetCardCfgHandle);

20
Device Network SDK (Access Control on Card) Developer Guide

NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}
//Stop remote configuration
Sleep(1000);
if (bSetCardCfgFinish)//Stop remote configuration when applied or callback exception.
{
NET_DVR_StopRemoteConfig(m_lSetCardCfgHandle);
}

//---------------------------------------
//Exit
Sleep(5000);

//Log out
NET_DVR_Logout(lUserID);
//Release SDK resources
NET_DVR_Cleanup();
return;
}

What to do next
Call NET_DVR_Logout and NET_DVR_Cleanup to log out and release the resource.

2.2.1 Card Operation


Get Card Operation Capability
Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/AccessControl/
CardOperations/capabilities?format=json .
The capability is returned in the message JSON_CardOperationsCap by lpOutputParam.
Encrypt Specific Sections (M1 Card)
Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/AccessControl/
CardOperations/sectionEncryption?format=json and set lpInputParam to
JSON_SectionEncryption .
Verify Section Password (M1 Card)
Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/AccessControl/
CardOperations/verification?format=json and set lpInputParam to JSON_Verification .
Change Control Block of Section (M1 Card)
Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/AccessControl/
CardOperations/controlBlock?format=json and set lpInputParam to JSON_ControlBlock .
Read or Write Block Data (M1 Card)
Read Block Data

21
Device Network SDK (Access Control on Card) Developer Guide

Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/AccessControl/


CardOperations/dataBlock/<address>?format=json .
The block data is returned in the message JSON_DataBlock by lpOutputParam.
Write Block Data
Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/AccessControl/
CardOperations/dataBlock/<address>?format=json and set lpInputParam to
JSON_DataBlock .
Operate Data Block (M1 Card)
Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/AccessControl/
CardOperations/dataBlock/control?format=json and set lpInputParam to JSON_DataBlockCtrl
Set Operation Protocol Type of Card
Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/AccessControl/
CardOperations/protocol?format=json and set lpInputParam to JSON_CardProto .
Set CPU Card Parameters
Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/AccessControl/
CardOperations/cardParam?format=json and set lpInputParam to JSON_CardParam .
Reset CPU Card
Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/AccessControl/
CardOperations/reset?format=json .
And the resetting result is returned in the message JSON_CardResetResponse by lpOutputParam.
Pass Through Data Package of CPU Card
Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/AccessControl/
CardOperations/dataTrans?format=json and set lpInputParam to JSON_DataTrans .
Encrypt CPU Card
Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/AccessControl/
CardOperations/encryption?format=json and set lpInputParam to JSON_CardEncryption .

2.3 Manage Face Information


If you want to access by face, you should add face picture and link the face picture with the card
for getting the access permissions, and then apply face information to access control device.
Before You Start
• 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.

22
Device Network SDK (Access Control on Card) Developer Guide

Steps

Figure 2-4 Programming Flow of Managing Face Information


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 face information
is supported by device.
The access control capability is returned in the message XML_AcsAbility by the output buffer
(pOutBuffer).
If the node <FaceParam> is returned in the message, it indicates that managing face
information is supported by device, and you can perform the following steps.
Otherwise, managing face information is not supported, please end this task.
2. Perform the following operation(s) to get or apply face information.
Get Face Call NET_DVR_StartRemoteConfig with
Information NET_DVR_GET_FACE_PARAM_CFG
(command No.: 2507) and set the input buffer (lpInBuffer) to
NET_DVR_FACE_PARAM_COND for setting up persistent connection and
setting callback function ( fRemoteConfigCallback ).

23
Device Network SDK (Access Control on Card) Developer Guide

Note
The face information is returned in the structure
NET_DVR_FACE_PARAM_CFG by the output buffer (lpBuffer) of callback
function.

Apply Face a. Call NET_DVR_StartRemoteConfig with


Information NET_DVR_SET_FACE_PARAM_CFG
(command No.: 2508) and set input buffer (lpInBuffer) to
NET_DVR_FACE_PARAM_COND for setting up persistent connection and
setting callback function ( fRemoteConfigCallback ).
b. Call NET_DVR_SendRemoteConfig , specify data type (dwDataType) to
"ENUM_ACS_INTELLIGENT_IDENTITY_DATA", and set sending buffer
(pSendBuf) to NET_DVR_FACE_PARAM_CFG for applying the face
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.
What to do next
Call NET_DVR_Logout and NET_DVR_Cleanup to log out and release the resource.

2.4 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.
Before You Start
• 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.

24
Device Network SDK (Access Control on Card) Developer Guide

Steps

Figure 2-5 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.

25
Device Network SDK (Access Control on Card) Developer Guide

Get Call NET_DVR_StartRemoteConfig with


Fingerprint NET_DVR_GET_FINGERPRINT_CFG
Information (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 a. Call NET_DVR_StartRemoteConfig with


Fingerprint NET_DVR_SET_FINGERPRINT_CFG
Information (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 ).
b. 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.
What to do next
Call NET_DVR_Logout and NET_DVR_Cleanup to log out and release the resource.

2.5 Schedule Settings

2.5.1 Configure Authentication Mode Control Schedule


You can configure the week or holiday schedule to regularly control the authentication modes
(e.g., by card, by card+password, by fingerprint, by fingerprint+card, and so on) in some specific
time periods.
Before You Start
• 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.

26
Device Network SDK (Access Control on Card) Developer Guide

Steps

Figure 2-6 Programming Flow of Configuring Authentication Mode Control Schedule


1. Optional: Call NET_DVR_GetDeviceAbility , specify the capability type dwAbilityType to
"ACS_ABILITY", set the input buffer (pInBuf) to XML_Desc_AcsAbility for getting the access
control capability to check if configuring authentication mode control schedule is supported.
The capability is returned in the message XML_AcsAbility by the output pointer (pOutBuf).
If the node <CardReaderVerifyTypePlan> is returned, it indicates that configuring
authentication mode control schedule is supported, and you can continue to perform the
following steps.
Otherwise, configuring authentication mode control schedule is not supported, please end this
task.
2. Perform one of the following operations to set week or holiday schedule for authentication
mode control.
- a. Call NET_DVR_GetDVRConfig with
NET_DVR_GET_VERIFY_WEEK_PLAN
(command No.: 2124) to get the existing week schedule configurations for reference.

27
Device Network SDK (Access Control on Card) Developer Guide

Note
The week schedule parameters are returned in the structure NET_DVR_WEEK_PLAN_CFG
by output buffer (lpOutBuffer).
b. Call NET_DVR_SetDVRConfig with
NET_DVR_SET_VERIFY_WEEK_PLAN
(command No.: 2125) and set the input buffer (lpInBuffer) to NET_DVR_WEEK_PLAN_CFG
for setting the week schedule.
- a. Call NET_DVR_GetDVRConfig with
NET_DVR_GET_VERIFY_HOLIDAY_PLAN
(command No.: 2128) to get the existing holiday schedule configurations for reference.

Note
The holiday schedule parameters are returned in the structure
NET_DVR_HOLIDAY_PLAN_CFG by output buffer (lpOutBuffer).
b. Call NET_DVR_SetDVRConfig with
NET_DVR_SET_VERIFY_HOLIDAY_PLAN
(command No.: 2129) and set the input buffer (lpInBuffer) to
NET_DVR_HOLIDAY_PLAN_CFG for setting the holiday schedule.
c. Call NET_DVR_GetDVRConfig with
NET_DVR_GET_VERIFY_HOLIDAY_GROUP
(command No.: 2132) to get the existing holiday group configurations for reference.

Note
The holiday group parameters are returned in the structure
NET_DVR_HOLIDAY_GROUP_CFG by output buffer (lpOutBuffer).
d. Call NET_DVR_SetDVRConfig with
NET_DVR_SET_VERIFY_HOLIDAY_GROUP
(command No.: 2133) and set the input buffer (lpInBuffer) to
NET_DVR_HOLIDAY_GROUP_CFG for adding the configured holiday schedule to a holiday
group.
3. Optional: Call NET_DVR_GetDVRConfig with
NET_DVR_GET_VERIFY_PLAN_TEMPLATE
(command No.: 2136) to get the existing schedule template configurations for reference.

Note
The schedule template parameters are returned in the structure NET_DVR_PLAN_TEMPLATE by
output buffer (lpOutBuffer).
4. Call NET_DVR_SetDVRConfig with
NET_DVR_SET_VERIFY_PLAN_TEMPLATE
(command No.: 2137) and set the input buffer (lpInBuffer) to NET_DVR_PLAN_TEMPLATE for
setting the schedule template.
5. Optional: Call NET_DVR_GetDVRConfig with

28
Device Network SDK (Access Control on Card) Developer Guide

NET_DVR_GET_CARD_READER_PLAN
(command No.: 2142) to get the existing authentication mode control schedule configurations
for reference.

Note
The authentication mode control schedule parameters are returned in the structure
NET_DVR_CARD_READER_PLAN by output buffer (lpOutBuffer).
6. Call NET_DVR_SetDVRConfig
NET_DVR_SET_CARD_READER_PLAN
(command No.: 2143) and set the input buffer (lpInBuffer) to NET_DVR_CARD_READER_PLAN
for linking the configured template to the authentication mode control schedule and finishing
the configuration.
Example
Sample Code for Configuring Authentication Mode Control Schedule
#include <stdio.h>
#include <iostream>
#include <afx.h>
#include "Windows.h"
#include "HCNetSDK.h"
using namespace std;

void main()
{
//---------------------------------------
//Initialize
NET_DVR_Init();

//Set connection timeout and reconnection function


NET_DVR_SetConnectTime(2000, 1);
NET_DVR_SetReconnect(10000, true);

//---------------------------------------
//Log in to device
LONG lUserID;
//Login parameters, including device IP address, user name, password, and so on
NET_DVR_USER_LOGIN_INFO struLoginInfo = {0};
struLoginInfo.bUseAsynLogin = 0; //Synchronous login mode
strcpy(struLoginInfo.sDeviceAddress, "192.168.1.64"); //Device IP address
struLoginInfo.wPort = 8000; //Device service port number
strcpy(struLoginInfo.sUserName, "admin"); //User name
strcpy(struLoginInfo.sPassword, "abcd1234"); //Password

//Device information, output parameter


NET_DVR_DEVICEINFO_V40 struDeviceInfoV40 = {0};

lUserID = NET_DVR_Login_V40(&struLoginInfo, &struDeviceInfoV40);


if (lUserID < 0)
{

29
Device Network SDK (Access Control on Card) Developer Guide

printf("Login failed, error code: %d\n", NET_DVR_GetLastError());


NET_DVR_Cleanup();
return;
}

//---------------------------------------
//Set card reader authentication mode schedule, template 1 linked to card reader 1
NET_DVR_CARD_READER_PLAN struCardReaderPlan = {0};
struCardReaderPlan.dwSize = sizeof(struCardReaderPlan);
struCardReaderPlan.dwTemplateNo = 1;//Schedule template 1
BOOL bRet1 = NET_DVR_SetDVRConfig(lUserID, NET_DVR_SET_CARD_READER_PLAN, 1, \
&struCardReaderPlan, sizeof(struCardReaderPlan));
if (!bRet1)
{
printf("Setting card reader authentication mode schedule failed, error:%d.\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

//Set card reader authentication mode schedule template 1, template 1 links to week schedule 1 and holiday group
1
CString m_csTemplateName = "card reader authentication mode schedule template 1";
NET_DVR_PLAN_TEMPLATE struPlanTem = {0};
struPlanTem.dwSize = sizeof(struPlanTem);
struPlanTem.byEnable = 1;//Enable or not: 0-No, 1-Yes
strncpy((char *)struPlanTem.byTemplateName, (LPCTSTR)m_csTemplateName, TEMPLATE_NAME_LEN);
struPlanTem.dwWeekPlanNo = 2;//Week schedule No.2
struPlanTem.dwHolidayGroupNo[0] = 2;//Holiday group No.2, up to 16 holiday groups can be linked to each
schedule

BOOL bRet2 = NET_DVR_SetDVRConfig(lUserID, NET_DVR_SET_VERIFY_PLAN_TEMPLATE, 1, \


&struPlanTem, sizeof(struPlanTem));
if (!bRet2)
{
printf("Setting card reader authentication mode schedule template failed, error:%d.\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

//Set week schedule 2 for card reader authentication mode


NET_DVR_WEEK_PLAN_CFG struWeekPlan2 = {0};
struWeekPlan2.dwSize = sizeof(struWeekPlan2);
struWeekPlan2.byEnable = 1;//Enable week schedule

NET_DVR_SINGLE_PLAN_SEGMENT struSinglePlanSegment = {0};


LPNET_DVR_SINGLE_PLAN_SEGMENT lpPlanSegment = &struSinglePlanSegment;
struSinglePlanSegment.byEnable = 1;
struSinglePlanSegment.byVerifyMode = 4;//Authentication mode: 0-invalid, 1-sleepy, 2-card+password, 3-card,
//4-card or password, 5-fingerprint, 6-fingerprint+password, 7-fingerprint or card,
//8-fingerprint+card, 9-fingerprint+card+password

30
Device Network SDK (Access Control on Card) Developer Guide

struSinglePlanSegment.struTimeSegment.struBeginTime.byHour = 0;//Start time


struSinglePlanSegment.struTimeSegment.struBeginTime.byMinute = 0;
struSinglePlanSegment.struTimeSegment.struBeginTime.bySecond = 0;

struSinglePlanSegment.struTimeSegment.struEndTime.byHour = 23;//End time


struSinglePlanSegment.struTimeSegment.struEndTime.byMinute = 59;
struSinglePlanSegment.struTimeSegment.struEndTime.bySecond = 59;

/*Up to 8 time periods can be set for each day, and you can set different authentication modes for each time period
Here only takes setting one period for each day*/

for (int iDate = 0; iDate<MAX_DAYS; iDate++)


{
memcpy(&struWeekPlan2.struPlanCfg[iDate][0], lpPlanSegment, sizeof(struSinglePlanSegment));
}

BOOL bRet3 = NET_DVR_SetDVRConfig(lUserID, NET_DVR_SET_VERIFY_WEEK_PLAN, 2, \


&struWeekPlan2, sizeof(struWeekPlan2));
if (!bRet3)
{
printf("Setting week schedule for card reader authentication mode failed,error:%d.\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

//Set holiday group for card reader authentication mode


CString m_csGroupName = "Holiday group 2";
NET_DVR_HOLIDAY_GROUP_CFG struHolidayGroup2 = {0};
struHolidayGroup2.dwSize = sizeof(struHolidayGroup2);
struHolidayGroup2.byEnable = 1;
strncpy((char *)struHolidayGroup2.byGroupName, (LPCTSTR)m_csGroupName, HOLIDAY_GROUP_NAME_LEN);
struHolidayGroup2.dwHolidayPlanNo[0] = 2;//Holiday group 1 links to holiday schedule 1,
//up to 16 holiday schedules can be linked to one holiday group

BOOL bRet4 = NET_DVR_SetDVRConfig(lUserID, NET_DVR_SET_VERIFY_HOLIDAY_GROUP, 2, \


&struHolidayGroup2, sizeof(struHolidayGroup2));
if (!bRet4)
{
printf("设 Setting holiday group for card reader authentication mode failed, error:%d.\n",
NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

//Set holiday schedule for card reader authentication mode


NET_DVR_HOLIDAY_PLAN_CFG struHolidayPlan2 = {0};
struHolidayPlan2.dwSize = sizeof(struHolidayPlan2);
struHolidayPlan2.byEnable = 1;
struHolidayPlan2.struBeginDate.wYear = 2017;//Holiday start date
struHolidayPlan2.struBeginDate.byMonth = 10;

31
Device Network SDK (Access Control on Card) Developer Guide

struHolidayPlan2.struBeginDate.byDay = 1;
struHolidayPlan2.struEndDate.wYear = 2017;//Holiday end date
struHolidayPlan2.struEndDate.byMonth = 10;
struHolidayPlan2.struEndDate.byDay = 7;
//Copy the week schedule parameters to holiday schedule of card reader authentication mode
memcpy(struHolidayPlan2.struPlanCfg, struWeekPlan2.struPlanCfg,
sizeof(NET_DVR_SINGLE_PLAN_SEGMENT)*MAX_DAYS*MAX_TIMESEGMENT_V30);

BOOL bRet5 = NET_DVR_SetDVRConfig(lUserID, NET_DVR_SET_VERIFY_HOLIDAY_PLAN, 2, \


&struHolidayPlan2, sizeof(struHolidayPlan2));
if (!bRet5)
{
printf("Setting holiday schedule for card reader authentication mode failed, error:%d.\n",
NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}
//---------------------------------------
//Exit
Sleep(5000);

//Log out
NET_DVR_Logout(lUserID);
//Release SDK resource
NET_DVR_Cleanup();
return;
}

What to do next
Call NET_DVR_Logout and NET_DVR_Cleanup to log out and release the resource.

2.5.2 Configure Access Permission Control Schedule


To regularly control the access permissions for managing the accessible time duration (by default,
it is 24 hours) of some important access control points, you can configure the week or holiday
schedules.
Before You Start
• 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.

32
Device Network SDK (Access Control on Card) Developer Guide

Steps

Figure 2-7 Programming Flow of Configuring Access Permission Control Schedule


1. Call NET_DVR_GetDeviceAbility , specify dwAbilityType to "ACS_ABILITY", set pInBuf to
XML_Desc_AcsAbility for getting the access control capability to check if configuring access
permission control schedule is supported.
The capability is returned in the message XML_AcsAbility by pOutBuf.
If the node <CardRightPlan> is returned, it indicates that configuring access permission control
schedule is supported, and you can continue to perform the following steps.
Otherwise, configuring access permission control schedule is not supported, please end this
task.
2. Perform one of the following operations to set week or holiday schedule for access permission
control.
- a. Call NET_DVR_GetDVRConfig with "NET_DVR_GET_CARD_RIGHT_WEEK_PLAN"
(command No.: 2126) to get default or configured week schedule configurations for
reference.

33
Device Network SDK (Access Control on Card) Developer Guide

Note
The week schedule parameters are returned in the structure NET_DVR_WEEK_PLAN_CFG
by lpOutBuffer.
b. Call NET_DVR_SetDVRConfig with "NET_DVR_SET_CARD_RIGHT_WEEK_PLAN" (command
No.: 2127) and set lpInBuffer to NET_DVR_WEEK_PLAN_CFG for setting the week
schedule.
- a. Call NET_DVR_GetDVRConfig with "NET_DVR_GET_CARD_RIGHT_HOLIDAY_PLAN"
(command No.: 2130) to get default or configured holiday schedule configurations for
reference.

Note
The holiday schedule parameters are returned in the structure
NET_DVR_HOLIDAY_PLAN_CFG by lpOutBuffer.
b. Call NET_DVR_SetDVRConfig with "NET_DVR_SET_CARD_RIGHT_HOLIDAY_PLAN"
(command No.: 2131) and set lpInBuffer to NET_DVR_HOLIDAY_PLAN_CFG for setting the
week schedule.
c. Call NET_DVR_GetDVRConfig with "NET_DVR_GET_CARD_RIGHT_HOLIDAY_GROUP"
(command No.: 2134) to get default or configured holiday group configurations for
reference.

Note
The holiday group parameters are returned in the structure
NET_DVR_HOLIDAY_GROUP_CFG by lpOutBuffer.
d. Call NET_DVR_SetDVRConfig with "NET_DVR_SET_CARD_RIGHT_HOLIDAY_GROUP"
(command No.: 2135) and set lpInBuffer to NET_DVR_HOLIDAY_GROUP_CFG for adding
the configured holiday schedule to a holiday group.
3. Optional: Call NET_DVR_GetDVRConfig with "NET_DVR_GET_CARD_RIGHT_PLAN_TEMPLATE"
(command No.: 2138) to get default or configured schedule template configurations for
reference.

Note
The schedule template parameters are returned in the structure NET_DVR_PLAN_TEMPLATE by
lpOutBuffer.
4. Call NET_DVR_SetDVRConfig with "NET_DVR_SET_CARD_RIGHT_PLAN_TEMPLATE" (command
No.: 2139) and set lpInBuffer to NET_DVR_PLAN_TEMPLATE for setting the schedule template.

Note
The configured schedule template can be directly linked to person ID when applying person
information. And the linked person can get the access permission configured in the template.

Example
Sample Code for Configuring Access Permission Control Schedule

34
Device Network SDK (Access Control on Card) Developer Guide

#include <stdio.h>
#include <iostream>
#include <afx.h>
#include "Windows.h"
#include "HCNetSDK.h"
using namespace std;

void main()
{
//---------------------------------------
//Initialize
NET_DVR_Init();

//Set connection timeout and reconnection function


NET_DVR_SetConnectTime(2000, 1);
NET_DVR_SetReconnect(10000, true);

//---------------------------------------
//Log in to device
LONG lUserID;
//Login parameters, including device IP address, user name, password, and so on
NET_DVR_USER_LOGIN_INFO struLoginInfo = {0};
struLoginInfo.bUseAsynLogin = 0; //Synchronous login mode
strcpy(struLoginInfo.sDeviceAddress, "192.168.1.64"); //Device IP address
struLoginInfo.wPort = 8000; //Device service port number
strcpy(struLoginInfo.sUserName, "admin"); //User name
strcpy(struLoginInfo.sPassword, "abcd1234"); //Password

//Device information, output parameter


NET_DVR_DEVICEINFO_V40 struDeviceInfoV40 = {0};

lUserID = NET_DVR_Login_V40(&struLoginInfo, &struDeviceInfoV40);


if (lUserID < 0)
{
printf("Login failed, error code: %d\n", NET_DVR_GetLastError());
NET_DVR_Cleanup();
return;
}
//---------------------------------------
//Set access permission schedule template, when issuing card, link to this template

CString m_csTemplateName = "Access permission schedule template 1";


NET_DVR_PLAN_TEMPLATE struPlanTem = {0};
struPlanTem.dwSize = sizeof(struPlanTem);
struPlanTem.byEnable = 1;//Enable or not: 0-No, 1-Yes
strncpy((char *)struPlanTem.byTemplateName, (LPCTSTR)m_csTemplateName, TEMPLATE_NAME_LEN);
struPlanTem.dwWeekPlanNo = 1;//Week schedule No.1
struPlanTem.dwHolidayGroupNo[0] = 1;//Holiday group No.1, up to 16 holiday groups can be linked to each
schedule
//struPlanTem.dwHolidayGroupNo[1] = 2;//Holiday group No.2

BOOL bRet1 = NET_DVR_SetDVRConfig(lUserID, NET_DVR_SET_CARD_RIGHT_PLAN_TEMPLATE, 1, \

35
Device Network SDK (Access Control on Card) Developer Guide

&struPlanTem, sizeof(struPlanTem));
if (!bRet1)
{
printf("Setting access permission schedule template failed, error:%d.\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

//Set week schedule 1 for access permission


NET_DVR_WEEK_PLAN_CFG struWeekPlan = {0};
struWeekPlan.dwSize = sizeof(struWeekPlan);
struWeekPlan.byEnable = 1;//Enable week schedule

NET_DVR_SINGLE_PLAN_SEGMENT struSinglePlanSegment = {0};


LPNET_DVR_SINGLE_PLAN_SEGMENT lpPlanSegment = &struSinglePlanSegment;
struSinglePlanSegment.byEnable = 1;

struSinglePlanSegment.struTimeSegment.struBeginTime.byHour = 0;//Start time


struSinglePlanSegment.struTimeSegment.struBeginTime.byMinute = 0;
struSinglePlanSegment.struTimeSegment.struBeginTime.bySecond = 0;

struSinglePlanSegment.struTimeSegment.struEndTime.byHour = 23;//End time


struSinglePlanSegment.struTimeSegment.struEndTime.byMinute = 59;
struSinglePlanSegment.struTimeSegment.struEndTime.bySecond = 59;

/*Up to 8 time periods can be set for each day. Here only takes setting one period for each day*/

for (int iDate = 0; iDate<MAX_DAYS; iDate++)


{
memcpy(&struWeekPlan.struPlanCfg[iDate][0], lpPlanSegment, sizeof(struSinglePlanSegment));
}

BOOL bRet2 = NET_DVR_SetDVRConfig(lUserID, NET_DVR_SET_CARD_RIGHT_WEEK_PLAN, 1, \


&struWeekPlan, sizeof(struWeekPlan));
if (!bRet2)
{
printf("Setting week schedule for access permission failed, error:%d.\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

//Set holiday group for access permission


CString m_csGroupName = "access permission holiday group 1";
NET_DVR_HOLIDAY_GROUP_CFG struHolidayGroup1 = {0};
struHolidayGroup1.dwSize = sizeof(struHolidayGroup1);
struHolidayGroup1.byEnable = 1;
strncpy((char *)struHolidayGroup1.byGroupName, (LPCTSTR)m_csGroupName, HOLIDAY_GROUP_NAME_LEN);
struHolidayGroup1.dwHolidayPlanNo[0] = 1;//Holiday group 1 links to holiday schedule 1,
//up to 16 holiday schedules can be linked to one holiday group

36
Device Network SDK (Access Control on Card) Developer Guide

BOOL bRet3 = NET_DVR_SetDVRConfig(lUserID, NET_DVR_SET_CARD_RIGHT_HOLIDAY_GROUP, 1, \


&struHolidayGroup1, sizeof(struHolidayGroup1));
if (!bRet3)
{
printf("设 Setting holiday group for access permission failed, error:%d.\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

//Set holiday schedule for access permission


NET_DVR_HOLIDAY_PLAN_CFG struHolidayPlan = {0};
struHolidayPlan.dwSize = sizeof(struHolidayPlan);
struHolidayPlan.byEnable = 1;
struHolidayPlan.struBeginDate.wYear = 2017;//Holiday start date
struHolidayPlan.struBeginDate.byMonth = 10;
struHolidayPlan.struBeginDate.byDay = 1;
struHolidayPlan.struEndDate.wYear = 2017;//Holiday end date
struHolidayPlan.struEndDate.byMonth = 10;
struHolidayPlan.struEndDate.byDay = 7;
//Copy the week schedule parameters to holiday schedule of access permission
memcpy(struHolidayPlan.struPlanCfg, struWeekPlan.struPlanCfg,
sizeof(NET_DVR_SINGLE_PLAN_SEGMENT)*MAX_DAYS*MAX_TIMESEGMENT_V30);

BOOL bRet4 = NET_DVR_SetDVRConfig(lUserID, NET_DVR_SET_CARD_RIGHT_HOLIDAY_PLAN, 1, \


&struHolidayPlan, sizeof(struHolidayPlan));
if (!bRet4)
{
printf("Setting holiday schedule for access permission failed, error:%d.\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}
//---------------------------------------
//Exit
Sleep(5000);

//Log out
NET_DVR_Logout(lUserID);
//Release SDK resource
NET_DVR_Cleanup();
return;
}

What to do next
Call NET_DVR_Logout and NET_DVR_Cleanup to log out and release the resource.

37
Device Network SDK (Access Control on Card) Developer Guide

2.5.3 Configure Door Control Schedule


You can configure the week or holiday schedule to regularly control the door statuses, including
Remain Open (access without authentication), Remain Closed (access is not allowed), and Normal
(access with authentication), in some specific time periods.
Before You Start
• 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.
Steps

Figure 2-8 Programming Flow of Configuring Door Control Schedule


1. Call NET_DVR_GetDeviceAbility , specify the capability type dwAbilityType to "ACS_ABILITY",
set the input buffer (pInBuf) to XML_Desc_AcsAbility for getting the access control capability to
check if configuring door control schedule is supported.
The capability is returned in the message XML_AcsAbility by the output pointer (pOutBuf).
If the node <DoorStatusPlan> is returned, it indicates that configuring door control schedule is
supported, and you can continue to perform the following steps.

38
Device Network SDK (Access Control on Card) Developer Guide

Otherwise, configuring door control schedule is not supported, please end this task.
2. Perform one of the following operations to set week or holiday schedule for door control.
- a. Call NET_DVR_GetDVRConfig with "NET_DVR_GET_WEEK_PLAN_CFG" (command No.:
2100) to get the existing week schedule configurations for reference.

Note
The week schedule parameters are returned in the structure NET_DVR_WEEK_PLAN_CFG
by output buffer (lpOutBuffer).
b. Call NET_DVR_SetDVRConfig with "NET_DVR_SET_WEEK_PLAN_CFG" (command No.:
2101) and set the input buffer (lpInBuffer) to NET_DVR_WEEK_PLAN_CFG for setting the
week schedule.
- a. Call NET_DVR_GetDVRConfig with "NET_DVR_GET_DOOR_STATUS_HOLIDAY_PLAN"
(command No.: 2102) to get the existing holiday schedule configurations for reference.

Note
The holiday schedule parameters are returned in the structure
NET_DVR_HOLIDAY_PLAN_CFG by output buffer (lpOutBuffer).
b. Call NET_DVR_SetDVRConfig with "NET_DVR_SET_DOOR_STATUS_HOLIDAY_PLAN"
(command No.: 2103) and set the input buffer (lpInBuffer) to
NET_DVR_HOLIDAY_PLAN_CFG for setting the week schedule.
c. Call NET_DVR_GetDVRConfig with "NET_DVR_GET_DOOR_STATUS_HOLIDAY_GROUP"
(command No.: 2104) to get the existing holiday group configurations for reference.

Note
The holiday group parameters are returned in the structure
NET_DVR_HOLIDAY_GROUP_CFG by output buffer (lpOutBuffer).
d. Call NET_DVR_SetDVRConfig with "NET_DVR_SET_DOOR_STATUS_HOLIDAY_GROUP"
(command No.: 2105) and set the input buffer (lpInBuffer) to
NET_DVR_HOLIDAY_GROUP_CFG for adding the configured holiday schedule to a holiday
group.
3. Optional: Call NET_DVR_GetDVRConfig with "NET_DVR_GET_DOOR_STATUS_PLAN_TEMPLATE"
(command No.: 2106) to get the existing schedule template configurations for reference.

Note
The schedule template parameters are returned in the structure NET_DVR_PLAN_TEMPLATE by
output buffer (lpOutBuffer).
4. Call NET_DVR_SetDVRConfig with "NET_DVR_SET_DOOR_STATUS_PLAN_TEMPLATE"
(command No.: 2107) and set the input buffer (lpInBuffer) to NET_DVR_PLAN_TEMPLATE for
setting the schedule template.
5. Optional: Call NET_DVR_GetDVRConfig with "NET_DVR_GET_DOOR_STATUS_PLAN" (command
No.: 2110) to get the existing door control schedule configurations for reference.

39
Device Network SDK (Access Control on Card) Developer Guide

Note
The door control schedule parameters are returned in the structure
NET_DVR_DOOR_STATUS_PLAN by output buffer (lpOutBuffer).
6. Call NET_DVR_SetDVRConfig with "NET_DVR_SET_DOOR_STATUS_PLAN" (command No.: 2111)
and set the input buffer (lpInBuffer) to NET_DVR_DOOR_STATUS_PLAN for linking the
configured template to the door control schedule and finishing the configuration.
Example
Sample Code for Configuring Door Control Schedule
#include <stdio.h>
#include <iostream>
#include <afx.h>
#include "Windows.h"
#include "HCNetSDK.h"
using namespace std;

void main()
{
//---------------------------------------
//Initialize
NET_DVR_Init();

//Set connection timeout and reconnection function


NET_DVR_SetConnectTime(2000, 1);
NET_DVR_SetReconnect(10000, true);

//---------------------------------------
//Log in to device
LONG lUserID;
//Login parameters, including device IP address, user name, password, and so on
NET_DVR_USER_LOGIN_INFO struLoginInfo = {0};
struLoginInfo.bUseAsynLogin = 0; //Synchronous login mode
strcpy(struLoginInfo.sDeviceAddress, "192.168.1.64"); //Device IP address
struLoginInfo.wPort = 8000; //Device service port number
strcpy(struLoginInfo.sUserName, "admin"); //User name
strcpy(struLoginInfo.sPassword, "abcd1234"); //Password

//Device information, output parameter


NET_DVR_DEVICEINFO_V40 struDeviceInfoV40 = {0};

lUserID = NET_DVR_Login_V40(&struLoginInfo, &struDeviceInfoV40);


if (lUserID < 0)
{
printf("Login failed, error code: %d\n", NET_DVR_GetLastError());
NET_DVR_Cleanup();
return;
}

//---------------------------------------

40
Device Network SDK (Access Control on Card) Developer Guide

//Set door status schedule, template 1 linked to door 1


NET_DVR_DOOR_STATUS_PLAN struDoorStatusPlan = {0};
struDoorStatusPlan.dwSize = sizeof(struDoorStatusPlan);
struDoorStatusPlan.dwTemplateNo = 1;//Schedule template 1

BOOL bRet1 = NET_DVR_SetDVRConfig(lUserID, NET_DVR_SET_DOOR_STATUS_PLAN, 1, \


&struDoorStatusPlan, sizeof(struDoorStatusPlan));
if (!bRet1)
{
printf("Setting door status schedule failed, error:%d.\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

//Set door status schedule template 1, template 1 links to week schedule 1 and holiday group 1
CString m_csTemplateName = "door status schedule template 1";
NET_DVR_PLAN_TEMPLATE struPlanTem = {0};
struPlanTem.dwSize = sizeof(struPlanTem);
struPlanTem.byEnable = 1;//Enable or not: 0-No, 1-Yes
strncpy((char *)struPlanTem.byTemplateName, (LPCTSTR)m_csTemplateName, TEMPLATE_NAME_LEN);
struPlanTem.dwWeekPlanNo = 1;//Week schedule No.1
struPlanTem.dwHolidayGroupNo[0] = 1;//Holiday group No.1, up to 16 holiday groups can be linked to each
schedule
//struPlanTem.dwHolidayGroupNo[1] = 2;//Holiday group No.2

BOOL bRet2 = NET_DVR_SetDVRConfig(lUserID, NET_DVR_SET_DOOR_STATUS_PLAN_TEMPLATE, 1, \


&struPlanTem, sizeof(struPlanTem));
if (!bRet2)
{
printf("Setting door status schedule template failed, error:%d.\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

//Set week schedule 1 for door status


NET_DVR_WEEK_PLAN_CFG struWeekPlan = {0};
struWeekPlan.dwSize = sizeof(struWeekPlan);
struWeekPlan.byEnable = 1;//Enable week scheudle

NET_DVR_SINGLE_PLAN_SEGMENT struSinglePlanSegment = {0};


LPNET_DVR_SINGLE_PLAN_SEGMENT lpPlanSegment = &struSinglePlanSegment;
struSinglePlanSegment.byEnable = 1;
struSinglePlanSegment.byDoorStatus = 3;//Door status: 0-invalid, 1-sleepy, 2-remain open, 3-remain closed.
struSinglePlanSegment.struTimeSegment.struBeginTime.byHour = 0;//Start time
struSinglePlanSegment.struTimeSegment.struBeginTime.byMinute = 0;
struSinglePlanSegment.struTimeSegment.struBeginTime.bySecond = 0;

struSinglePlanSegment.struTimeSegment.struEndTime.byHour = 23;//End time


struSinglePlanSegment.struTimeSegment.struEndTime.byMinute = 59;
struSinglePlanSegment.struTimeSegment.struEndTime.bySecond = 59;

41
Device Network SDK (Access Control on Card) Developer Guide

/*Up to 8 time periods can be set for each day, and you can set different statuses for each time period
Here only takes setting one period for each day*/

for (int iDate = 0; iDate<MAX_DAYS; iDate++)


{
memcpy(&struWeekPlan.struPlanCfg[iDate][0], lpPlanSegment, sizeof(struSinglePlanSegment));
}

BOOL bRet3 = NET_DVR_SetDVRConfig(lUserID, NET_DVR_SET_WEEK_PLAN_CFG, 1, \


&struWeekPlan, sizeof(struWeekPlan));
if (!bRet3)
{
printf("Setting week schedule for door status failed, error:%d.\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

//Set holiday group for door status


CString m_csGroupName = "door status holiday group 1";
NET_DVR_HOLIDAY_GROUP_CFG struHolidayGroup1 = {0};
struHolidayGroup1.dwSize = sizeof(struHolidayGroup1);
struHolidayGroup1.byEnable = 1;
strncpy((char *)struHolidayGroup1.byGroupName, (LPCTSTR)m_csGroupName, HOLIDAY_GROUP_NAME_LEN);
struHolidayGroup1.dwHolidayPlanNo[0] = 1;//Holiday group 1 links to holiday schedule 1,
//up to 16 holiday schedules can be linked to one holiday group

BOOL bRet4 = NET_DVR_SetDVRConfig(lUserID, NET_DVR_SET_DOOR_STATUS_HOLIDAY_GROUP, 1, \


&struHolidayGroup1, sizeof(struHolidayGroup1));
if (!bRet4)
{
printf("Setting holiday group for door status failed, error:%d.\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

//Set holiday schedule for door status


NET_DVR_HOLIDAY_PLAN_CFG struHolidayPlan = {0};
struHolidayPlan.dwSize = sizeof(struHolidayPlan);
struHolidayPlan.byEnable = 1;
struHolidayPlan.struBeginDate.wYear = 2017;//Holiday start date
struHolidayPlan.struBeginDate.byMonth = 10;
struHolidayPlan.struBeginDate.byDay = 1;
struHolidayPlan.struEndDate.wYear = 2017;//Holiday end date
struHolidayPlan.struEndDate.byMonth = 10;
struHolidayPlan.struEndDate.byDay = 7;
//Copy the week schedule parameters to holiday schedule of door status
memcpy(struHolidayPlan.struPlanCfg, struWeekPlan.struPlanCfg,
sizeof(NET_DVR_SINGLE_PLAN_SEGMENT)*MAX_DAYS*MAX_TIMESEGMENT_V30);

42
Device Network SDK (Access Control on Card) Developer Guide

BOOL bRet5 = NET_DVR_SetDVRConfig(lUserID, NET_DVR_SET_DOOR_STATUS_HOLIDAY_PLAN, 1, \


&struHolidayPlan, sizeof(struHolidayPlan));
if (!bRet5)
{
printf("Setting holiday schedule for door status failed, error:%d.\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}
//---------------------------------------
//Exit
Sleep(5000);

//Log out
NET_DVR_Logout(lUserID);
//Release SDK resource
NET_DVR_Cleanup();
return;
}

What to do next
Call NET_DVR_Logout and NET_DVR_Cleanup to log out and release the resource.

2.6 Alarm and Event


The alarm/event information from the device can be received in third-party platform or system
when the alarms are triggered or event occurred. Two modes are available for receiving alarms,
including arming mode and listening mode.
Arming Mode
The third-party platform connects to device automatically, when the alarm is triggered, the
platform sends alarm uploading command to the device, and then the device will upload the
alarm to the platform.
Listening Mode
When alarm is triggered, the device automatically uploads the alarm, and then the third-party
platform receives the uploaded alarm via the configured listening host (listening address and port
should be configured). This mode is applicable for multiple devices uploading alarm/event
information to one third-party platform without logging in to devices, and the restart of devices
will not affect the alarm/event uploading. But a device can only support the configuration of one
or two listening addresses and ports.

2.6.1 Configure Access Control Event


The access control events include device events, alarm input events, door events, card reader
events, card swiping events, and so on. You can configure the linkage types (i.e., event linkage, card

43
Device Network SDK (Access Control on Card) Developer Guide

linkage, MAC linkage, and person linkage) and linkage actions (e.g., recording, alarm output,
buzzing, capture, etc.) of event card linkage to execute the linked actions when the corresponding
events occurred (e.g., door open or closed, card swiped, etc.). And then you can receive the event
information from event sources in arming or listening mode.
Before You Start
• 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.

44
Device Network SDK (Access Control on Card) Developer Guide

Steps

Figure 2-9 Programming Flow of Configuring Access Control Event

45
Device Network SDK (Access Control on Card) Developer Guide

1. Call NET_DVR_GetDeviceAbility , specify the capability type dwAbilityType to "ACS_ABILITY",


set the input buffer (pInBuf) to XML_Desc_AcsAbility for getting the access control capability to
check if setting event or card No. linkage is supported.
The capability is returned in the message XML_AcsAbility by the output pointer (pOutBuf).
If the node <EventLinkage> is returned, it indicates that setting event or card linkage is
supported, and you can continue to perform the following steps.
Otherwise, setting event or card linkage is not supported, please end this task.
2. Optional: Call NET_DVR_GetDeviceConfig with
"NET_DVR_GET_EVENT_CARD_LINKAGE_CFG_V51" (command No.: 2518) and set the condition
buffer (lpInBuffer) to NET_DVR_EVENT_CARD_LINKAGE_COND for getting the existing event
card linkage parameters for reference.

Note
The parameter dwCount should be set to 1.
The event card linkage parameters are returned in the structure
NET_DVR_EVENT_CARD_LINKAGE_CFG_V51 by output buffer (lpOutBuffer).
3. Call NET_DVR_SetDeviceConfig with "NET_DVR_SET_EVENT_CARD_LINKAGE_CFG_V51"
(command No.: 2519), set the condition buffer (lpInBuffer) to
NET_DVR_EVENT_CARD_LINKAGE_COND , and set the input parameter (lpInParamBuffer) to
NET_DVR_EVENT_CARD_LINKAGE_CFG_V51 for setting the event card linkage parameters.

Note
The parameter dwCount should be set to 1.
4. Receive event/alarm in arming mode (see Receive Alarm/Event in Arming Mode ) or listening
mode (see Receive Alarm/Event in Listening Mode ) when alarm is triggered or event occurred.

Note
The command to receive access control alarms/events should be set to
COMM_ALARM_ACS_V50 (command No.: 0x5005) in the alarm callback function
( MSGCallBack ), and refer to the data structure NET_DVR_ACS_ALARM_INFO_V50 for the
alarm/event details.

Example
Sample Code for Enabling Capture Linkage
#include <stdio.h>
#include <iostream>
#include "Windows.h"
#include "HCNetSDK.h"
using namespace std;

BOOL CALLBACK MSesGCallback(LONG lCommand, NET_DVR_ALARMER *pAlarmer, char *pAlarmInfo, DWORD


dwBufLen, void* pUser)

46
Device Network SDK (Access Control on Card) Developer Guide

{
//As the operations with long time comsumption are not allowed in the callback function,
//do not call the API of HCNetSDK.DLL in the callback function.
//The following code is for reference only, actually, processing data in the callback function is not suggested.
//for example, process in the message response function as PostMessage
switch (lCommand)
{
case COMM_ALARM_ACS://Alarm information of access controller
{
NET_DVR_ACS_ALARM_INFO struAcsAlarmInfo = {0};
memcpy(&struAcsAlarmInfo, pAlarmInfo, sizeof(struAcsAlarmInfo));

char szTime[50] = {0};//Alarm time


sprintf(szTime, "%4d-%2d-%2d %2d:%2d:%2d", struAcsAlarmInfo.struTime.dwYear,
struAcsAlarmInfo.struTime.dwMonth, struAcsAlarmInfo.struTime.dwDay,
struAcsAlarmInfo.struTime.dwHour,
struAcsAlarmInfo.struTime.dwMinute, struAcsAlarmInfo.struTime.dwSecond);

char szCardNo[50] = {0};//Card No.


sprintf(szCardNo, "CardNo:%s", (char *)struAcsAlarmInfo.struAcsEventInfo.byCardNo);
BYTE byCardType = struAcsAlarmInfo.struAcsEventInfo.byCardType;//Card type
DWORD dwCardReaderNo = struAcsAlarmInfo.struAcsEventInfo.dwCardReaderNo;//Card reader No.
DWORD dwDoorNo = struAcsAlarmInfo.struAcsEventInfo.dwDoorNo;//Door No.

if (struAcsAlarmInfo.dwPicDataLen > 0 && struAcsAlarmInfo.pPicData != NULL)


{
char filename[128];
FILE *fSnapPic=NULL;

SYSTEMTIME t;
GetLocalTime(&t);
char chTime[128];
sprintf(filename,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,
t.wHour,t.wMinute,t.wSecond,t.wMilliseconds);

//Save picture
fSnapPic=fopen(filename,"wb");
fwrite(struAcsAlarmInfo.pPicData,struAcsAlarmInfo.dwPicDataLen,1,fSnapPic);
fclose(fSnapPic);
}
//Handle other information in the alarm structure as desired...
break;
}
default:
break;
}
return true;
}
void main()
{
//---------------------------------------
//Initialize

47
Device Network SDK (Access Control on Card) Developer Guide

NET_DVR_Init();

//Set connection timeout and reconnection function


NET_DVR_SetConnectTime(2000, 1);
NET_DVR_SetReconnect(10000, true);
//---------------------------------------
//Log in to device
LONG lUserID;
//Login parameters, including device IP address, user name, password, and so on
NET_DVR_USER_LOGIN_INFO struLoginInfo = {0};
struLoginInfo.bUseAsynLogin = 0; //Synchronous login mode
strcpy(struLoginInfo.sDeviceAddress, "192.168.1.64"); //Device IP address
struLoginInfo.wPort = 8000; //Device service port number
strcpy(struLoginInfo.sUserName, "admin"); //User name
strcpy(struLoginInfo.sPassword, "abcd1234"); //Password
//Device information, output parameter
NET_DVR_DEVICEINFO_V40 struDeviceInfoV40 = {0};

lUserID = NET_DVR_Login_V40(&struLoginInfo, &struDeviceInfoV40);


if (lUserID < 0)
{
printf("Login failed, error code: %d\n", NET_DVR_GetLastError());
NET_DVR_Cleanup();
return;
}

//Set alarm callback function for capture linkage


NET_DVR_SetDVRMessageCallBack_V31(MSesGCallback, NULL);
//Set up channel for uploading alarm information
NET_DVR_SETUPALARM_PARAM struSetupParam={0};
struSetupParam.dwSize=sizeof(NET_DVR_SETUPALARM_PARAM);

LONG lHandle = NET_DVR_SetupAlarmChan_V41(lUserID,&struSetupParam);


if (lHandle < 0)
{
printf("NET_DVR_SetupAlarmChan_V41 error: %d\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}
//---------------------------------------
//Configure capture parameters
NET_DVR_SNAPCFG struSnapCfg = {0};
struSnapCfg.dwSize = sizeof(NET_DVR_SNAPCFG);
struSnapCfg.bySnapTimes = 2;//Capture times: 0-Not capture, non-0-Continuous capture, up to 5 times are allowed.
struSnapCfg.wIntervalTime[0] = 1000;//Time interval of continuous capture, unit: ms, value range: [67,60000]
struSnapCfg.struJpegPara.wPicSize = 5;//Picture resolution: 5-1280*720

if (!NET_DVR_ContinuousShoot(lUserID, &struSnapCfg))
{
printf("NET_DVR_ContinuousShoot error: %d\n", NET_DVR_GetLastError());
return;

48
Device Network SDK (Access Control on Card) Developer Guide

//---------------------------------------
//Set event and card No. linkage parameters
NET_DVR_EVENT_CARD_LINKAGE_COND struEventCardLinkageCond = {0};
struEventCardLinkageCond.dwSize = sizeof(NET_DVR_EVENT_CARD_LINKAGE_COND);
struEventCardLinkageCond.dwEventID = 1;//Event ID, starts from 1, increase when setting different event/card No.
linkages

NET_DVR_EVENT_CARD_LINKAGE_CFG_V50 struEventCardLinkageCfgV50 = {0};


struEventCardLinkageCfgV50.dwSize = sizeof(NET_DVR_EVENT_CARD_LINKAGE_CFG_V50);
struEventCardLinkageCfgV50.byProMode = 0;//Linked event source: 0-event, 1-card No.
struEventCardLinkageCfgV50.byCapturePic = 1;//Enable capture linkage?: 0-No, 1-Yes

//Event source ID, 0xffffffff-all, other values: invalid, when the major type is device event;
//door No., when the major type is door event; card reader ID, when the major type is card reader event;
//zone alarm input ID or event alarm input ID, when the major type is alarm input event.
struEventCardLinkageCfgV50.dwEventSourceID = 0xffffffff;

//Event major type: 0-device event, 1-alarm input event, 2-door event, 3-card reader event
struEventCardLinkageCfgV50.uLinkageInfo.struEventLinkage.wMainEventType = 2;
//Event minor type: 10-open door by magnetic switch, here takes capturing triggered by door open as an example.
struEventCardLinkageCfgV50.uLinkageInfo.struEventLinkage.wSubEventType = 10;

DWORD dwStatus = 0;
if (!NET_DVR_SetDeviceConfig(lUserID,NET_DVR_SET_EVENT_CARD_LINKAGE_CFG_V50,
1,&struEventCardLinkageCond,sizeof(struEventCardLinkageCond),
&dwStatus,&struEventCardLinkageCfgV50,sizeof(struEventCardLinkageCfgV50)))
{
printf("NET_DVR_SET_EVENT_CARD_LINKAGE_CFG_V50, error: %d\n", NET_DVR_GetLastError());
return;
}

//---------------------------------------
//Set access controller parameters
NET_DVR_ACS_CFG struAcsCfg = {0};
struAcsCfg.dwSize = sizeof(NET_DVR_ACS_CFG);
struAcsCfg.byUploadCapPic = 1;//Upload picture or not when capture is triggered: 0-No, 1-Yes

BOOL bRet = NET_DVR_SetDVRConfig(lUserID, NET_DVR_SET_ACS_CFG, 0, \


&struAcsCfg, sizeof(struAcsCfg));
if (!bRet)
{
printf("NET_DVR_SET_ACS_CFG, error:%d.\n", NET_DVR_GetLastError());
return;
}
//---------------------------------------
//Wait for 30s for receiving captured picture uploaded by device
Sleep(30000);
//Close alarm uploading channel
if (!NET_DVR_CloseAlarmChan_V30(lHandle))
{

49
Device Network SDK (Access Control on Card) Developer Guide

printf("NET_DVR_CloseAlarmChan_V30 error, %d\n", NET_DVR_GetLastError());


NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}
//Log out
NET_DVR_Logout(lUserID);
//Release SDK resource
NET_DVR_Cleanup();
return;
}

What to do next
Call NET_DVR_Logout and NET_DVR_Cleanup to log out and release the resource.

2.6.2 Receive Alarm/Event in Arming Mode


When the alarm is triggered or the event occurred, the secondarily developed third-party platform
can automatically connect and send alarm/event uploading command to the device, and then the
device uploads the alarm/event information to the platform for receiving.
Before You Start
• 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 the device.
• Make sure you have configured the alarm/event parameters, refer to the typical alarm/event
configurations for details.
Steps

Figure 2-10 Programming Flow of Receiving Alarm/Event in Arming Mode

50
Device Network SDK (Access Control on Card) Developer Guide

1. Call NET_DVR_SetDVRMessageCallBack_V50 to set callback function for returning alarm/event


information.

Note
• If the configured alarm is triggered or event occurred, the alarm/event information will be
uploaded by device and returned in the callback function. You can view the alarm/event and
do some processing operations.
• For the integration via device network SDK (HCNetSDK), to receive different types of alarm/
event information, the parameter lCommand (data type to be uploaded) in the configured
callback function should be different (refer to the typical alarm/event configurations). For the
integration via Intelligent Security API (ISAPI), the lCommand should be set to
"COMM_ISAPI_ALARM" (command No.: 0x6009) and the input parameter pAlarmInfo in the
callback function MSGCallBack should be set to NET_DVR_ALARM_ISAPI_INFO .

2. Call NET_DVR_SetupAlarmChan_V50 to set up uploading channel.


3. Call NET_DVR_CloseAlarmChan_V30 to close uploading channel and stop receiving alarm or
event information.
Example
Sample Code of Receiving Alarm or Event in Arming Mode
#include <stdio.h>
#include <iostream>
#include "Windows.h"
#include "HCNetSDK.h"
using namespace std;

void main() {
//---------------------------------------
// Initialize
NET_DVR_Init();
//Set connection time and reconnection time
NET_DVR_SetConnectTime(2000, 1);
NET_DVR_SetReconnect(10000, true);
//---------------------------------------
// Log in to device
LONG lUserID;
//Login parameters, including device IP address, user name, password, and so on.
NET_DVR_USER_LOGIN_INFO struLoginInfo = {0};
struLoginInfo.bUseAsynLogin = 0; //Synchronous login mode
strcpy(struLoginInfo.sDeviceAddress, "192.0.0.64"); //Device IP address
struLoginInfo.wPort = 8000; //Service port No.
strcpy(struLoginInfo.sUserName, "admin"); //User name
strcpy(struLoginInfo.sPassword, "abcd1234"); //Password
//Device information, output parameter
NET_DVR_DEVICEINFO_V40 struDeviceInfoV40 = {0};
lUserID = NET_DVR_Login_V40(&struLoginInfo, &struDeviceInfoV40);
if (lUserID < 0)
{
printf("Login failed, error code: %d\n", NET_DVR_GetLastError());

51
Device Network SDK (Access Control on Card) Developer Guide

NET_DVR_Cleanup();
return;
}

//Set alarm callback function


NET_DVR_SetDVRMessageCallBack_V50(0, MessageCallbackNo1, NULL);
NET_DVR_SetDVRMessageCallBack_V50(1, MessageCallbackNo2, NULL);

//Enable arming
NET_DVR_SETUPALARM_PARAM_V50 struSetupParamV50={0};
struSetupParamV50.dwSize=sizeof(NET_DVR_SETUPALARM_PARAM_V50);
//Alarm category to be uploaded
struSetupParamV50.byAlarmInfoType=1;
//Arming level
struSetupParamV50.byLevel=1;

char szSubscribe[1024] = {0};


//The following code is for alarm subscription (subscribe all)
memcpy(szSubscribe, "<SubscribeEvent version=\"2.0\" xmlns=\"http://www.isapi.org/ver20/XMLSchema\">\r
\n<eventMode>all</eventMode>\r\n", 1024);
LONG lHandle = -1;
if (0 == strlen(szSubscribe))
{
//Arm
lHandle = NET_DVR_SetupAlarmChan_V50(lUserID, &struSetupParamV50, NULL, strlen(szSubscribe));
}
else
{
//Subscribe
LlHandle = NET_DVR_SetupAlarmChan_V50(lUserID, &struSetupParamV50, szSubscribe, strlen(szSubscribe));
}

if (lHandle < 0)
{
printf("NET_DVR_SetupAlarmChan_V50 error, %d\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

Sleep(20000);
//Disarm the uploading channel
if (!NET_DVR_CloseAlarmChan_V30(lHandle))
{
printf("NET_DVR_CloseAlarmChan_V30 error, %d\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

//Log out
NET_DVR_Logout(lUserID);

52
Device Network SDK (Access Control on Card) Developer Guide

//Release resources
NET_DVR_Cleanup();
return;
}

What to do next
Call NET_DVR_Logout and NET_DVR_Cleanup to log out and release resources.

2.6.3 Receive Alarm/Event in Listening Mode


When alarm is triggered or event occurred, the device uploads the alarm/event information
automatically, so you can configure the listening address and port for listening and receiving the
alarm/event in the secondarily developed third-part platform.
Before You Start
• Make sure you have called NET_DVR_Init to initialize the development environment.
• Make sure you have configured the alarm/event parameters, refer to the typical alarm/event
configurations for details.

53
Device Network SDK (Access Control on Card) Developer Guide

Steps

Figure 2-11 Programming Flow of Receiving Alarm/Event in Listening Mode


1. Optional: Call NET_DVR_Login_V40 to log in to device.
2. Optional: Call NET_DVR_GetDVRConfig with "NET_DVR_GET_NETCFG_V50" (command No.:
1015) to get the existing listening configurations (i.e., listening address and port) for reference.
The listening parameters are retruned in the structure NET_DVR_NETCFG_V50 by the output
parameter pointer lpOutBuffer.
3. Call NET_DVR_SetDVRConfig with "NET_DVR_SET_NETCFG_V50" (command No.: 1016) and
specify the input parameter pointer lpInBuffer to the structure NET_DVR_NETCFG_V50 for
setting the listening address and port.
4. Call NET_DVR_StartListen_V30 to set callback function for returning alarm/event information
and start the listening.

Note
For the integration via device network SDK (HCNetSDK), to receive different types of alarm/
event information, the parameter lCommand (data type to be uploaded) in the configured
callback function should be different (refer to the typical alarm/event configurations). For the
integration via Intelligent Security API (ISAPI), the lCommand should be set to

54
Device Network SDK (Access Control on Card) Developer Guide

"COMM_ISAPI_ALARM" and the input parameter pAlarmInfo in the callback function


MSGCallBack should be set to NET_DVR_ALARM_ISAPI_INFO .
The alarm/event information is automatically uploaded by the device when the configured
alarm is triggered or event occurred, and the third-party platform or system gets the alarm/
event information from the configured callback function.
5. Call NET_DVR_StopListen_V30 to stop listening and receiving alarm or event information.
Example
Sample Code of Receiving Alarm/Event in Listening Mode
#include <stdio.h>
#include <iostream>
#include "Windows.h"
#include "HCNetSDK.h"
using namespace std;
void main() {
//---------------------------------------
// Initialize
NET_DVR_Init();
//Set connection time and reconnection time
NET_DVR_SetConnectTime(2000, 1);
NET_DVR_SetReconnect(10000, true);
//---------------------------------------
// Log in to device
LONG lUserID;
NET_DVR_DEVICEINFO_V30 struDeviceInfo;
lUserID = NET_DVR_Login_V30("172.0.0.100", 8000, "admin", "12345", &struDeviceInfo);
if (lUserID < 0)
{
printf("Login error, %d\n", NET_DVR_GetLastError());
NET_DVR_Cleanup();
return;
}
//Enable listening
LONG lHandle;
lHandle = NET_DVR_StartListen_V30(NULL,7200, MessageCallback, NULL);
if (lHandle < 0)
{
printf("NET_DVR_StartListen_V30 error, %d\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}
Sleep(5000);
//Disable listening
if (!NET_DVR_StopListen_V30(lHandle))
{
printf("NET_DVR_StopListen_V30 error, %d\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;

55
Device Network SDK (Access Control on Card) Developer Guide

}
//Log out
NET_DVR_Logout(lUserID);
//Release SDK resource
NET_DVR_Cleanup();
return;
}

What to do next
Call NET_DVR_Logout (if logged in) and NET_DVR_Cleanup to log out and release resources.

2.6.4 Search for Access Control Events


If the access control alarms or events are received and stored in the third-party platform, you can
search for the alarms or events by setting different search conditions.
Before You Start
• 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.

56
Device Network SDK (Access Control on Card) Developer Guide

Steps

Figure 2-12 Programming Flow of Searching for Access Control Events


1. Optional: Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/
AccessControl/GetAcsEvent/capabilities for getting the capability of access control alarm/event
search to know the details or notices about search.

Note
To check whether the device supports searching for access control events, you can call
NET_DVR_GetDeviceAbility , set the capability type dwAbilityType to "ACS_ABILITY" (macro
definition value: 0x801), and set the input parameter pointer pInBuf to the message
XML_Desc_AcsAbility for getting the access control capability.
The capaility is returned in the message XML_AcsAbility by the output parameter pointer
pOutBuf. The related node is <isSupportGetDeviceEvent>.
The capability message XML_Cap_GetAcsEvent is returned.
2. Call NET_DVR_StartRemoteConfig with "NET_DVR_GET_ACS_EVENT" (command No: 2514) and
set IpInBuffer to NET_DVR_ACS_EVENT_COND for setting up persistent connection and set
callback function ( fRemoteConfigCallback ).

57
Device Network SDK (Access Control on Card) Developer Guide

The access control event details are returned in the structure NET_DVR_ACS_EVENT_CFG by
the output buffer (lpBuffer) of callback function.
3. Optional: Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/
AccessControl/AcsEventTotalNum/capabilities?format=json to get the capability of getting total
number of access control events by specific conditions.
4. Optional: Call NET_DVR_STDXMLConfig to pass through the request URL: POST /ISAPI/
AccessControl/AcsEventTotalNum?format=json and set IpInBuffer to the message
JSON_AcsEventTotalNumCond for getting the total number of access control events by specific
conditions.
5. Call NET_DVR_StopRemoteConfig to disconnect the persistent connection and finish searching.
Example
Sample Code of Searching for Access Control Event
#include <stdio.h>
#include <iostream>
#include "Windows.h"
#include "HCNetSDK.h"
using namespace std;

BOOL CALLBACK MSesGCallback(LONG lCommand, NET_DVR_ALARMER *pAlarmer, char *pAlarmInfo, DWORD


dwBufLen, void* pUser)
{
//As the operations with long time consumption are not allowed in the callback function,
//do not call the API of HCNetSDK.DLL in the callback function.
//The following code is for reference only, actually, processing data in the callback function is not suggested.
//for example, process in the message response function as PostMessage
switch (lCommand)
{
case COMM_ALARM_ACS://Alarm information of access controller
{
NET_DVR_ACS_ALARM_INFO struAcsAlarmInfo = {0};
memcpy(&struAcsAlarmInfo, pAlarmInfo, sizeof(struAcsAlarmInfo));
//Handle other information in the alarm structure as desired...
break;
}
case COMM_PASSNUM_INFO_ALARM://Number of passed persons
{
NET_DVR_PASSNUM_INFO_ALARM struPassnumInfo = {0};
memcpy(&struPassnumInfo, pAlarmInfo, sizeof(struPassnumInfo));
//Handle other information in the alarm structure as desired...
break;
}
default:
break;
}
return true;
}
void main()
{
//---------------------------------------

58
Device Network SDK (Access Control on Card) Developer Guide

//Initialize
NET_DVR_Init();

//Set connection timeout and reconnection function


NET_DVR_SetConnectTime(2000, 1);
NET_DVR_SetReconnect(10000, true);
//---------------------------------------
//Log in to device
LONG lUserID;
//Login parameters, including device IP address, user name, password, and so on
NET_DVR_USER_LOGIN_INFO struLoginInfo = {0};
struLoginInfo.bUseAsynLogin = 0; //Synchronous login mode
strcpy(struLoginInfo.sDeviceAddress, "192.168.1.64"); //Device IP address
struLoginInfo.wPort = 8000; //Device service port number
strcpy(struLoginInfo.sUserName, "admin"); //User name
strcpy(struLoginInfo.sPassword, "abcd1234"); //Password

//Device information, output parameter


NET_DVR_DEVICEINFO_V40 struDeviceInfoV40 = {0};

lUserID = NET_DVR_Login_V40(&struLoginInfo, &struDeviceInfoV40);


if (lUserID < 0)
{
printf("Login failed, error code: %d\n", NET_DVR_GetLastError());
NET_DVR_Cleanup();
return;
}

//Set alarm callback function for card swiping event


NET_DVR_SetDVRMessageCallBack_V31(MSesGCallback, NULL);
//Set up channel for uploading alarm information
NET_DVR_SETUPALARM_PARAM struSetupParam={0};
struSetupParam.dwSize=sizeof(NET_DVR_SETUPALARM_PARAM);

LONG lHandle = NET_DVR_SetupAlarmChan_V41(lUserID,&struSetupParam);


if (lHandle < 0)
{
printf("NET_DVR_SetupAlarmChan_V41 error, %d\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

//Wait for 60s for receiving captured picture uploaded by device


Sleep(60000);
//Close alarm uploading channel
if (!NET_DVR_CloseAlarmChan_V30(lHandle))
{
printf("NET_DVR_CloseAlarmChan_V30 error, %d\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;

59
Device Network SDK (Access Control on Card) Developer Guide

}
//Log out
NET_DVR_Logout(lUserID);
//Release SDK resource
NET_DVR_Cleanup();
return;
}

What to do next
Call NET_DVR_Logout and NET_DVR_Cleanup to log out and release the resource.

2.7 Remotely Control Door


You can remotely control door, i.e., open, close, remain open, and remain close, by the access
controller.
Call NET_DVR_ControlGateway to remotely control door.

Note
• If the device is configured with multi-factor authentication mode, this API is available only when
the parameter dwGroupNo in the structure NET_DVR_GROUP_COMBINATION_INFO_V50 is set
to "0xffffffff".
• Before controlling door by calling the above API, you should call NET_DVR_Init and
NET_DVR_Login_V40 to initialize the resources and log in to device.
• After controlling door, you should call NET_DVR_Logout and NET_DVR_Cleanup to log out and
release the resource.

Figure 2-13 Door Control Example Page

60
Device Network SDK (Access Control on Card) Developer Guide

Example
Sample Code for Remotely Controlling Door
#include <stdio.h>
#include <iostream>
#include <afx.h>
#include "Windows.h"
#include "HCNetSDK.h"
using namespace std;

void main()
{
//---------------------------------------
//Initialize
NET_DVR_Init();

//Set connection timeout and reconnection function


NET_DVR_SetConnectTime(2000, 1);
NET_DVR_SetReconnect(10000, true);

//---------------------------------------
//Initialize
NET_DVR_Init();

//Set connection timeout and reconnection function


NET_DVR_SetConnectTime(2000, 1);
NET_DVR_SetReconnect(10000, true);
//---------------------------------------
//Log in to device
LONG lUserID;
//Login parameters, including device IP address, user name, password, and so on
NET_DVR_USER_LOGIN_INFO struLoginInfo = {0};
struLoginInfo.bUseAsynLogin = 0; //Synchronous login mode
strcpy(struLoginInfo.sDeviceAddress, "192.168.1.64"); //Device IP address
struLoginInfo.wPort = 8000; //Device service port number
strcpy(struLoginInfo.sUserName, "admin"); //User name
strcpy(struLoginInfo.sPassword, "abcd1234"); //Password

//Device information, output parameter


NET_DVR_DEVICEINFO_V40 struDeviceInfoV40 = {0};

lUserID = NET_DVR_Login_V40(&struLoginInfo, &struDeviceInfoV40);


if (lUserID < 0)
{
printf("Login failed, error code: %d\n", NET_DVR_GetLastError());
NET_DVR_Cleanup();
return;
}

//Open door, take door 1 as an example


BOOL bRet;
LONG lGatewayIndex = 1;//Access controller No., starts from 1, -1: control all doors

61
Device Network SDK (Access Control on Card) Developer Guide

DWORD dwStaic = 1;//Command No.: 0-Close, 1-Open, 2-Remain Open, 3-Remain Closed

bRet = NET_DVR_ControlGateway(lUserID,lGatewayIndex,dwStaic);
if (!bRet)
{
printf("NET_DVR_ControlGateway failed, error:%d\n",NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

//---------------------------------------
//Exit
Sleep(5000);

//Log out
NET_DVR_Logout(lUserID);
//Release SDK resource
NET_DVR_Cleanup();
return;
}

2.8 Status Monitoring


You can get the status of access controllers, turnstiles, and other devices to monitor their
operation.

Working Status of Access Controller


Call NET_DVR_GetDVRConfig with the command "NET_DVR_GET_ACS_WORK_STATUS_V50"
(command No.: 2180).
The working status is returned in the structure NET_DVR_ACS_WORK_STATUS_V50 by the output
buffer lpOutBuffer.

Note
To check whether getting working status of the access controller is supported, you can call
NET_DVR_GetDeviceAbility , set the capability type dwAbilityType to "ACS_ABILITY" (macro
definition value: 0x801), and set the input parameter pointer pInBuf to the message
XML_Desc_AcsAbility for getting the access control capability.
The capability is returned in the message XML_AcsAbility by the output parameter pointer
pOutBuf. The related node is <AcsWorkStatus>.

62
Device Network SDK (Access Control on Card) Developer Guide

General Turnstile Status

Function Description
Get Capability of Getting Call NET_DVR_STDXMLConfig to transmit the request URL:
General Turnstile Status GET /ISAPI/AccessControl/GateStatus/capabilities .
The capability is returned in the message XML_Cap_GateStatus
by lpOutBuffer.
Get General Turnstile Status Call NET_DVR_STDXMLConfig to transmit the request URL:
GET /ISAPI/AccessControl/GateStatus .
The status is returned in the message XML_GateStatus by
lpOutBuffer.

Note
To check whether the device supports getting general turnstile status, you can call
NET_DVR_STDXMLConfig to transmit the request URL: GET x /ISAPI/AccessControl/capabilities to
get the access control capability.
The capability is returned in the message XML_Cap_AccessControl by lpOutBuffer. If this function
is supported by the device, the node <isSupportGateStatus> will be returned in the message and
its value is "true".

Status of Active Infrared Intrusion Detector of Turnstile

Function Description
Get Capability of Getting Status Call NET_DVR_STDXMLConfig to transmit the request URL:
of Active Infrared Intrusion GET /ISAPI/AccessControl/GateIRStatus/capabilities .
Detector of Turnstile The capability is returned in the message
XML_Cap_GateIRStatus by lpOutBuffer.
Get Status of Active Infrared Call NET_DVR_STDXMLConfig to transmit the request URL:
Intrusion Detector of Turnstile GET /ISAPI/AccessControl/GateIRStatus .
The status is returned in the message XML_GateIRStatus by
lpOutBuffer.

Note
To check whether the device supports getting the status of the active infrared intrusion detector of
the turnstile, you can call NET_DVR_STDXMLConfig to transmit the request URL: GET /ISAPI/
AccessControl/capabilities to get the access control capability.
The capability is returned in the message XML_Cap_AccessControl by lpOutBuffer. If this function
is supported by the device, the node <isSupportGateIRStatus> will be returned in the message and
its value is "true".

63
Device Network SDK (Access Control on Card) Developer Guide

Turnstile Component Status

Function Description
Get Capability of Getting Call NET_DVR_STDXMLConfig to transmit the request URL:
Related Components' Status of GET /ISAPI/AccessControl/GateRelatedPartsStatus/
Turnstile capabilities .
The capability is returned in the message
XML_Cap_GateRelatedPartsStatus by lpOutBuffer.
Get Related Components' Call NET_DVR_STDXMLConfig to transmit the request URL:
Status of Turnstile GET /ISAPI/AccessControl/GateRelatedPartsStatus .
The status is returned in the message
XML_GateRelatedPartsStatus by lpOutBuffer.

Note
To check whether the device supports getting related components' status of the turnstile, you can
call NET_DVR_STDXMLConfig to transmit the request URL: GET /ISAPI/AccessControl/capabilities
to get the access control capability.
The capability is returned in the message XML_Cap_AccessControl by lpOutBuffer. If this function
is supported by the device, the node <isSupportGateRelatedPartsStatus> will be returned in the
message and its value is "true".

2.8.1 Configure Attendance Status


The time and attendance refers to tracking and monitoring when employees start and stop
working, and working hours (including late arrivals, early departures, time taken on breaks and
absenteeism, etc.). You can set the manual or automatic time and attendance mode, or disable the
attendance mode. You can also set check in, check out, break out, break in, overtime in, or
overtime out to manually change the attendance status as needed.
Before You Start
• 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 the device.
• Make sure you have added at least one card, refer to Manage Card Information for details.

64
Device Network SDK (Access Control on Card) Developer Guide

Steps

Figure 2-14 Programming Flow of Configuring Attendance Status

65
Device Network SDK (Access Control on Card) Developer Guide

1. Optional: Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/
AccessControl/attendanceStatusModeCfg/capabilities?format=json to get the configuration
capability of the attendance mode and know the supported attendance modes.
The configuration capability is returned in the message JSON_Cap_AttendanceStatusModeCfg
by lpOutBuffer.
2. Optional: Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/
AccessControl/attendanceStatusModeCfg?format=json to get the default or configured
attendance mode for reference.
The attendance mode is returned in the message JSON_AttendanceStatusModeCfg by
lpOutBuffer.
3. Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/AccessControl/
attendanceStatusModeCfg?format=json and set lpInBuffer to the message
JSON_AttendanceStatusModeCfg to configure the attendance mode.
4. Optional: Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/
AccessControl/attendanceStatusRuleCfg/capabilities?format=json to get the configuration
capability of the attendance status and rule and know the supported attendance status and
rules.
The configuration capability of the attendance status and rule is returned in the message
JSON_Cap_AttendanceStatusRuleCfg by lpOutBuffer.
5. Optional: Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/
AccessControl/attendanceStatusRuleCfg?attendanceStatus=&format=json to get the default or
configured attendance status and rule for reference.
The attendance status and rules are returned in the message JSON_AttendanceStatusRuleCfg
by lpOutBuffer.
6. Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/AccessControl/
attendanceStatusRuleCfg?attendanceStatus=&format=json and set lpInBuffer to the message
JSON_AttendanceStatusRuleCfg to configure the attendance status and rule.
What to do next
Call NET_DVR_Logout and NET_DVR_Cleanup to log out of the device and release the resources.

2.9 Turnstile Settings


The turnstile is a lane management device that is used to manage the entrance and exit of people
in places such as office buildings, subways, residences, and so on. By adopting the turnstile
integrated with the access control system, people should authenticate to pass through the lane by
swiping ID card, scanning QR code, etc. With alarm linkage and output configured, unauthorized
entrance and exit can trigger and upload alarms. Common turnstiles include swing barrier, flap
barrier, tripod turnstile, and so on.

66
Device Network SDK (Access Control on Card) Developer Guide

2.9.1 Lane Controller Settings


The lane controller, including master lane controller and slave lane controller, is mainly used to
control infrared or motor components of the turnstile.

Basic Configuration

Function Description
Get Configuration Capability Call NET_DVR_STDXMLConfig to transmit the request URL:
GET /ISAPI/AccessControl/ChannelControllerCfg/capabilities .
The configuration capability is returned in the message
XML_Cap_ChannelControllerCfg by lpOutBuffer.
Get Parameters Call NET_DVR_STDXMLConfig to transmit the request URL:
GET /ISAPI/AccessControl/ChannelControllerCfg .
The parameters are returned in the message
XML_ChannelControllerCfg by lpOutBuffer.
Set Parameters Call NET_DVR_STDXMLConfig to transmit the request URL:
PUT /ISAPI/AccessControl/ChannelControllerCfg and set
lpInBuffer to the message XML_ChannelControllerCfg .

Note
To check whether configuring lane controller is supported, you can call NET_DVR_STDXMLConfig
to transmit the request URL: GET /ISAPI/AccessControl/capabilities to get the access control
capability.
The access control capability is returned in the message XML_Cap_AccessControl by lpOutBuffer.
If configuring lane controller is supported, the node <isSupportChannelControllerCfg> will be
returned and its value is "true".

Device Type Configuration

Function Description
Get Configuration Capability of Call NET_DVR_STDXMLConfig to transmit the request URL:
Device Type GET /ISAPI/AccessControl/channelControllerTypeCfg/
capabilities?format=json .
The configuration capability is returned in the message
JSON_ChannelControllerTypeCfgCap by lpOutBuffer.
Get Device Type Call NET_DVR_STDXMLConfig to transmit the request URL:
GET /ISAPI/AccessControl/channelControllerTypeCfg?
format=json .

67
Device Network SDK (Access Control on Card) Developer Guide

Function Description
The device type parameters are returned in the message
JSON_ChannelControllerTypeCfg by lpOutBuffer.
Set Device Type Call NET_DVR_STDXMLConfig to transmit the request URL:
PUT /ISAPI/AccessControl/channelControllerTypeCfg?
format=json and set lpInBuffer to the message
JSON_ChannelControllerTypeCfg .

Note
To check whether configuring device type of the lane controller is supported, you can call
NET_DVR_STDXMLConfig to transmit the request URL: GET /ISAPI/AccessControl/capabilities to
get the access control capability.
The access control capability is returned in the message XML_Cap_AccessControl by lpOutBuffer.
If configuring device type of the lane controller is supported, the node
<isSupportChannelControllerTypeCfg> will be returned and its value is "true".

Alarm Linkage Configuration

Function Description
Get Configuration Capability of Call NET_DVR_STDXMLConfig to transmit the request URL:
Alarm Linkage GET /ISAPI/AccessControl/ChannelControllerAlarmLinkage/
capabilities .
The configuration capability is returned in the message
XML_Cap_ChannelControllerAlarmLinkage by lpOutBuffer.
Get Alarm Linkage Parameters Call NET_DVR_STDXMLConfig to transmit the request URL:
GET /ISAPI/AccessControl/ChannelControllerAlarmLinkage .
The parameters are returned in the message
XML_ChannelControllerAlarmLinkage by lpOutBuffer.
Set Alarm Linkage Parameters Call NET_DVR_STDXMLConfig to transmit the request URL:
PUT /ISAPI/AccessControl/ChannelControllerAlarmLinkage and
set lpInBuffer to the message
XML_ChannelControllerAlarmLinkage .

Note
To check whether the device supports configuring alarm linkage of the lane controller, you can call
NET_DVR_STDXMLConfig to transmit the request URL: GET /ISAPI/AccessControl/capabilities to
get the access control capability.

68
Device Network SDK (Access Control on Card) Developer Guide

The capability is returned in the message XML_Cap_AccessControl by lpOutBuffer. If this function


is supported by the device, the node <isSupportChannelControllerAlarmLinkage> will be returned
in the message and its value is "true".

Alarm Output Configuration

Function Description
Get Configuration Capability of Call NET_DVR_STDXMLConfig to transmit the request URL:
Alarm Output GET /ISAPI/AccessControl/ChannelControllerAlarmOut/
capabilities .
The configuration capability is returned in the message
XML_Cap_ChannelControllerAlarmOut by lpOutBuffer.
Get Alarm Output Parameters Call NET_DVR_STDXMLConfig to transmit the request URL:
GET /ISAPI/AccessControl/ChannelControllerAlarmOut?
controllerType=&alarmOutNo= .
The parameters are returned in the message
XML_ChannelControllerAlarmOut by lpOutBuffer.
Set Alarm Output Parameters Call NET_DVR_STDXMLConfig to transmit the request URL:
PUT /ISAPI/AccessControl/ChannelControllerAlarmOut?
controllerType=&alarmOutNo= and set lpInBuffer to the
message XML_ChannelControllerAlarmOut .

Note
To check whether the device supports configuring alarm output of the lane controller, you can call
NET_DVR_STDXMLConfig to transmit the request URL: GET /ISAPI/AccessControl/capabilities to
get the access control capability.
The capability is returned in the message XML_Cap_AccessControl by lpOutBuffer. If this function
is supported by the device, the node <isSupportChannelControllerAlarmOut> will be returned in
the message and its value is "true".

Alarm Output Control

Function Description
Get Capability of Controlling Call NET_DVR_STDXMLConfig to transmit the request URL:
Alarm Output GET /ISAPI/AccessControl/ChannelControllerAlarmOutControl/
capabilities .
The capability is returned in the message
XML_Cap_ChannelControllerAlarmOutControl by lpOutBuffer.
Control Alarm Output Call NET_DVR_STDXMLConfig to transmit the request URL:
PUT /ISAPI/AccessControl/ChannelControllerAlarmOutControl

69
Device Network SDK (Access Control on Card) Developer Guide

Function Description
and set lpInBuffer to the message
XML_ChannelControllerAlarmOutControl .

Note
To check whether the device supports controlling alarm output of the lane controller, you can call
NET_DVR_STDXMLConfig to transmit the request URL: GET /ISAPI/AccessControl/capabilities for
getting the access control capability.
The capability is returned in the message XML_Cap_AccessControl by lpOutBuffer. If this function
is supported, the node <isSupportChannelControllerAlarmOutControl> will be returned in the
message and its value is "true".

2.9.2 Main Controller Settings


The main controller is mainly used to authenticate access permissions, connect to peripherals, and
communicate with the lane controller and the upper-level platform.

Function Description
Upload Audio File of Main 1. Call NET_DVR_GetDeviceAbility , set the capability type
Controller dwAbilityType to "ACS_ABILITY" (macro definition value:
0x801), and set the input parameter pointer pInBuf to the
message XML_Desc_AcsAbility for getting the access control
capability to check whether the device supports uploading
the audio file of the main controller.
The capability is returned in the message XML_AcsAbility by
the output parameter pointer pOutBuf. The related node is
<UploadRightControllerAudio>.
2. Call NET_DVR_UploadFile_V40 , set dwUploadType to
"UPLOAD_RIGHT_CONTROLLER_AUDIO" (macro definition
value: 42), and set lpInBuffer to the structure
NET_DVR_RIGHT_CONTROLLER_AUDIO_PARAM for
uploading the audio file of the main controller.
3. Call NET_DVR_GetUploadState to get file uploading progress.

70
Device Network SDK (Access Control on Card) Developer Guide

Function Description

Note
If the progress is "4" (network disconnected), you should
stop uploading first and perform step 2 again when the
network is restored.
4. Call NET_DVR_UploadClose to stop uploading the audio file.
Download Audio File of Main 1. Call NET_DVR_GetDeviceAbility , set the capability type
Controller dwAbilityType to "ACS_ABILITY" (macro definition value:
0x801), and set the input parameter pointer pInBuf to the
message XML_Desc_AcsAbility for getting the access control
capability to check whether the device supports downloading
the audio file of the main controller.
The capability is returned in the message XML_AcsAbility by
the output parameter pointer pOutBuf. The related node is
<DownloadRightControllerAudio>.
2. Call NET_DVR_StartDownload , set dwDownloadType to
"NET_SDK_DOWNLOAD_RIGHT_CONTROLLER_AUDIO"
(macro definition value: 24), and set lpInBuffer to the
structure NET_DVR_RIGHT_CONTROLLER_AUDIO_PARAM
for downloading the audio file of the main controller.
3. Call NET_DVR_GetDownloadState to get file downloading
progress.

Note
If the progress is "4" (network disconnected), you should
stop downloading first and perform step 2 again when the
network is restored.
4. Call NET_DVR_StopDownload to stop downloading the audio
file.
Get Configuration Capability of Call NET_DVR_STDXMLConfig to transmit the request URL:
Audio File of Main Controller GET /ISAPI/AccessControl/RightControllerAudio/capabilities .
The configuration capability is returned in the message
XML_Cap_RightControllerAudio by lpOutBuffer.
Get Audio File Parameters of Call NET_DVR_STDXMLConfig to transmit the request URL:
Main Controller GET /ISAPI/AccessControl/RightControllerAudio/<ID> .
The parameters are returned in the message
XML_RightControllerAudio by lpOutBuffer.

71
Device Network SDK (Access Control on Card) Developer Guide

Function Description
Set Audio File Parameters of Call NET_DVR_STDXMLConfig to transmit the request URL:
Main Controller PUT /ISAPI/AccessControl/RightControllerAudio/<ID> and set
lpInBuffer to the message XML_RightControllerAudio .
Delete Audio File of Main Call NET_DVR_STDXMLConfig to transmit the request URL:
Controller DELETE /ISAPI/AccessControl/RightControllerAudio/<ID> .

Note
To check whether the device supports configuring audio file
parameters of the main controller, you can call
NET_DVR_STDXMLConfig to transmit the request URL: GET /
ISAPI/AccessControl/capabilities for getting the access control
capability.
The capability is returned in the message
XML_Cap_AccessControl by lpOutBuffer. If this function is
supported by the device, the node
<isSupportRightControllerAudio> will be returned in the
message and its value is "true".

2.9.3 Other Settings

Local DIP (Dual In-line Package) and Information

Function Description
Get Capability of Getting Local Call NET_DVR_STDXMLConfig to transmit the request URL:
DIP and Information GET /ISAPI/AccessControl/GateDialAndInfo/capabilities .
The capability is returned in the message
XML_Cap_GateDialAndInfo by lpOutBuffer.
Get Local DIP and Information Call NET_DVR_STDXMLConfig to transmit the request URL:
GET /ISAPI/AccessControl/GateDialAndInfo .
The information is returned in the message
XML_GateDialAndInfo by lpOutBuffer.

Note
To check whether the device supports getting local DIP and information of the turnstile, you can
call NET_DVR_STDXMLConfig to transmit the request URL: GET /ISAPI/AccessControl/capabilities
to get the access control capability.

72
Device Network SDK (Access Control on Card) Developer Guide

The capability is returned in the message XML_Cap_AccessControl by lpOutBuffer. If this function


is supported by the device, the node <isSupportGateDialAndInfo> will be returned in the message
and its value is "true".

People Counting

Function Description
Get People Counting Call NET_DVR_GetDVRConfig with the command "NET_DVR_
Parameters GET_PERSON_STATISTICS_CFG" (command No.: 2170).
The parameters are returned in the structure
NET_DVR_PERSON_STATISTICS_CFG by the output buffer
lpOutBuffer.
Set People Counting Call NET_DVR_SetDVRConfig with the command "NET_DVR_
Parameters SET_PERSON_STATISTICS_CFG" (command No.: 2171) and set
the input buffer lpInBuffer to the structure
NET_DVR_PERSON_STATISTICS_CFG .

Note
To check whether the device supports configuring people counting parameters, you can call
NET_DVR_GetDeviceAbility , set the capability type dwAbilityType to "ACE_ABILITY" (macro
definition value: 0x801), and set the input parameter pointer pInBuf to the message
XML_Desc_AcsAbility for getting the access control capability.
The capability is returned in the message XML_AcsAbility by the output parameter pointer
pOutBuf. The related node is <PersonStatisticsCfg>.

Turnstile Barrier Time

Function Description
Get Barrier Time Parameters of Call NET_DVR_GetDVRConfig with the command "NET_DVR_
Turnstile GET_GATE_TIME_CFG" (command No.: 2174).
The parameters are returned in the structure
NET_DVR_GATE_TIME_CFG by the output buffer lpOutBuffer.
Set Barrier Time Parameters of Call NET_DVR_SetDVRConfig with the command "NET_DVR_
Turnstile SET_GATE_TIME_CFG" (command No.: 2175) and set the input
buffer lpInBuffer to the structure NET_DVR_GATE_TIME_CFG .

Note
To check whether the device supports configuring barrier time parameters of the turnstile, you can
call NET_DVR_GetDeviceAbility , set the capability type dwAbilityType to "ACE_ABILITY" (macro

73
Device Network SDK (Access Control on Card) Developer Guide

definition value: 0x801), and set the input parameter pointer pInBuf to the message
XML_Desc_AcsAbility for getting the access control capability.
The capability is returned in the message XML_AcsAbility by the output parameter pointer
pOutBuf. The related node is <GateTimeCfg>.

2.10 Other Applications

Intelligent Identity Detection Terminal

Function Description
Get Configuration Capability Call NET_DVR_STDXMLConfig to transmit the request URL:
GET /ISAPI/AccessControl/IdentityTerminal/capabilities .
And the configuration capability is returned in the message
XML_Cap_IdentityTerminal by output parameter
(lpOutputParam).
Get Parameters Call NET_DVR_STDXMLConfig to transmit the request URL:
GET /ISAPI/AccessControl/IdentityTerminal .
And the parameters are returned in the message
XML_IdentityTerminal by the output buffer (lpOutBuffer) of
output parameter (lpOutputParam).
Set Parameters Call NET_DVR_STDXMLConfig to transmit the request URL:
PUT /ISAPI/AccessControl/IdentityTerminal and set the input
buffer (lpInBuffer) of input parameter (lpInputParam) to the
message XML_IdentityTerminal .

Access Control Device No.

Function Description
Get Device No. Call NET_DVR_GetDVRConfig with "NET_DVR_GET_VIDEO_
INTERCOM_DEVICEID_CFG" (command No.: 16001).
And the access control device No. will be returned in the
structure NET_DVR_VIDEO_INTERCOM_DEVICEID_CFG by the
output buffer (lpOutBuffer).
Set Device No. Call NET_DVR_SetDVRConfig with "NET_DVR_SET_VIDEO_
INTERCOM_DEVICEID_CFG" (command No.: 16002) and set the
input buffer (lpInBuffer) to the structure
NET_DVR_VIDEO_INTERCOM_DEVICEID_CFG .

74
Device Network SDK (Access Control on Card) Developer Guide

Linked Network Device

Function Description
Get Parameters of Linked Call NET_DVR_GetDVRConfig with "NET_DVR_GET_VIDEO_
Network Device INTERCOM_RELATEDEV_CFG" (command No.: 16006).
And the parameters of linked network device are returned in the
structure NET_DVR_VIDEO_INTERCOM_RELATEDEV_CFG by the
output buffer (lpOutBuffer).
Set Parameters of Linked Call NET_DVR_SetDVRConfig with "NET_DVR_SET_VIDEO_
Network Device INTERCOM_RELATEDEV_CFG" (command No.: 16007) and set
the input buffer (lpInBuffer) to the structure
NET_DVR_VIDEO_INTERCOM_RELATEDEV_CFG .

Reader

Function Description
Get Reader Parameters Call NET_DVR_GetDVRConfig with "NET_DVR_GET_CARD_
READER_CFG_V50" (command No.: 2505).
And the reader parameters are returned in the structure
NET_DVR_CARD_READER_CFG_V50 by the output buffer
(lpOutBuffer).
Set Reader Parameters Call NET_DVR_SetDVRConfig with "NET_DVR_SET_CARD_
READER_CFG_V50" (command No.: 2506) and set the input
buffer (lpInBuffer) to the structure
NET_DVR_CARD_READER_CFG_V50 .
Table 2-1 NFC (Near-Field Communication) Function
Function Description
Get Configuration Capability of Call NET_DVR_STDXMLConfig to transmit the request URL:
Enabling or Disabling NFC GET /ISAPI/AccessControl/Configuration/NFCCfg/capabilities?
Function format=json .
And the configuration capability is returned in the message
JSON_NFCCfgCap by the output parameter (lpOutputParam).
Get Parameters of Enabling or Call NET_DVR_STDXMLConfig to transmit the request URL:
Disabling NFC Function GET /ISAPI/AccessControl/Configuration/NFCCfg?format=json .
And the parameters are returned in the message JSON_NFCCfg
by lpOutBuffer of lpOutputParam.
Set Parameters of Enabling or Call NET_DVR_STDXMLConfig to transmit the request URL:
Disabling NFC Function PUT /ISAPI/AccessControl/Configuration/NFCCfg?format=json

75
Device Network SDK (Access Control on Card) Developer Guide

Function Description
and set lpInBuffer of lpInputParam to the message
JSON_NFCCfg .
Table 2-2 RF (Radio Frequency) Card Recognition
Function Description
Get Configuration Capability of Call NET_DVR_STDXMLConfig to transmit the request URL:
Enabling or Disabling RF Card GET /ISAPI/AccessControl/Configuration/RFCardCfg/
Recognition capabilities?format=json .
And the configuration capability is returned in the message
JSON_RFCardCfgCap by the output parameter
(lpOutputParam).
Get Parameters of Enabling or Call NET_DVR_STDXMLConfig to transmit the request URL:
Disabling RF Card Recognition GET /ISAPI/AccessControl/Configuration/RFCardCfg?
format=json
And the parameters are returned in the message
JSON_RFCardCfg by lpOutBuffer of lpOutputParam.
Set Parameters of Enabling or Call NET_DVR_STDXMLConfig to transmit the request URL:
Disabling RF Card Recognition PUT /ISAPI/AccessControl/Configuration/RFCardCfg?
format=json and set lpInBuffer of lpInputParam to the message
JSON_RFCardCfg .
Table 2-3 Active Infrared Intrusion Detection
Function Description
Get Configuration Capability of Call NET_DVR_STDXMLConfig to transmit the request URL:
Active Infrared Intrusion GET /ISAPI/AccessControl/Configuration/IRCfg/capabilities?
Detection format=json .
And the configuration capability is returned in the message
JSON_IRCfgCap by lpOutputParam.
Get Parameters of Active Call NET_DVR_STDXMLConfig to transmit the request URL:
Infrared Intrusion Detection GET /ISAPI/AccessControl/Configuration/IRCfg?format=json .
And the parameters are returned in the message JSON_IRCfg by
lpOutputParam.
Set Parameters of Active Call NET_DVR_STDXMLConfig to transmit the request URL:
Infrared Intrusion Detection PUT /ISAPI/AccessControl/Configuration/IRCfg?format=json
and set the lpInputParam to JSON_IRCfg .

76
Device Network SDK (Access Control on Card) Developer Guide

Table 2-4 Condition Parameters of Face Picture Comparison


Function Description
Get Condition Configuration Call NET_DVR_STDXMLConfig to transmit the request URL:
Capability of Face Picture GET /ISAPI/AccessControl/FaceCompareCond/capabilities .
Comparison And the configuration capability is returned in the message
XML_Cap_FaceCompareCond by lpOutputParam.
Get Conditions of Face Picture Call NET_DVR_STDXMLConfig to transmit the request URL:
Comparison GET /ISAPI/AccessControl/FaceCompareCond .
And the conditions are returned in the message
XML_FaceCompareCond by lpOutputParam.
Set Conditions of Face Picture Call NET_DVR_STDXMLConfig to transmit the request URL:
Comparison PUT /ISAPI/AccessControl/FaceCompareCond and set
lpInputParam to XML_FaceCompareCond .

Peripherals Connected via Serial Port

Function Description
Get Peripheral Parameters Call NET_DVR_GetDVRConfig with the command "NET_DVR_
GET_ACS_EXTERNAL_DEV_CFG" (command No.: 2165) and set
the lChannel to 4-byte RS-485 serial port No.
The parameters are returned in the structure
NET_DVR_ACS_EXTERNAL_DEV_CFG by the output buffer
lpOutBuffer.
Set Peripheral Parameters Call NET_DVR_SetDVRConfig with the command "NET_DVR_
SET_ACS_EXTERNAL_DEV_CFG" (command No.: 2166), set the
lChannel to 4-byte RS-485 serial port No., and set the input
buffer lpInBuffer to the structure
NET_DVR_ACS_EXTERNAL_DEV_CFG .

Note
• The 4-byte RS-485 serial port No. starts from 1.
• To check whether the device supports configuring peripheral parameters connected to the
access controller via serial port, you can call NET_DVR_GetDeviceAbility , set the capability type
dwAbilityType to "ACE_ABILITY" (macro definition value: 0x801), and set the input parameter
pointer pInBuf to the message XML_Desc_AcsAbility for getting the access control capability.
The capability is returned in the message XML_AcsAbility by the output parameter pointer
pOutBuf. The related node is <ExternalDevCfg>.

77
Device Network SDK (Access Control on Card) Developer Guide

Chapter 3 API Reference

3.1 NET_DVR_Cleanup
Release the resources after the program is ended.

API Definition
BOOL NET_DVR_Cleanup(
);

Return Values
Returns TURE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
The available error codes may be returned by this API are 0 and 3. See details in Device Network
SDK Errors .
Remarks
• When calling this API, you cannot call other APIs at the same time.
• NET_DVR_Init and this API should be called by pair. That is, once the NET_DVR_Init is called, you
should call NET_DVR_Cleanup to release the resources when exiting the program.

3.2 NET_DVR_GetErrorMsg
Return the error information of the last operation.

API Definition
char *NET_DVR_GetErrorMsg(
LONG *pErrorNo
);

Parameters
pErrorNo
[OUT] Error code pointer.

Return Values
The return values are the pointers of error information, see Device Network SDK Errors for details.
Remarks
You can call NET_DVR_GetLastError to get the error codes.

78
Device Network SDK (Access Control on Card) Developer Guide

3.3 NET_DVR_GetLastError
Return the error code of the last operation.

API Definition
DWORD NET_DVR_GetLastError(
);

Return Values
The return values are error codes, see Device Network SDK Errors for details.
Remarks
You can also call NET_DVR_GetErrorMsg to directly get the error information.

3.4 NET_DVR_Init
Initialize the programming environment before calling other APIs.

API Definition
BOOL NET_DVR_Init(
);

Return Values
Returns TURE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
The available error codes of this API are 0, 41, and 53. See details in Device Network SDK Errors .
Remarks
Before initializing, you can call NET_DVR_SetSDKInitCfg to set the initialization parameters, such as
supported capabilities, loading path of component libraries (only supported by Linux system), and
so on.
See Also
NET_DVR_Cleanup

3.5 NET_DVR_Login_V40
Log in to the device (supports asynchronous login).

79
Device Network SDK (Access Control on Card) Developer Guide

API Definition
LONG NET_DVR_Login_V40(
NET_DVR_USER_LOGIN_INFO pLoginInfo,
NET_DVR_DEVICEINFO_V40 lpDeviceInfo
);

Parameters
pLoginInfo
[IN] Login parameters, including device address, user name, password, and so on. See details in
the structure NET_DVR_USER_LOGIN_INFO .
lpDeviceInfo
[OUT] Device information. See details in the structure NET_DVR_DEVICEINFO_V40 .

Return Values
• For asynchronous login, the callback function ( fLoginResultCallBack ) configured in the
structure ( NET_DVR_USER_LOGIN_INFO ) returns the asynchronous login status, user ID and
device information.
• For synchronous login, this API returns -1 for logging failed, and returns other values for the
returned user IDs. The user ID is unique, and it helps to realize the further device operations.
• If -1 is returned, you can call NET_DVR_GetLastError to get the error code.

Remarks
• When bUseAsynLogin in pLoginInfo is 0, it indicates that login is in synchronous mode; when
bUseAsynLogin in pLoginInfo is 1, it indicates that login is in asynchronous mode.
• Up to 2048 users are allowed to log in to HCNetSDK at same time, and the values of returned
UserID are ranging from 0 to 2047.

See Also
NET_DVR_Logout

3.5.1 fLoginResultCallBack

Login Status Callback Function

Member Data Type Description


lUserID LONG User ID, which is returned by
NET_DVR_Login_V40 .
dwResult DWORD Login status: 0-asynchronously logging in failed,
1-asynchronously logged in.

80
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


lpDeviceInfo NET_DVR_DEVICEINFO Device information, such as serial No., channel,
_V40 capability, and so on.
pUser void* User data.

3.6 NET_DVR_Logout
Log out from devices.

API Definitions
BOOL NET_DVR_Logout(
LONG lUserID
);

Parameters
lUserID
[IN] User ID, which is returned by NET_DVR_Login_V40 .

Return Values
Returns TURE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
The available error codes may be returned by this API are 0, 3, 7, 8, 9, 10, 14, 17, 41, 44, 47, 72,
and 73. See details in Device Network SDK Errors .

3.7 NET_DVR_SetSDKInitCfg
Set initialization parameters.

API Parameters
BOOL NET_DVR_SetSDKInitCfg(
NET_SDK_INIT_CFG_TYPE enumType,
void* const lpInBuff
);

Parameters
enumType
[IN] Initialization parameter type. Different type values correspond to different parameters, see
details in the table below.

81
Device Network SDK (Access Control on Card) Developer Guide

Table 3-1 NET_SDK_INIT_CFG_TYPE


enumType Value Description lpInBuff
NET_SDK_INIT_CFG_ 1 Capability supported by NET_DVR_INIT_CFG_A
ABILITY SDK. BILITY
NET_SDK_INIT_CFG_ 2 Set loading path for NET_DVR_LOCAL_SDK
SDK_PATH component libraries _PATH
(only supported by
Linux system).
NET_SDK_INIT_CFG_ 3 Set path (including Path in string format,
LIBEAY_PATH library name) for e.g., C:\\libeay32.dll.
libeay32.dll (Windows),
libcrypto.so (Linux),
and libcrypto.dylib
(Mac) of OpenSSL in
version 1.1.1 and 1.0.2.
NET_SDK_INIT_CFG_ 4 Set path (including Path in string format,
SSLEAY_PATH library name) for e.g., C:\\ssleay32.dll.
ssleay32.dll (Windows),
libssl.so (Linux),
libssl.dylib (Mac) of
OpenSSL in version
1.1.1 and 1.0.2.
lpInBuff
[IN] Input parameter. Different parameter types correspond to different structures, see details in
the table above.

Return Values
Returns TURE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
Remarks
This API should be called before calling NET_DVR_Init to initialize and check the dependent
libraries or capabilities.

3.8 NET_DVR_GetDeviceAbility
Get the device capabilities.

82
Device Network SDK (Access Control on Card) Developer Guide

API Definition
BOOL NET_DVR_GetDeviceAbility(
LONG lUserID,
DWORD dwAbilityType,
char *pInBuf,
DWORD dwInLength,
char *pOutBuf,
DWORD dwOutLength
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
dwAbilityType
[IN] Capability types, which are different according to different devices and functions.
pInBuf
[IN] Input parameter buffer pointer, which are different according to different devices and
functions, and they are returned in the structure or messages.
dwInLength
[IN] Size of input buffer.
pOutBuf
[OUT] Output parameter buffer pointer, which are different according to different devices and
functions, and they are returned in the structure or messages.
dwOutLength
[OUT] Size of buffer for receiving data.

Return Values
Returns TRUE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.

3.9 NET_DVR_GetDeviceConfig
Get device configuration information in batch (with sending data).

API Definition
BOOL NET_DVR_GetDeviceConfig(
LONG lUserID,
DWORD dwCommand,
DWORD dwCount,
LPVOID lpInBuffer,

83
Device Network SDK (Access Control on Card) Developer Guide

DWORD dwInBufferSize,
LPVOID lpStatusList,
LPVOID lpOutBuffer,
DWORD dwOutBufferSize
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
dwCommand
[IN] Device getting commands. The commands are different for different getting functions.
dwCount
[IN] Number of configurations (cameras) to get at a time. 0, 1-one camera, 2-two cameras, 3-
three cameras, and so on. Up to 64 cameras' configuration information can be obtained at a
time.
lpInBuffer
[IN] Pointer of configuration condition buffer, which specifies the number (dwCount) of
configurations to get, and relates to the getting commands.
dwInBufferSize
[IN] Size of configuration condition buffer, which saves the obtained configuration information
(the number is dwCount).
lpStatusList
[OUT] Error information list, and its memory is allocated by user, each error information
contains 4 bytes (a unsigned 32-bit integer).
There is a one-to-one correspondence between the errors in the list and the cameras need to
search, e.g., lpStatusList[2] corresponds to lpInBuffer[2].
If the parameter value is 0 or 1, it refers to getting succeeded, otherwise, this parameter value is
the error code.
lpOutBuffer
[OUT] Parameters returned by device, which relates to the getting commands. And there is a
one-to-one correspondence between the parameters and the cameras need to search.
If the lpStatusList of one camera is larger than 1, the corresponding lpOutBuffer is invalid.
dwOutBufferSize
[IN] Total size of returned results (the number is dwCount).

Return Values
Returns TRUE for success, and returns FALSE for failure. If returns TRUE, it does not mean that all
configurations are obtained, you can check the value of lpStatusList[n] to judge which one is
succeeded.

84
Device Network SDK (Access Control on Card) Developer Guide

If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
See Also
NET_DVR_SetDeviceConfig

3.10 NET_DVR_GetDownloadState
Call this API to get the file downloading progress and status.

API Definition
LONG NET_DVR_GetDownloadState(
LONG lDownloadHandle,
LPDWORD pProgress
);

Parameters
lDownloadHandle
[IN] Handle for downloading files, which is returned by NET_DVR_StartDownload .
pProgress
[OUT] Returned progress value, which is ranging from 1 to 100.

Return Values
Returns -1 for calling failed, and returns other values as the downloading status codes: 1-
Downloaded, 2-Downloading, 3-Downloading Failed, 4-Network Disconnected, Unknown Status.
If returning failed, you can call NET_DVR_GetLastError to get the error code.

3.11 NET_DVR_GetNextRemoteConfig
Get the next search result.

API Definition
LONG NET_DVR_GetNextRemoteConfig(
LONG lHandle,
void *lpOutBuff,
DWORD dwOutBuffSize
);

Parameters
lHandle
[IN] Search handle, which is the value returned by NET_DVR_StartRemoteConfig .

85
Device Network SDK (Access Control on Card) Developer Guide

lpOutBuff
[OUT] Output parameter buffer pointer, which relates to the commands (dwCommand) of
NET_DVR_StartRemoteConfig .
dwOutBuffSize
[IN] Buffer size.

Return Values
Returns -1 for failure, and returns other values for the current statuses, see details in the following
table.
Status Value Description
NET_SDK_GET_NEXT_STATUS_ 1000 The data is obtained. The API NET_​DVR_
SUCCESS GetNextRemoteConfig should be called again to
get the next item of data.
NET_SDK_GET_NETX_STATUS_ 1001 Waiting. The API NET_​DVR_​GetNextRemoteConfig
NEED_WAIT can be called again.
NET_SDK_GET_NEXT_STATUS_ 1002 All data is obtained. The API
FINISH NET_DVR_StopRemoteConfig can be called to end.
NET_SDK_GET_NEXT_STATUS_ 1003 Getting data exception. The API
FAILED NET_DVR_StopRemoteConfig can be called to end.

If -1 is returned, you can call NET_DVR_GetLastError to get the error code.


Remarks
To get all information, you should call this API repeatedly.

3.12 NET_DVR_GetUploadState
Get the file uploading progress and status.

API Definition
LONG NET_DVR_GetUploadState(
LONG lUploadHandle,
LPDWORD pProgress
);

Parameters
lUploadHandle
[IN] Handling for uploading files, which is returned by NET_DVR_UploadFile_V40 .
pProgress

86
Device Network SDK (Access Control on Card) Developer Guide

[OUT] Returned progress value.

Return Values
Return -1 for failure, and return other values as the uploading status codes, see details in the
following table.
Table 3-2 Uploading Status Code
Return Value Description
1 Uploaded.
2 Uploading.
3 Uploading failed.
4 Network disconnected. Unknown status.
6 HDD error.
7 No HDD for saving inquest files.
8 Insufficient capacity.
9 Insufficient device resource.
10 No more files can be uploaded.
11 Too large file size.
12 File type error.
19 Invalid file format.
20 Incorrect file content.
21 The uploaded audio sampling rate is not
supported.
26 Name error.
27 Invalid picture resolution.
28 Too many targets in the picture.
30 Picture recognition failed.
31 Analysis engine exception.
32 Analyzing picture failed.
34 Incorrect security verification key.

87
Device Network SDK (Access Control on Card) Developer Guide

3.13 NET_DVR_ControlGateway
Call this API to remotely control the door or elevator.

API Definition
BOOL NET_DVR_ControlGateway(
LONG lUserID,
LONG lGatewayIndex,
DWORD dwStaic
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
lGatewayIndex
[IN] Door No. or floor No., which starts from 1, -1: Control all doors or elevators of floors.
dwStaic
[IN] Command No.: 0-Close (Under Control), 1-Open, 2-Remain Open (Free), 3-Remain Closed
(Disabled), 4-Recovery (only for elevator), 5-Vistor Call Elevator (only for elevator), 6-Resident
Call Elevator (only for elevator).

Return Values
Returns TRUE for success, and returns FALSE for failure.
If returning failed, you can call NET_DVR_GetLastError to get the error code.

3.14 NET_DVR_SendRemoteConfig
Send data via the persistent connection.

API Definition
BOOL NET_DVR_SendRemoteConfig(
LONG lHandle,
DWORD dwDataType,
char *pSendBuf,
DWORD dwBufSize
);

Parameters
lHandle
Persistent configuration handle, which is returned by NET_DVR_StartRemoteConfig .

88
Device Network SDK (Access Control on Card) Developer Guide

dwDataType
[IN] Data type, which relates to the commands of NET_DVR_StartRemoteConfig .
pSendBuf
[IN] Buffer for saving data to be sent, which relates to dwDataType.
dwBufSize
[IN] Size of data to be sent.

Return Values
Returns TRUE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
Remarks
Before calling this API, you must call NET_DVR_StartRemoteConfig to get the persistent
connection handle.

3.15 NET_DVR_SetDeviceConfig
Set device parameters in batch (sending data is supported).

API Definition
BOOL NET_DVR_SetDeviceConfig(
LONG lUserID,
DWORD dwCommand,
DWORD dwCount,
LPVOID lpInBuffer,
DWORD dwInBufferSize,
LPVOID lpStatusList,
LPVOID lpInParamBuffer,
DWORD dwInParamBufferSize
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
dwCommand
[IN] Device configuration commands, which are different according to different configurations.
dwCount
[IN] Number of cameras to be set at a time. 0,1-one camera, 2-two cameras, 3-three cameras,
and so on. Up to 256 cameras can be configured at a time.
lpInBuffer

89
Device Network SDK (Access Control on Card) Developer Guide

[IN] Pointer of configuration condition buffer, e.g., stream ID, which specifies the number
(dwCount) of cameras to set, and relates to the configuration commands.
dwInBufferSize
[IN] Size of configuration condition buffer, which saves the configured information of cameras
with the number of dwCount.
lpStatusList
[OUT] Error information list, and its memory is allocated by user, each error information
contains 4 bytes (a unsigned 32-bit integer).
There is a one-to-one correspondence between the errors in the list and the cameras that need
to be searched, e.g., lpStatusList[2] corresponds to lpInBuffer[2].
If the parameter value is 0, it refers to setting succeeded, otherwise, this parameter value is the
error code.
lpInParamBuffer
[IN] Device parameters to set, which relates to the configuration commands. And there is a one-
to-one correspondence between the parameters and the cameras that need to be searched.
dwInParamBufferSize
[IN] Set the size of content buffer.

Return Values
Returns TRUE for success, and returns FALSE for all failed. If returns TRUE, it does not indicate that
all settings are succeeded, you can get the value of lpStatusList[n] to check which one is
succeeded.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
See Also
NET_DVR_GetDeviceConfig

3.16 NET_DVR_StartDownload
Call this API to download the files.

API Definition
LONG NET_DVR_StartDownload(
LONG lUserID,
DWORD dwDownloadType,
LPVOID lpInBuffer,
DWORD dwInBufferSize,
char const *sFileName
);

90
Device Network SDK (Access Control on Card) Developer Guide

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
dwDownloadType
[IN] Downloading commands which specify the file type to download, see details in the
enumeration NET_SDK_DOWNLOAD_TYPE .
lpInBuffer
[IN] Input parameters, which are different according to different downloading commands.
dwInBufferSize
[IN] Input buffer size.
sFileName
[IN] Path for saving downloaded files (absolute path, includes file name).

Return Values
Returns -1 for failure, and returns other values as the parameters of NET_DVR_StopDownload and
NET_DVR_GetDownloadState .
If returning failed, you can call NET_DVR_GetLastError to get the error code.

3.17 NET_DVR_StartRemoteConfig
Enable remote configuration.

API Definition
LONG NET_DVR_StartRemoteConfig(
LONG lUserID,
DWORD dwCommand,
LPVOID lpInBuffer,
DWORD dwInBufferLen,
fRemoteConfigCallback cbStateCallback,
LPVOID pUserData
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
dwCommand
[IN] Configuration commands. For different functions, the commands and lpInBuffer are
different.
lpInBuffer

91
Device Network SDK (Access Control on Card) Developer Guide

Input parameter buffer pointer, which relates to the configuration command.


dwInBufferLen
[IN] Size of input buffer.
cbStateCallback
[IN] Status callback function, see the definition in fRemoteConfigCallback .
pUserData
[OUT] User data.

Return Values
Returns -1 for failure, and returns other values for the handles of NET_DVR_GetNextRemoteConfig
and NET_DVR_StopRemoteConfig .
If -1 is returned, you can call NET_DVR_GetLastError to get the error code.
Remarks
This API specifies the information to search. After calling this API, you can call
NET_DVR_GetNextRemoteConfig to get the information one by one.

3.17.1 fRemoteConfigCallback
Function for calling back the persistent connection status and data to be transmitted.

Callback Function Definition


void(CALLBACK *fRemoteConfigCallback)(
DWORD dwType,
void *lpBuffer,
DWORD dwBufLen,
void *pUserData
);

Parameters
dwType
[OUT] Connection statuses, see the macro definitions below:
enum _NET_SDK_CALLBACK_TYPE_{
NET_SDK_CALLBACK_TYPE_STATUS = 0,
NET_SDK_CALLBACK_TYPE_PROGRESS = 1,
NET_SDK_CALLBACK_TYPE_DATA = 2
}NET_SDK_CALLBACK_TYPE

NET_SDK_CALLBACK_TYPE_STATUS
Connection status.

92
Device Network SDK (Access Control on Card) Developer Guide

NET_SDK_CALLBACK_TYPE_PROGRESS
Connection progress.
NET_SDK_CALLBACK_TYPE_DATA
Related data to be called back.
lpBuffer
[OUT] Pointer of buffer for saving progress, status, and related data to be called back, which
relates to dwType, see details in the following table.

dwType lpBuffer
NET_SDK_CALLBACK_TYPE_STATUS If dwBufLen is 4, lpBuffer is 4-byte connection
status; if dwBufLen is 8, lpBuffer consists of 4-
byte connection status and 4-byte error code.
The connection status is enumerated in
NET_SDK_CALLBACK_STATUS_NORMAL
NET_SDK_CALLBACK_TYPE_PROGRESS Connection progress value.
NET_SDK_CALLBACK_TYPE_DATA Data structures to be returned, which are
different according to different commands
(dwCommand) in
NET_DVR_StartRemoteConfig .
dwBufLen
[OUT] Buffer size.
pUserData
[OUT] User data.

3.18 NET_DVR_STDXMLConfig
Transmit request URL with XML or JSON format to implement some typical functions.

API Definition
BOOL NET_DVR_STDXMLConfig(
LONG lUserID,
const NET_DVR_XML_CONFIG_INPUT *lpInputParam,
NET_DVR_XML_CONFIG_OUTPUT *lpOutputParam
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .

93
Device Network SDK (Access Control on Card) Developer Guide

lpInputParam
[IN] Input parameters, refer to the structure NET_DVR_XML_CONFIG_INPUT for details.
lpOutputParam
[IN][OUT] Output parameters, refer to the structure NET_DVR_XML_CONFIG_OUTPUT for
details.

Return Values
Return TRUE for success, and return FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
Remarks
The input parameter lpInputParam and output parameter lpOutputParam are different when
passing through request URLs for implementing different functions, and each parameter
corresponds to a component of ISAPI protocol, see the relations below:
Parameter of NET_​DVR_​STDXMLConfig Component of ISAPI Protocol
lpInputParam lpRequestUrl (see in structure Method+URL
NET_DVR_XML_CONFIG_INPU E.g., GET /​ISAPI/​System/
T) capabilities
lpInBuffer (see in structure Request Message
NET_DVR_XML_CONFIG_INPU
T)
lpOutputParam lpOutBuffer (see in structure Response Message
NET_DVR_XML_CONFIG_OUTP
UT )
lpStatusBuffer (see in structure Response Message
NET_DVR_XML_CONFIG_OUTP
UT )

3.19 NET_DVR_StopDownload
Call this API to stop downloading files.

API Definition
BOOL NET_DVR_StopDownload(
LONG lHandle
);

94
Device Network SDK (Access Control on Card) Developer Guide

Parameters
lHandle
[IN] Handle for downloading files, which is returned by NET_DVR_StartDownload .

Return Values
Returns TRUE for success, and returns FALSE for failure.
If returning failed, you can call NET_DVR_GetLastError to get the error code.

3.20 NET_DVR_StopRemoteConfig
Disconnect the persistent connection to stop remote configuration, and release resources.

API Definition
BOOL NET_DVR_StopRemoteConfig(
LONG lHandle
);

Parameters
lHandle
[IN] Handle, which is returned by NET_DVR_StartRemoteConfig .

Return Values
Returns TRUE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.

3.21 NET_DVR_UploadClose
Stop uploading files.

API Definition
BOOL NET_DVR_UploadClose(
LONG lUploadHandle
);

Parameters
lUploadHandle
[IN] Handle for uploading files, which is returned by NET_DVR_UploadFile_V40 .

95
Device Network SDK (Access Control on Card) Developer Guide

Return Values
Return TRUE for success, and return FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.

3.22 NET_DVR_UploadFile_V40
Upload file.

API Definition
LONG NET_DVR_UploadFile_V40(
LONG lUserID,
DWORD dwUploadType,
LPVOID lpInBuffer,
DWORD dwInBufferSize,
char *sFileName,
LPVOID lpOutBuffer,
DWORD dwOutBufferSize
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
dwUploadType
[IN] Uploading commands, which specify the file type to upload, see details in the enumeration
NET_SDK_UPLOAD_TYPE .
lpInBuffer
[IN] Input parameters, which are different according to different uploading commands.
dwInBufferSize
[IN] Input buffer size.
sFileName
[IN] Name of the file to be uploaded. For the complete file path (including the file name), the
maximum size is 128 bytes, and the maximum size of the file name is 32 bytes.
lpOutBuffer
[OUT] Output parameters, which are different according to different uploading commands.
dwOutBufferSize
[OUT] Output buffer size.

96
Device Network SDK (Access Control on Card) Developer Guide

Return Values
Return -1 for failure, and return other values as the parameter of NET_DVR_UploadClose and
NET_DVR_GetUploadState .
If -1 is returned, you can call NET_DVR_GetLastError to get the error code.

3.23 NET_DVR_CloseAlarmChan_V30
Close alarm uploading channel.

API Definition
BOOL NET_DVR_CloseAlarmChan_V30(
LONG lAlarmHandle
);

Parameters
lAlarmHandle
Value returned by NET_DVR_SetupAlarmChan_V50 .

Return Values
Return TURE for success, and return FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
The available error codes of this API are 0, 3, 6, 12, 17, 41, and 47. See details in the Device
Network SDK Errors .

3.24 NET_DVR_GetDVRConfig
Get the device configuration information.

API Definition
BOOL NET_DVR_GetDVRConfig(
LONG lUserID,
DWORD dwCommand,
LONG lRuleID,
LONG lChannel,
LPVOID lpOutBuffer,
DWORD dwOutBufferSize,
LPDWORD lpBytesReturned
);

Parameters
lUserID

97
Device Network SDK (Access Control on Card) Developer Guide

[IN] Value returned by NET_DVR_Login_V40 .


dwCommand
[IN] Device getting commands, which are different according to different getting functions.
lRuleID
[IN] Rule ID.
lChannel
[IN] Channel No. (NIC No.), which varies with different commands. 0xffffffff-invalid or all
channels, 1-main NIC, 2-extended NIC.
lpOutBuffer
[OUT] Pointer of buffer to receive data. For different getting functions, the structures of this
parameter are different.
dwOutBufferSize
[IN] Size of buffer to receive data (unit: byte). It cannot be 0.
lpBytesReturned
[OUT] Pointer of actually received data size. It cannot be NULL.

Return Values
Returns TRUE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
The following error codes may be returned by this API: 0, 3, 6, 7, 8, 9, 10, 12, 17, 41, 43, 44, 47, 72,
73, and 76. See the corresponding error types and descriptions in the Device Network SDK Errors .
See Also
NET_DVR_SetDVRConfig

3.25 NET_DVR_SetDVRConfig
Set the device parameters.

API Definition
BOOL NET_DVR_SetDVRConfig(
LONG lUserID,
DWORD dwCommand,
LONG lChannel,
LPVOID lpInBuffer,
DWORD dwInBufferSize
);

Parameters
lUserID

98
Device Network SDK (Access Control on Card) Developer Guide

[IN] Value returned by NET_DVR_Login_V40 .


dwCommand
[IN] Device configuration commands, which are different according to different configuration
functions.
lChannel
[IN] Channel No. (NIC No.), which varies with different commands. 0xFFFFFFFF-invalid, 1-main
NIC, 2-extended NIC.
lpInBuffer
[IN] Pointer of input data buffer. For different configuration functions, the structures of this
parameter are different.
dwInBufferSize
[IN] Size of input data buffer (unit: byte).

Return Values
Returns TRUE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
The following error codes may be returned by this API: 0, 3, 6, 7, 8, 9, 10, 12, 17, 41, 43, 44, 47, 72,
73, and 76. See the corresponding error types and descriptions in the Device Network SDK Errors .
See Also
NET_DVR_GetDVRConfig

3.26 NET_DVR_SetDVRMessageCallBack_V50
Set callback functions for getting the video data.

API Definition
BOOL NET_DVR_SetDVRMessageCallBack_V50(
int iIndex,
MSGCallBack fMessageCallBack,
void *pUser
);

Parameters
iIndex
[IN] Callback function index No., which ranges from 0 to 15.
fMessageCallBack
[IN] Callback function, see details in MSGCallBack .
pUser

99
Device Network SDK (Access Control on Card) Developer Guide

[IN] User data.

Return Values
Return TRUE for success, and return FALSE for failure.
If FALSE returned, call NET_DVR_GetLastError to get the error code.
Remarks
• This API supports setting multiple callback functions for different channels (up to 16 channels are
supported) at same time, and the configured callback functions are distinguished by the index
No.
• All alarm/event information will be returned in each configured callback function, and you can
distinguish the devices via the pAlarmInfo in the callback function ( MSGCallBack ).
Example
Sample Code of Setting Multiple Callback Functions to Receive Different Alarms/Events in Arming
Mode
#include <stdio.h>
#include <iostream>
#include "Windows.h"
#include "HCNetSDK.h"
using namespace std;

int iNum=0;
void CALLBACK MessageCallbackNo1(LONG lCommand, NET_DVR_ALARMER *pAlarmer, char *pAlarmInfo, DWORD
dwBufLen, void* pUser)
{
int i=0;
char filename[100];
FILE *fSnapPic=NULL;
FILE *fSnapPicPlate=NULL;

//This sample code is for reference only. Actually, it is not recommended to process the data and save file in the
callback function directly.
//You'd better process the data in the message response funcion via message mode (PostMessage).

switch(lCommand)
{
case COMM_ALARM:
{
NET_DVR_ALARMINFO struAlarmInfo;
memcpy(&struAlarmInfo, pAlarmInfo, sizeof(NET_DVR_ALARMINFO));
switch (struAlarmInfo.dwAlarmType)
{
case 3: //Motion detection alarm
for (i=0; i<16; i++) //#define MAX_CHANNUM 16 //The maximum number of channels
{
if (struAlarmInfo.dwChannel[i] == 1)
{
printf("Channel Number with Motion Detection Alarm %d\n", i+1);

100
Device Network SDK (Access Control on Card) Developer Guide

}
}
break;
default:
break;
}
break;
}
case COMM_UPLOAD_PLATE_RESULT:
{
NET_DVR_PLATE_RESULT struPlateResult={0};
memcpy(&struPlateResult, pAlarmInfo, sizeof(struPlateResult));
printf("License Plate Number: %s\n", struPlateResult.struPlateInfo.sLicense);//License plate number

switch(struPlateResult.struPlateInfo.byColor)//License plate color


{
case VCA_BLUE_PLATE:
printf("Vehicle Color: Blue\n");
break;
case VCA_YELLOW_PLATE:
printf("Vehicle Color: Yellow\n");
break;
case VCA_WHITE_PLATE:
printf("Vehicle Color: White\n");
break;
case VCA_BLACK_PLATE:
printf("Vehicle Color: Black\n");
break;
default:
break;
}
//Scene picture
if (struPlateResult.dwPicLen != 0 && struPlateResult.byResultType == 1 )
{
sprintf(filename,"testpic_%d.jpg",iNum);
fSnapPic=fopen(filename,"wb");
fwrite(struPlateResult.pBuffer1,struPlateResult.dwPicLen,1,fSnapPic);
iNum++;
fclose(fSnapPic);
}
//License plate picture
if (struPlateResult.dwPicPlateLen != 0 && struPlateResult.byResultType == 1)
{
sprintf(filename,"testPicPlate_%d.jpg",iNum);
fSnapPicPlate=fopen(filename,"wb");
fwrite(struPlateResult.pBuffer1,struPlateResult.dwPicLen,1,fSnapPicPlate);
iNum++;
fclose(fSnapPicPlate);
}
//Processing other data...
break;
}

101
Device Network SDK (Access Control on Card) Developer Guide

case COMM_ITS_PLATE_RESULT:
{
NET_ITS_PLATE_RESULT struITSPlateResult={0};
memcpy(&struITSPlateResult, pAlarmInfo, sizeof(struITSPlateResult));

for (i=0;i<struITSPlateResult.dwPicNum;i++)
{
printf("License Plate Number: %s\n", struITSPlateResult.struPlateInfo.sLicense);//License plate number
switch(struITSPlateResult.struPlateInfo.byColor)//License plate color
{
case VCA_BLUE_PLATE:
printf("Vehicle Color: Blue\n");
break;
case VCA_YELLOW_PLATE:
printf("Vehicle Color: Yellow\n");
break;
case VCA_WHITE_PLATE:
printf("Vehicle Color: White\n");
break;
case VCA_BLACK_PLATE:
printf("Vehicle Color: Black\n");
break;
default:
break;
}
//Save scene picture
if ((struITSPlateResult.struPicInfo[i].dwDataLen != 0)&&(struITSPlateResult.struPicInfo[i].byType== 1)||
(struITSPlateResult.struPicInfo[i].byType == 2))
{
sprintf(filename,"testITSpic%d_%d.jpg",iNum,i);
fSnapPic=fopen(filename,"wb");
fwrite(struITSPlateResult.struPicInfo[i].pBuffer, struITSPlateResult.struPicInfo[i].dwDataLen,1,fSnapPic);
iNum++;
fclose(fSnapPic);
}
//License plate thumbnails
if ((struITSPlateResult.struPicInfo[i].dwDataLen != 0)&&(struITSPlateResult.struPicInfo[i].byType == 0))
{
sprintf(filename,"testPicPlate%d_%d.jpg",iNum,i);
fSnapPicPlate=fopen(filename,"wb");
fwrite(struITSPlateResult.struPicInfo[i].pBuffer, struITSPlateResult.struPicInfo[i].dwDataLen, 1, \
fSnapPicPlate);
iNum++;
fclose(fSnapPicPlate);
}
//Processing other data...
}
break;
}
default:
break;
}

102
Device Network SDK (Access Control on Card) Developer Guide

void CALLBACK MessageCallbackNo2(LONG lCommand, NET_DVR_ALARMER *pAlarmer, char *pAlarmInfo, DWORD


dwBufLen, void* pUser)
{
int i=0;
char filename[100];
FILE *fSnapPic=NULL;
FILE *fSnapPicPlate=NULL;

//This sample code is for reference only. Actually, it is not recommended to process the data and save file in the
callback function directly.
//You'd better process the data in the message response funcion via message mode (PostMessage).

switch(lCommand)
{
case COMM_ALARM:
{
NET_DVR_ALARMINFO struAlarmInfo;
memcpy(&struAlarmInfo, pAlarmInfo, sizeof(NET_DVR_ALARMINFO));
switch (struAlarmInfo.dwAlarmType)
{
case 3: //Motion detection alarm
for (i=0; i<16; i++) //#define MAX_CHANNUM 16 //The maximum number of channel
{
if (struAlarmInfo.dwChannel[i] == 1)
{
printf("Channel No. with Motion Detection Alarm %d\n", i+1);
}
}
break;
default:
break;
}
break;
}
case COMM_UPLOAD_PLATE_RESULT:
{
NET_DVR_PLATE_RESULT struPlateResult={0};
memcpy(&struPlateResult, pAlarmInfo, sizeof(struPlateResult));
printf("License Plate Number: %s\n", struPlateResult.struPlateInfo.sLicense);//License plate number

switch(struPlateResult.struPlateInfo.byColor)//License plate color


{
case VCA_BLUE_PLATE:
printf("Vehicle Color: Blue\n");
break;
case VCA_YELLOW_PLATE:
printf("Vehicle Color: Yellow\n");
break;
case VCA_WHITE_PLATE:
printf("Vehicle color: White\n");

103
Device Network SDK (Access Control on Card) Developer Guide

break;
case VCA_BLACK_PLATE:
printf("Vehicle Color: Black\n");
break;
default:
break;
}
//Scene picture
if (struPlateResult.dwPicLen != 0 && struPlateResult.byResultType == 1 )
{
sprintf(filename,"testpic_%d.jpg",iNum);
fSnapPic=fopen(filename,"wb");
fwrite(struPlateResult.pBuffer1,struPlateResult.dwPicLen,1,fSnapPic);
iNum++;
fclose(fSnapPic);
}
//License plate picture
if (struPlateResult.dwPicPlateLen != 0 && struPlateResult.byResultType == 1)
{
sprintf(filename,"testPicPlate_%d.jpg",iNum);
fSnapPicPlate=fopen(filename,"wb");
fwrite(struPlateResult.pBuffer1,struPlateResult.dwPicLen,1,fSnapPicPlate);
iNum++;
fclose(fSnapPicPlate);
}
//Processing other data...
break;
}
case COMM_ITS_PLATE_RESULT:
{
NET_ITS_PLATE_RESULT struITSPlateResult={0};
memcpy(&struITSPlateResult, pAlarmInfo, sizeof(struITSPlateResult));

for (i=0;i<struITSPlateResult.dwPicNum;i++)
{
printf("License Plate Number: %s\n", struITSPlateResult.struPlateInfo.sLicense);//License plate number
switch(struITSPlateResult.struPlateInfo.byColor)//License plate color
{
case VCA_BLUE_PLATE:
printf("Vehicle Color: Blue\n");
break;
case VCA_YELLOW_PLATE:
printf("Vehicle Color: Yellow\n");
break;
case VCA_WHITE_PLATE:
printf("Vehicle Color: White\n");
break;
case VCA_BLACK_PLATE:
printf("Vehicle Color: Black\n");
break;
default:
break;

104
Device Network SDK (Access Control on Card) Developer Guide

}
//Save scene picture
if ((struITSPlateResult.struPicInfo[i].dwDataLen != 0)&&(struITSPlateResult.struPicInfo[i].byType== 1)||
(struITSPlateResult.struPicInfo[i].byType == 2))
{
sprintf(filename,"testITSpic%d_%d.jpg",iNum,i);
fSnapPic=fopen(filename,"wb");
fwrite(struITSPlateResult.struPicInfo[i].pBuffer, struITSPlateResult.struPicInfo[i].dwDataLen,1,fSnapPic);
iNum++;
fclose(fSnapPic);
}
//License plate thumbnails
if ((struITSPlateResult.struPicInfo[i].dwDataLen != 0)&&(struITSPlateResult.struPicInfo[i].byType == 0))
{
sprintf(filename,"testPicPlate%d_%d.jpg",iNum,i);
fSnapPicPlate=fopen(filename,"wb");
fwrite(struITSPlateResult.struPicInfo[i].pBuffer, struITSPlateResult.struPicInfo[i].dwDataLen, 1, \
fSnapPicPlate);
iNum++;
fclose(fSnapPicPlate);
}
//Processing other data...
}
break;
}
default:
break;
}
}

void main() {

//---------------------------------------
//Initialize
NET_DVR_Init();
//Set the connection time and reconnection time
NET_DVR_SetConnectTime(2000, 1);
NET_DVR_SetReconnect(10000, true);

//---------------------------------------
//Log in to device
LONG lUserID;
NET_DVR_DEVICEINFO_V30 struDeviceInfo;
lUserID = NET_DVR_Login_V30("172.0.0.100", 8000, "admin", "12345", &struDeviceInfo);
if (lUserID < 0)
{
printf("Login error, %d\n", NET_DVR_GetLastError());
NET_DVR_Cleanup();
return;
}

//Set alarm callback function

105
Device Network SDK (Access Control on Card) Developer Guide

NET_DVR_SetDVRMessageCallBack_V50(0, MessageCallbackNo1, NULL);


NET_DVR_SetDVRMessageCallBack_V50(1, MessageCallbackNo2, NULL);

//Enable arming
NET_DVR_SETUPALARM_PARAM struSetupParam={0};
struSetupParam.dwSize=sizeof(NET_DVR_SETUPALARM_PARAM);

//Alarm information type to upload: 0-History Alarm (NET_DVR_PLATE_RESULT), 1-Real-Time Alarm


(NET_ITS_PLATE_RESULT)
struSetupParam.byAlarmInfoType=1;
//Arming Level: Level-2 arming (for traffic device)
struSetupParam.byLevel=1;

LONG lHandle = NET_DVR_SetupAlarmChan_V41(lUserID,&struSetupParam);


if (lHandle < 0)
{
printf("NET_DVR_SetupAlarmChan_V41 error, %d\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

Sleep(20000);
//Disarm uploading channel
if (!NET_DVR_CloseAlarmChan_V30(lHandle))
{
printf("NET_DVR_CloseAlarmChan_V30 error, %d\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

//User logout
NET_DVR_Logout(lUserID);
//Release SDK resource
NET_DVR_Cleanup();
return;
}

See Also
NET_DVR_SetupAlarmChan_V50

3.26.1 MSGCallBack
Alarm/event information callback function.

Callback Function Definition


typedef void(CALLBACK *MSGCallBack)(
LONG lCommand,

106
Device Network SDK (Access Control on Card) Developer Guide

NET_DVR_ALARMER *pAlarmer,
char *pAlarmInfo,
DWORD dwBufLen,
void *pUser
);

Parameters
lCommand
[OUT] Uploaded message type. You can distinguish the alarm/event information via the type.
pAlarmer
[OUT] Alarm device information, including serial No., IP address, login handle, and so on, see
details in NET_DVR_ALARMER .
pAlarmInfo
[OUT] Alarm/event information, the details are returned in different structures according to
lCommand.
dwBufLen
[OUT] Size of alarm/event information buffer.
pUser
[OUT] User data.

3.27 NET_DVR_SetupAlarmChan_V50
Set up persistent connection to receive alarm/event information (supports alarm/event
subscription).

API Definition
LONG NET_DVR_SetupAlarmChan_V50(
LONG lUserID,
NET_DVR_SETUPALARM_PARAM_V50 lpSetupParam,
char *pData,
DWORD dwDataLen,
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
lpSetupParam
[IN] Arming parameters, refer to the structure NET_DVR_SETUPALARM_PARAM_V50 for
details.
pData

107
Device Network SDK (Access Control on Card) Developer Guide

[IN] Alarm/event subscription conditions.


dwDataLen
[IN] Length of alarm/event subscription conditions.

Return Values
Return -1 for failure, and return other values as the handles of NET_DVR_CloseAlarmChan_V30 .
If -1 is returned, you can call NET_DVR_GetLastError to get the error code.
Remarks
This API supports alarm/event subscription, you can specify the types of alarm or event to be
uploaded by device by setting pData and dwDataLen.

3.28 NET_DVR_StartListen_V30
Register callback function for receiving alarm/event information and start listening (supports
multiple threads).

API Definition
LONG NET_DVR_StartListen_V30(
char *sLocalIP,
WORD wLocalPort,
MSGCallBack DataCallback,
void *pUserData
);

Parameters
sLocalIP
[IN] IP address of local PC. It can be set to null.
wLocalPort
[IN] Listening port No. of local PC. It is configured by user, and it should be the same with that of
device.
DataCallback
[IN] Alarm/event information callback function, see details in MSGCallBack .
pUserData
[IN] User data.

Return Values
Return -1 for failure, and return other values for the handle parameters of
NET_DVR_StopListen_V30 .
If -1 is returned, you can call NET_DVR_GetLastError to get the error code.

108
Device Network SDK (Access Control on Card) Developer Guide

The available error codes of this API are 0, 3, 6, 12, 17, 41, 44, 47, 72, and 75. See details in the
Device Network SDK Errors .
Remarks
• To receive the alarm/event information sent by device, you should set the management host
server address or listening host server address of device to the IP address of PC (which is same
with the sLocalIP), or set the management host server port or listening host server port to the
listening port No. of PC (which is same with the wLocalPort).
• The callback function in this API is prior to other callback functions, that is, if the callback
function is configured in this API, other callback functions will not receive the alarm information.
All the device alarm information is returned in same callback function, and you can distinguish
the devices via the alarm device information (pAlarmInfo).

3.29 NET_DVR_StopListen_V30
Stop listening (supports multiple threads).

API Definition
BOOL NET_DVR_StopListen_V30(
LONG lListenHandle
);

Parameters
lListenHandle
Listening handle, which is returned by NET_DVR_StartListen_V30 .

Return Values
Return TRUE for success, and return FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
The available error codes of this API are 0, 3, 12, and 17. See details in the Device Network SDK
Errors .

109
Device Network SDK (Access Control on Card) Developer Guide

Chapter 4 Structure and Enumeration

4.1 Data Structure

4.1.1 NET_ALARM_CVR_SUBINFO_UNION

Union about CVR Alarm Information

Member Data Type Description


byLen Array of BYTE Union size, the maximum size is 492 bytes.
struRecordLost NET_ALARM_RECORD Video loss alarm information, the value of
FILE_LOSS dwAlarmType in
NET_DVR_ALARMINFO_DEV_V40 is 8.
struStreamException NET_ALARM_STREAM Streaming exception alarm information, the
_EXCEPTION value of dwAlarmType in
NET_DVR_ALARMINFO_DEV_V40 is 9.
struResourceUsage NET_ALARM_RESOUR Resource usage alarm information, the value of
CE_USAGE dwAlarmType in
NET_DVR_ALARMINFO_DEV_V40 is 10.
struRecordException NET_ALARM_RECORD Recording exception alarm information, the
_EXCEPTION value of dwAlarmType in
NET_DVR_ALARMINFO_DEV_V40 is 12.

4.1.2 NET_ALARM_RECORD_EXCEPTION

Structure about Recording Exception Alarm Information

Member Data Type Description


byReason BYTE Exception reason: 0-video volume full, 1-video
volume exception, 2-no available video volume.
byRes1 Array of BYTE Reserved, set to 0. The maximum size is 3 bytes.
sVolumeName Array of BYTE Video volume name, the maximum size is 32
bytes (value of macro definition "MAX_
VOLUMENAME_LEN").

110
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


dwVolumeID DWORD Video volume ID, or HDD No.
byRes Array of BYTE Reserved, set to 0. The maximum size is 452
bytes.

4.1.3 NET_ALARM_RECORDFILE_LOSS

Structure about Video Loss Alarm Information

Member Data Type Description


struInspectStart NET_DVR_TIME_EX Start time of video loss check.
struInspectEnd NET_DVR_TIME_EX End time of video loss check.
struIP NET_DVR_IPADDR IP address of video loss channel.
dwChanNo DWORD Channel No.
dwIDIndex DWORD Encoder ID.
sName Array of BYTE Encoder name, the maximum size is 32 bytes
(value of macro definition "STREAM_ID_LEN").
struLossStartTime NET_DVR_TIME_EX Start time of video loss.
struLossEndTime NET_DVR_TIME_EX End time of video loss.
dwLostNum DWORD Number of lost video files, 0xffffffff-​all video
files are lost.
byRes Array of BYTE Reserved, set to 0. The maximum size is 240
bytes.

4.1.4 NET_ALARM_RESOURCE_USAGE

Structure about Resource Usage Alarm Information

Member Data Type Description


byLevel BYTE Usage alarm level: 0-normal, 1-alarm level 1, 2-
alarm level 2, 3-alarm level 3.
byRes Array of BYTE Reserved, set to 0. The maximum size is 491
bytes.

111
Device Network SDK (Access Control on Card) Developer Guide

4.1.5 NET_ALARM_STREAM_EXCEPTION

Structure about Video Exception Alarm Information

Member Data Type Description


struIP NET_DVR_IPADDR IP address of video exception channel.
dwChanNo DWORD Channel No.
dwIDIndex DWORD Encoder ID.
sName Array of BYTE Encoder name, the maximum size is 32 bytes
(value of macro definition "STREAM_ID_LEN").
byExceptionCase BYTE Exception reason: 0-data writing exception, 1-
network exception.
byRes Array of BYTE Reserved, set to 0. The maximum size is 307
bytes.

4.1.6 NET_DVR_ALARMER

Alarm Device Information Structure

Member Data Type Description


byUserIDValid BYTE Whether the user ID is valid: 0-no, 1-yes
bySerialValid BYTE Whether the serial No. is valid: 0-no, 1-yes
byVersionValid BYTE Whether the version No. is valid: 0-no, 1-yes
byDeviceNameValid BYTE Whether the device name is valid: 0-no, 1-yes
byMacAddrValid BYTE Whether the MAC address is valid: 0-no, 1-yes
byLinkPortValid BYTE Whether the login port No. is valid: 0-no, 1-yes
byDeviceIPValid BYTE Whether the device IP address is valid: 0-no, 1-
yes
bySocketIPValid BYTE Whether the Socket IP address is valid: 0-no, 1-
yes
lUserID LONG Value returned by NET_DVR_Login_V40 , it is
valid when arming.
sSerialNumber Array of BYTE Serial No.

112
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


dwDeviceVersion DWORD Version information
sDeviceName Array of char Device name
byMacAddr Array of BYTE MAC address
wLinkPort WORD Device communication port No.
sDeviceIP Array of char Device IP address
sSocketIP Array of char Socket IP address when actively uploading
alarm.
byIpProtocol BYTE Network protocol: 0-IPv4, 1-IPv6
byRes2 Array of BYTE Reserved, set to 0.

4.1.7 NET_DVR_ALARMINFO_DEV

Device Alarm Information Structure

Memeber Data Type Description


dwAlarmType DWORD Alarm types: 0-alarm input alarm of encoder, 1-
second private volume damaged, 2-NVR
disconnected, 3-encoder exception, 4-system
clock exception, 5-the remaining capacity of the
recording volume is too low, 6-​motion detection
alarm of encoder or encoding channel, 7-video
tampering alarm of encoder or encoding
channel.
struTime Alarm time
byRes Array of BYTE Reserved, set to 0.
dwNumber DWORD Number of alarm triggered channels.
pNO WORD* Channel No. or disk No., which ranges from 0 to
65535.

Remarks
For pNO: if dwAlarmType is 0, 3, 6, or 7, it may be channel No.; if dwAlarmType is 5, it may be disk
No.

113
Device Network SDK (Access Control on Card) Developer Guide

4.1.8 NET_DVR_ALARMINFO_DEV_V40

Structure about CVR Alarm Information

Member Data Type Description


dwAlarmType DWORD Alarm categories: 0-alarm input alarm of
encoder, 1-second private volume damaged, 2-
NVR disconnected, 3-encoder exception, 4-
system clock exception, 5-the remaining
capacity of the recording volume is too low, 6-
motion detection alarm of encoder or encoding
channel, 7-video tampering alarm of encoder or
encoding channel, 8-video loss alarm, 9-​real-
time health monitoring alarm, 10-usage alarm,
11-CVR exception recovered, 12-recording
exception.
struTime NET_DVR_TIME Alarm time
uSubAlarmInfo NET_ALARM_CVR_SU CVR alarm information structure, and it is valid
BINFO_UNION when the alarm type is 8, 9, 10, and 12.
byRes Array of BYTE Reserved, set to 0. The maximum size is 256
bytes.
dwNumber DWORD Number of alarm triggered channels.
pNO WORD* Channel No. or disk No., which ranges from 0 to
65535.

Remarks
For pNO: if dwAlarmType is 0, 3, 6, or 7, it may be channel No.; if dwAlarmType is 5, it may be disk
No.

4.1.9 NET_DVR_ALARMINFO_V30

Structure About Uploaded Alarm Information

Member Data Type Description


dwAlarmType DWORD Alarm types: 0-alarm input alarm of encoder, 1-
second private volume damaged, 2-NVR
disconnected, 3-encoder exception, 4-system
clock exception, 5-the remaining capacity of the

114
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


recording volume is too low, 6-​motion detection
alarm of encoder or encoding channel, 7-video
tampering alarm of encoder or encoding
channel, 8-video loss alarm, 9-​real-​time health
monitoring alarm, 10-usage alarm, 11-CVR
exception recovered, 12-recording exception.
dwAlarmInputNumber DWORD Alarm input No., it is valid when alarm type is 0
or 23
byAlarmOutputNumbe Array of BYTE The triggered alarm output No. E.g.
r dwAlarmOutputNumber[0]==1 indicates that
alarm output No.1 is triggered;
dwAlarmOutputNumber[1]==1 indicates that
alarm output No.2 is triggered.
byAlarmRelateChannel Array of BYTE The triggered recording channel No.: 0-not
triggered, 1-triggered. E.g.
dwAlarmRelateChannel[0]==1 indicates that the
channel No.1 is triggered to record.
byChannel Array of BYTE Alarm channel, it is valid when alarm type is 2,
3, 6, 9, 10 or 11. E.g. dwChannel[0]==1 indicates
that the channel No. is in alarm.
byDiskNumber Array of BYTE Alarm HDD, it is valid when alarm type is 1, 4, or
5. E.g. dwDiskNumber [0]==1 indicates that the
HDD No.1 is abnormal.

Remarks
The time interval to upload the alarm of face picture library changed is 1 hour; for other alarm
type, the alarm information is uploaded in real-time, and the time interval is 1s. Currently, editing
the time interval is not supported.

4.1.10 NET_DVR_ALARMINFO_V40

Structure About Uploaded Alarm Information

Member Data Type Description


struAlarmFixedHeader NET_DVR_ALRAM_FIX Constant content in alarm information, see
ED_HEADER details in the structure .
pAlarmData DWORD* Variable content in alarm information

115
Device Network SDK (Access Control on Card) Developer Guide

Remarks
• The time interval to upload the alarm of face picture library changed is 1 hour; for other alarm
type, the alarm information is uploaded in real-time, and the time interval is 1s. Currently,
editing the time interval is not supported.
• The content of pAlarmData varies with the value of dwAlarmType in the structure
NET_DVR_ALRAM_FIXED_HEADER , see details in the table below:
Table 4-1 Relations Between pAlarmData and dwAlarmType
dwAlarmType Description pAlarmData
0, 23 Alarm input alarm, pulse alarm dwTrigerAlarmOutNum*(DWOR
D) Alarm output No.,
+dwTrigerRecordChanNum*(DW
ORD) Channel No.
2, 3, 6, 9, 10, 11, 13, 15, Video loss, motion detection, dwAlarmChanNum*(DWORD)
16, 19 video tampering alarm, video channel No.
exception, recording exception,
scene change, resolution
mismatched, VCA detection, PoE
power supply exception, audio
loss
1, 4, 5 HDD full, HDD uninitialized, dwAlarmHardDiskNum*(DWOR
writing to HDD failed D) HDD No.
7, 8, 12, 17, 18, 24, 25, 26 Standard mismatches, invalid None
login, array exception, education
sharing system alarm, two-way
audio request alarm, face library
HDD exception, face library
changed, picture changed in face
picture library

4.1.11 NET_DVR_ALRAM_FIXED_HEADER

Structure About Constant Alarm Information

Member Data Type Description


dwAlarmType DWORD Alarm information type: 0-alarm input alarm, 1-
HDD full, 2-video loss, 3-​motion detection, 4-
HDD unformatted, 5-​writing to HDD failed, 6-
video tampering alarm, 7-standard mismatched,

116
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


8-invalid login, 9-video exception, 10-recording
exception, 11-scene change, 12-RAID exception,
13-​resolution mismatched, 15-VCA detection,
16- PoE power supply exception, 17-​education
sharing system alarm, 18-two-way audio
request alarm, 23-pulse alarm, 24-face picture
library HDD exception, 25-face picture library
changed, 26-picture of face picture library
changed, 27-POC exception, 28-camera FOV
exception, 30-no SD card, 31-supply voltage
exception, 32-PTZ locked
struAlarmTime NET_DVR_TIME_EX Alarm time
uStruAlarm Union ( Table 4-2 ) Alarm information union
pRes DWORD* Reserved.
byTimeDiffFlag BYTE Whether the time difference parameter is valid:
0-invalid, 1-valid.
cTimeDifferenceH char Time difference between time and UTC time,
unit: hour, the value is between -12 and +14
("+" indicates the east time zone), it is valid
when byISO8601 is "1".
cTimeDifferenceM char Time difference between time and UTC time,
unit: minute, the value is -30, +30, or +45 ("+"
indicates the east time zone), it is valid when
byISO8601 is "1".
byRes Array of BYTE Reserved, set to 0. The maximum size is 5 bytes.
Table 4-2 Union about Alarm Information Structures (uStruAlarm)
Member Data Type Description
byUnionLen Array of BYTE Union size, which is 116 bytes.
struIOAlarm Struct ( Table 4-3 ) Structure about alarm input parameters
struAlarmChannel Struct ( Table 4-4 ) Structure about alarm channel parameters
struAlarmHardDisk Struct ( Table 4-5 ) Structure about HDD alarm parameters
struRecordingHost Struct ( Table 4-6 ) Structure about alarm parameters of education
sharing system

117
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


struVoltageInstable Struct ( Table 4-7 ) Structure about alarm parameters of supply
voltage exception
struPTLocking Struct ( Table 4-8 Structure about parameters of PTZ locked alarm
Table 4-3 Structure about Alarm Input Parameters (struIOAlarm)
Member Data Type Description
dwAlarmInputNo DWORD Alarm input No.
dwTrigerAlarmOutNum DWORD The number of triggered alarm outputs. It is
used for calculating the number of all triggered
alarm outputs by pAlarmData in
NET_DVR_ALARMINFO_V40 , each alarm
output is represented by 4 bytes.
dwTrigerRecordChanN DWORD The number of triggered recording channels. It
um is used for calculating the number of all
triggered recording channels by pAlarmData of
NET_DVR_ALARMINFO_V40 , each channel is
represented by 4 bytes.
Table 4-4 Structure about Alarm Channel Parameters (struAlarmChannel)
Member Data Type Description
dwAlarmChanNum DWORD The number of alarm channels. It is used for
calculating the number of all alarm channels by
pAlarmData of NET_DVR_ALARMINFO_V40 ,
each alarm channel is represented by 4 bytes.
dwPicLen DWORD Size of JPEG picture.
byPicURL BYTE Picture data format: 0-binary data, 1-URL.
byTarget BYTE Detection target type: 0-not supported, 1-
person, 2-vehicle.
byRes1 Array of BYTE Reserved, the maximum size is 2 bytes.
pDataBuff char* Alarm picture data or URL. The pointer size is 8
bytes.
byRes3 Array of BYTE Reserved, the maximum size is 4 bytes. This
member is only available for 64-bit Window
operating system and 64-bit Linux operating
system.

118
Device Network SDK (Access Control on Card) Developer Guide

Table 4-5 Structure about HDD Alarm Parameters (struAlarmHardDisk)


Member Data Type Description
dwAlarmHardDiskNum DWORD The number of alarm HDD. It is used for
calculating the number of all alarm HDDs by
pAlarmData of NET_DVR_ALARMINFO_V40 ,
each alarm HDD is represented by 4 bytes.
Table 4-6 Structure about Alarm Parameters of Education Sharing System (struRecordingHost)
Member Data Type Description
bySubAlarmType BYTE Alarm minor type: 1-one-touch post-record
byRes1 Array of BYTE Reserved, set to 0. The maximum size is 3 bytes.
struRecordEndTime NET_DVR_TIME_EX Recording end time.
Table 4-7 Structure about Alarm Parameters of Supply Voltage Exception (struVoltageInstable)
Member Data Type Description
fVoltageValue float Supply voltage, unit: V, corrects to one decimal
place.
byVoltageAlarmType BYTE Supply voltage exception type: 0-high supply
voltage, 1-low supply voltage
byRes1 Array of BYTE Reserved, set to 0. The maximum size is 3 bytes.
Table 4-8 Structure about Parameters of PTZ Locked Alarm (struPTLocking)
Member Data Type Description
fTemperature float Sensor temperature, which is accurate to one
decimal place.
dwCustomInfoLength DWORD Custom information length.
pCustomInfo BYTE* Custom information.
byType BYTE PTZ locked direction: 1-panning is locked, 2-
tilting is locked.
byDeicingEnabled BYTE Whether to enable heat for PTZ: 0-no, 1-yes.

Remarks
dwAlarmType==0, 23 corresponds to the structure struIOAlarm; dwAlarmType==
2/3/6/9/10/11/13/15/16/28 corresponds to the structure struAlarmChannel; dwAlarmType==
1/4/5 corresponds to the structure struAlarmHardDisk; dwAlarmType== 17 corresponds to the
structure struRecordingHost; dwAlarmType== 31 corresponds to the structure struVoltageInstable;
for other value, the union is not available.

119
Device Network SDK (Access Control on Card) Developer Guide

4.1.12 NET_DVR_ALARM_ISAPI_INFO

Structure about Alarm Information Transmitted Based on ISAPI Protocol

Member Data Type Description


pAlarmData char* Alarm information based on
ISAPI protocol (XML or JSON
message without binary data),
see
JSON_EventNotificationAlert_
Alarm/EventInfo or
XML_EventNotificationAlert_A
larmEventInfo for details.
dwAlarmDataLen DWORD Alarm data length.
byDataType BYTE Alarm data type: 0-invalid, 1-
XML, 2-JSON.
byPicturesNumber BYTE The number of pictures.
byRes Array of BYTE Reserved, set to 0. The
maximum size is 2 bytes.
pPicPackData void* Alarm picture structure, see
NET_DVR_ALARM_ISAPI_PICD
ATA for details.
byRes Array of BYTE Reserved. The maximum size is
32 bytes.

Remarks
When enabling the listening mode, you should call the network configuration API based on OPEN
ISAPI Protocol to set the IP address for the listening service.

4.1.13 NET_DVR_ALARM_ISAPI_PICDATA

Structure about Alarm Picture Data Transmitted Based on ISAPI Protocol

Member Data Type Description


dwPicLen DWORD Alarm picture data length.
byRes Array of BYTE Reserved, set to 0. The
maximum size is 4 bytes.

120
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


szFilename Array of char Picture file saving path,
including file name. The
maximum size is 256 bytes.
pPicData BYTE* Pointer that pointing to the
uploaded image data.

4.1.14 NET_DVR_ACS_ALARM_INFO_V50
Access control alarm/event information structure.

Structure Definition
struct{
DWORD dwSize;
DWORD dwMajor;
DWORD dwMinor;
NET_DVR_TIME struTime;
BYTE sNetUser[MAX_NAMELEN/*16*/];
NET_DVR_IPADDR struRemoteHostAddr;
NET_DVR_ACS_EVENT_INFO_V50 struAcsEventInfo;
DWORD dwPicDataLen;
char *pPicData;
WORD wInductiveEventType;
BYTE byPicTransType;
BYTE byRes1;
DWORD dwIOTChannelNo;
char *pAcsEventInfoExtend;
BYTE byAcsEventInfoExtend;
BYTE byTimeType;
BYTE byRes[10];
}NET_DVR_ACS_ALARM_INFO_V50, *LPNET_DVR_ACS_ALARM_INFO_V50;

Members
dwSize
Structure size.
dwMajor
Event major types, see details in Access Control Event Types .
dwMinor
Event minor types, see details in Access Control Event Types .
struTime
Time information, see NET_DVR_TIME for details.

121
Device Network SDK (Access Control on Card) Developer Guide

sNetUser
User name.
struRemoteHostAddr
IP address of remote access controller, see NET_DVR_IPADDR for details.
struAcsEventInfo
Access control event details, see NET_DVR_ACS_EVENT_INFO_V50 for details.
dwPicDataLen
Picture size, non-0: picture data exists.
pPicData
Picture data.
wInductiveEventType
Inductive event type, 0-invalid. The alarm event types will be distinguished according to the
inductive event type if wInductiveEventType is not 0; otherwise, the alarm event types will be
distinguished according to dwMajor and dwMinor.
byPicTransType
Picture data transmission mode: 0-binary, 1-URL.
byRes1
Reserved.
dwIOTChannelNo
IOT channel No.
pAcsEventInfoExtend
When this member is set to 1, it points to the structure NET_DVR_ACS_EVENT_INFO_EXTEND .
byAcsEventInfoExtend
Whether pAcsEventInfoExtend is valid: 0-no, 1-yes.
byTimeType
Time type: 0-device's local time, 1-UTC time (which is the same as struTime).
byRes
Reserved, set to 0.

4.1.15 NET_DVR_ACS_EVENT_CFG
Access control event parameter structure.

Structure Definition
struct{
DWORD dwSize;

122
Device Network SDK (Access Control on Card) Developer Guide

DWORD dwMajor;
DWORD dwMinor;
NET_DVR_TIME struTime;
BYTE sNetUser[MAX_NAMELEN/*16*/];
NET_DVR_IPADDR struRemoteHostAddr;
NET_DVR_ACS_EVENT_DETAIL struAcsEventInfo;
DWORD dwPicDataLen;
char *pPicData;
BYTE byTimeType;
BYTE byRes[61];
}NET_DVR_ACS_EVENT_CFG, *LPNET_DVR_ACS_EVENT_CFG;

Members
dwSize
Structure size.
dwMajor
Event major types, see details in Access Control Event Types .
dwMinor
Event minor types, see details in Access Control Event Types .
struTime
Time information, see NET_DVR_TIME for details.
sNetUser
User name.
struRemoteHostAddr
IP address of remote access controller, see NET_DVR_IPADDR for details.
struAcsEventInfo
Access control event details, see NET_DVR_ACS_EVENT_DETAIL for details.
dwPicDataLen
Picture size, non-0: picture data exists.
pPicData
Picture data.
byTimeType
Time type: 0-device local time (default), 1-UTC time (which is same as struTime).
byRes
Reserved, set to 0.

4.1.16 NET_DVR_ACS_EVENT_COND
Condition structure about getting access control events.

123
Device Network SDK (Access Control on Card) Developer Guide

Structure Definition
struct{
DWORD dwSize;
DWORD dwMajor;
DWORD dwMinor;
NET_DVR_TIME struStartTime;
NET_DVR_TIME struEndTime;
BYTE byCardNo[ACS_CARD_NO_LEN/*32*/];
BYTE byName[NAME_LEN/*32*/];
BYTE byPicEnable;
BYTE byTimeType;
BYTE byRes2[2];
DWORD dwBeginSerialNo;
DWORD dwEndSerialNo;
DWORD dwIOTChannelNo;
WORD wInductiveEventType;
BYTE bySearchType;
BYTE byEventAttribute;
char szMonitorID[NET_SDK_MONITOR_ID_LEN/*64*/];
BYTE byEmployeeNo[NET_SDK_EMPLOYEE_NO_LEN/*32*/];
BYTE byRes[140];
}NET_DVR_ACS_EVENT_COND,*LPNET_DVR_ACS_EVENT_COND;

Members
dwSize
Structure size.
dwMajor
Event major types, see details in Access Control Event Types , 0-all.
dwMinor
Event minor types, see details in Access Control Event Types , 0-all.
struStartTime
Start time, see NET_DVR_TIME for details.
struEndTime
End time, see NET_DVR_TIME for details.
byCardNo
Card No.
byName
Cardholder name.
byPicEnable
Whether contain pictures: 0-no, 1-yes.
byTimeType

124
Device Network SDK (Access Control on Card) Developer Guide

Time type: 0-device local time (default), 1-UTC time (which is same as struStartTime and
struEndTime).
byRes2
Reserved, set to 0.
dwBeginSerialNo
Start serial No.: 0-all.
dwEndSerialNo
End serial No.: 0-all.
dwIOTChannelNo
IOT channel No., 0-invalid.
wInductiveEventType
Inductive event type, 0-invalid. The alarm event types will be distinguished according to the
inductive event type if wInductiveEventType is not 0; otherwise, the alarm event types will be
distinguished according to dwMajor and dwMinor.
bySearchType
Search mode: 0-reserved, 1-search by event source (the channel No. is the non-video channel
No.), 2-search by monitoring resource ID.
byEventAttribute
Event attribute: 0-undefined, 1-valid authentication, 2-other.
szMonitorID
Monitoring resource ID which consists of device serial No., channel type, and No. For example,
the access point ID is device serial No.+"DOOR"+door No.
byEmployeeNo
Employee No. (person ID)
byRes
Reserved, set to 0.

4.1.17 NET_DVR_ACS_EVENT_DETAIL
Access control event details structure.

Structure Definition
struct{
DWORD dwSize;
BYTE byCardNo[ACS_CARD_NO_LEN/*32*/];
BYTE byCardType;
BYTE byWhiteListNo;
BYTE byReportChannel;

125
Device Network SDK (Access Control on Card) Developer Guide

BYTE byCardReaderKind;
DWORD dwCardReaderNo;
DWORD dwDoorNo;
DWORD dwVerifyNo;
DWORD dwAlarmInNo;
DWORD dwAlarmOutNo;
DWORD dwCaseSensorNo;
DWORD dwRs485No;
DWORD dwMultiCardGroupNo;
WORD wAccessChannel;
BYTE byDeviceNo;
BYTE byDistractControlNo;
DWORD dwEmployeeNo;
WORD wLocalControllerID;
BYTE byInternetAccess;
BYTE byType;
BYTE byMACAddr[MACADDR_LEN/*6*/];
BYTE bySwipeCardType;
BYTE byEventAttribute;
DWORD dwSerialNo;
BYTE byChannelControllerID;
BYTE byChannelControllerLampID;
BYTE byChannelControllerIRAdaptorID;
BYTE byChannelControllerIREmitterID;
DWORD dwRecordChannelNum;
char *pRecordChannelData;
BYTE byUserType;
BYTE byCurrentVerifyMode;
BYTE byAttendanceStatus;
BYTE byStatusValue;
BYTE byEmployeeNo[NET_SDK_EMPLOYEE_NO_LEN/*32*/];
BYTE byRes[64];
}NET_DVR_ACS_EVENT_DETAIL, *LPNET_DVR_ACS_EVENT_DETAIL;

Members
dwSize
Structure size.
byCardNo
Card No.: 0-invalid.
byCardType
Card types: 0-invalid, 1-normal card, 2-disabled card, 3-blacklist card, 4-patrol card, 5-duress
card, 6-super card, 7-visitor card.
byWhiteListNo
Whitelist No., which is between 1 and 8, but if the value is 0, it is invalid.
byReportChannel

126
Device Network SDK (Access Control on Card) Developer Guide

Event uploading channel types: 0-invalid, 1-upload in arming mode, 2-upload by central group 1,
3-upload by central group 2.
byCardReaderKind
Authentictaion device types: 0-invalid, 1-IC card reader, 2-ID card reader, 3-QR code scanner, 4-
fingerprint module.
dwCardReaderNo
Authentication device No.: 0-invalid.
dwDoorNo
Door or floor No.: 0-invalid. For Turnstile (swing barrier), door No.1 refers to entrance, and door
No.2 refers to exist.
dwVerifyNo
Multiple authentication No.: 0-invalid
dwAlarmInNo
Alarm input No.: 0-invalid
dwAlarmOutNo
Alarm output No.: 0-invalid
dwCaseSensorNo
Event trigger No.
dwRs485No
RS485 channel No.: 0-invalid.
dwMultiCardGroupNo
Group No.
wAccessChannel
Turnstile No.
byDeviceNo
Device No.: 0-invalid.
byDistractControlNo
Distributed controller No.: 0-invalid.
dwEmployeeNo
Employee No.: 0-invalid.
wLocalControllerID
Distributed access controller No.: 0-access controller, 0 to 64: distributed access controller.
byInternetAccess
Network interface No.: 1-upstream network interface No.1, 2-upstream network interface No.2,
3-downstream network interface No.1.

127
Device Network SDK (Access Control on Card) Developer Guide

byType
Zone types: 0-instant alarm zone, 1-24-hour alarm zone, 2-delayed zone, 3-internal zone, 4-key
zone, 5-fire alarm zone, 6-perimeter protection, 7-24-hour silent alarm zone, 8-24-hour auxiliary
zone, 9-24-hour shock alarm zone, 10-emergency door open alarm zone, 11-emergency door
closed alarm zone, off-none
byMACAddr
Physical address, 0-invalid.
bySwipeCardType
Card swiping type: 0-invalid, 1-QR code.
byEventAttribute
Event attribute: 0-undefined, 1-valid authentication, 2-other.
dwSerialNo
Event serial No.: 0-invalid, which is used to judge whether the event loss occurred.
byChannelControllerID
Lane controller No.: 0-invalid, 1-master lane controller, 2-slave lane controller.
byChannelControllerLampID
Light board No. of lane controller, which is between 1 and 255, 0-invalid
byChannelControllerIRAdaptorID
IR adaptor No. of lane controller, which is between 1 and 255, 0-invalid.
byChannelControllerIREmitterID
Active infrared intrusion detector No. of lane controller, which is between 1 and 255, 0-invalid.
dwRecordChannelNum
Number of recording channels.
pRecordChannelData
Recording channel, the size depends on dwRecordChannelNum.
byUserType
Person type: 0-invalid, 1-resident, 2-visitor, 3-person in blacklist, 4-administrator.
byCurrentVerifyMode
Authentication mode: 0-invalid, 1-sleepy, 2-card+password, 3-card, 4-card or password, 5-
fingerprint, 6-fingerprint+password, 7-fingerprint or card, 8-fingerprint+card, 9-fingerprint+card
+password, 10-face or fingerprint or card or password, 11-face+fingerprint, 12-face+password,
13-face+card, 14-face, 15-employee No.+password, 16-fingerprint or password, 17-employee
No.+fingerprint, 18-employee No.+fingerprint+password, 19-face+fingerprint+card, 20-face
+password+fingerprint, 21-employee No.+face, 22-face or face+card, 23-fingerprint or face, 24-
card or face or password, 25-card or face, 26-card or face or fingerprint, 27-card or fingerprint
or password.

128
Device Network SDK (Access Control on Card) Developer Guide

byAttendanceStatus
Attendance status: 0-undefined, 1-check in, 2-check out, 3-break out, 4-break in, 5-overtime in,
6-overtime out.
byStatusValue
Attendance status value.
byEmployeeNo
Employee No. (person ID). Both byEmployeeNo and dwEmployeeNo should be transferred by
the device. The byEmployeeNo will be parsed by the upper-level platform or client first. If the
byEmployeeNo is NULL, the dwEmployeeNo will be parsed.
byRes
Reserved, set to 0.

4.1.18 NET_DVR_ACS_EVENT_INFO_EXTEND
Structure about extended access control event information.

Structure Definition
struct{
DWORD dwFrontSerialNo;
BYTE byUserType;
BYTE byCurrentVerifyMode;
BYTE byCurrentEvent;
BYTE byPurePwdVerifyEnable;
BYTE byEmployeeNo[NET_SDK_EMPLOYEE_NO_LEN/*32*/];
BYTE byAttendanceStatus;
BYTE byStatusValue;
BYTE byRes2[2];
BYTE byUUID[NET_SDK_UUID_LEN/*36*/];
BYTE byDeviceId[NAME_LEN/*32*/];
BYTE byRes[56];
}NET_DVR_ACS_EVENT_INFO_EXTEND, *LPNET_DVR_ACS_EVENT_INFO_EXTEND;

Members
dwFrontSerialNo
Event serial No., 0-invalid. If this member is set to 0, the platform will judge whether the event
is lost by dwSerialNo; otherwise, the platform will judge whether the event is lost by both
dwFrontSerialNo and dwSerialNo. This member is used for discontinuous dwSerialNo after
alarm subscription.
byUserType
Person type: 0-invalid, 1-resident, 2-visitor, 3-person in blacklist, 4-administrator.
byCurrentVerifyMode

129
Device Network SDK (Access Control on Card) Developer Guide

Current authentication mode of the card reader: 0-invalid, 1-sleepy, 2-card+password, 3-card, 4-
card or password, 5-fingerprint, 6-fingerprint+password, 7-fingerprint or card, 8-fingerprint
+card, 9-fingerprint+card+password, 10-face or fingerprint or card or password, 11-face
+fingerprint, 12-face+password, 13-face+card, 14-face, 15-employee No.+password, 16-
fingerprint or password, 17-employee No.+fingerprint, 18-employee No.+fingerprint+password,
19-face+fingerprint+card, 20-face+password+fingerprint, 21-employee No.+face, 22-face or face
+card, 23-fingerprint or face, 24-card or face or password, 25-card or face, 26-card or face or
fingerprint, 27-card or fingerprint or password.
byCurrentEvent
Whether it is a real-time event: 0-invalid, 1-yes (real-time event), 2-no (offline event).
byPurePwdVerifyEnable
Whether the device supports opening the door only by password: 1-yes, 0-no.
For opening the door only by password: 1. The password in "XXX or password" in the
authentication mode refers to the person's password (the value of the node password in
JSON_UserInfo); 2. The device will not check the duplication of the password, and the upper
platform should ensure that the password is unique; 3. The password cannot be added, deleted,
edited, or searched for on the device locally.
byEmployeeNo
Employee No. (person ID). Both byEmployeeNo and dwEmployeeNo should be transferred by
the device. The byEmployeeNo will be parsed by the upper-level platform or client first. If the
byEmployeeNo is NULL, the dwEmployeeNo will be parsed.
byAttendanceStatus
Attendance status: 0-undefined, 1-check in, 2-check out, 3-break out, 4-break in, 5-overtime in,
6-overtime out.
byStatusValue
Attendance status value.
byRes2
Reserved.
byUUID
UUID, this member is only used when accessing EZVIZ platform.
byDeviceId
Device serial No.
byRes
Reserved.

See Also
NET_DVR_ACS_ALARM_INFO_V50

130
Device Network SDK (Access Control on Card) Developer Guide

4.1.19 NET_DVR_ACS_EVENT_INFO_V50
Access control event details structure.

Structure Definition
struct{
DWORD dwSize;
BYTE byCardNo[ACS_CARD_NO_LEN/*32*/];
BYTE byCardType;
BYTE byWhiteListNo;
BYTE byReportChannel;
BYTE byCardReaderKind;
DWORD dwCardReaderNo;
DWORD dwDoorNo;
DWORD dwVerifyNo;
DWORD dwAlarmInNo;
DWORD dwAlarmOutNo;
DWORD dwCaseSensorNo;
DWORD dwRs485No;
DWORD dwMultiCardGroupNo;
WORD wAccessChannel;
BYTE byDeviceNo;
BYTE byDistractControlNo;
DWORD dwEmployeeNo;
WORD wLocalControllerID;
BYTE byInternetAccess;
BYTE byType;
BYTE byMACAddr[MACADDR_LEN/*6*/];
BYTE bySwipeCardType;
BYTE byRes2;
DWORD dwSerialNo;
BYTE byChannelControllerID;
BYTE byChannelControllerLampID;
BYTE byChannelControllerIRAdaptorID;
BYTE byChannelControllerIREmitterID;
BYTE byRes[4];
}NET_DVR_ACS_EVENT_INFO_V50, *LPNET_DVR_ACS_EVENT_INFO_V50;

Members
dwSize
Structure size.
byCardNo
Card number, some special cards' numbers are listed as the follows: "18446744073709551613"-
supper card, "18446744073709551614"-duress card, "18446744073709551615"-invalid card.
byCardType

131
Device Network SDK (Access Control on Card) Developer Guide

Card types: 0-invalid, 1-normal card, 2-disabled card, 3-blacklist card, 4-patrol card, 5-duress
card, 6-super card, 7-visitor card.
byWhiteListNo
Whitelist No., which is between 1 and 8, but if the value is 0, it is invalid.
byReportChannel
Event uploading channel types: 0-invalid, 1-upload in arming mode, 2-upload by central group 1,
3-upload by central group 2.
byCardReaderKind
Authentictaion device types: 0-invalid, 1-IC card reader, 2-ID card reader, 3-QR code scanner, 4-
fingerprint module.
dwCardReaderNo
Authentication device No.: 0-invalid.
dwDoorNo
Door or floor No.: 0-invalid. For Turnstile (swing barrier), door No.1 refers to entrance, and door
No.2 refers to exit.
dwVerifyNo
Multiple authentication No.: 0-invalid
dwAlarmInNo
Alarm input No.: 0-invalid
dwAlarmOutNo
Alarm output No.: 0-invalid
dwCaseSensorNo
Event trigger No.
dwRs485No
RS485 channel No.: 0-invalid.
dwMultiCardGroupNo
Group No.
wAccessChannel
Turnstile No.
byDeviceNo
Device No.: 0-invalid.
byDistractControlNo
Distributed controller No.: 0-invalid.
dwEmployeeNo
Employee ID.: 0-invalid.

132
Device Network SDK (Access Control on Card) Developer Guide

wLocalControllerID
Distributed access controller No.: 0-access controller, 0 to 64: distributed access controller.
byInternetAccess
Network interface No.: 1-upstream network interface No.1, 2-upstream network interface No.2,
3-downstream network interface No.1.
byType
Zone types: 0-instant alarm zone, 1-24-hour alarm zone, 2-delayed zone, 3-internal zone, 4-key
zone, 5-fire alarm zone, 6-perimeter protection, 7-24-hour silent alarm zone, 8-24-hour auxiliary
zone, 9-24-hour shock alarm zone, 10-emergency door open alarm zone, 11-emergency door
closed alarm zone, off-none
byMACAddr
Physical address, 0-invalid.
bySwipeCardType
Card swiping type: 0-invalid, 1-QR code.
byRes2
Reserved, set to 0.
dwSerialNo
Event serial No.: 0-invalid, which is used to judge whether the event loss occurred.
byChannelControllerID
Lane controller No.: 0-invalid, 1-master lane controller, 2-slave lane controller.
byChannelControllerLampID
Light board No. of lane controller, which is between 1 and 255, 0-invalid
byChannelControllerIRAdaptorID
IR adaptor No. of lane controller, which is between 1 and 255, 0-invalid.
byChannelControllerIREmitterID
Active infrared intrusion detector No. of lane controller, which is between 1 and 255, 0-invalid.
byRes
Reserved, set to 0.

4.1.20 NET_DVR_ACS_EXTERNAL_DEV_CFG
Structure about the peripheral parameters of access controller.

Structure Definition
struct{
DWORD dwSize;
BYTE byIDCardUpMode;

133
Device Network SDK (Access Control on Card) Developer Guide

BYTE byRes1;
BYTE byCardVerifyMode;
BYTE byACSDevType;
BYTE byDoorMode;
BYTE byRes2;
BYTE wDevDetailType;
BYTE byRes[300];
}NET_DVR_ACS_EXTERNAL_DEV_CFG, *LPNET_DVR_ACS_EXTERNAL_DEV_CFG;

Members
dwSize
Structure Size.
byIDCardUpMode
Mode of uploading ID card information: 0-upload 18-digit ID card No., 1-upload all information.
byRes1
Reserved, set to 0.
byCardVerifyMode
Card authentication mode: 0-authenticate by remote center, 1-authenticate by client or
platform.
byACSDevType
Device type: 1-ID card reader, 2-IC card reader, 3-QR code reader, 4-fingerprint reader, 5-
character screen + QR code reader, 6-card collector, 7-character screen, 8-fingerprint scanner, 9-
voice module, 10-person and ID card device.
byDoorMode
Door entrance or exit mode: 0-entrance, 1-exit.
byRes2
Reserved, set to 0.
wDevDetailType
External device model:
when byACSDevType=1: 0-iDR210, 1-IDM10, 2-Hikvision ID card reader;
when byACSDevType=7: 0-DC48270RS043_01T, 1-DC80480B070_03T.
byRes
Reserved, set to 0.

4.1.21 NET_DVR_ACS_WORK_STATUS_V50
Access controller working status structure.

134
Device Network SDK (Access Control on Card) Developer Guide

Structure Definition
struct{
DWORD dwSize;
BYTE byDoorLockStatus[MAX_DOOR_NUM/*256*/];
BYTE byDoorStatus[MAX_DOOR_NUM/*256*/];
BYTE byMagneticStatus[MAX_DOOR_NUM/*256*/];
BYTE byCaseStatus[MAX_CASE_SENSOR_NUM/*8*/];
WORD wBatteryVoltage;
BYTE byBatteryLowVoltage;
BYTE byPowerSupplyStatus;
BYTE byMultiDoorInterlockStatus;
BYTE byAntiSneakStatus;
BYTE byHostAntiDismantleStatus;
BYTE byIndicatorLightStatus;
BYTE byCardReaderOnlineStatus[MAX_CARD_READER_NUM/*512*/];
BYTE byCardReaderAntiDismantleStatus[MAX_CARD_READER_NUM/*512*/];
BYTE byCardReaderVerifyMode[MAX_CARD_READER_NUM/*512*/];
BYTE bySetupAlarmStatus[MAX_ALARMHOST_ALARMIN_NUM/*512*/];
BYTE byAlarmInStatus[MAX_ALARMHOST_ALARMIN_NUM/*512*/];
BYTE byAlarmOutStatus[MAX_ALARMHOST_ALARMOUT_NUM/*512*/];
DWORD dwCardNum;
BYTE byFireAlarmStatus;
BYTE byBatteryChargeStatus;
BYTE byMasterChannelControllerStatus;
BYTE bySlaveChannelControllerStatus;
BYTE byAntiSneakServerStatus;
BYTE byRes3[3];
DWORD dwWhiteFaceNum;
DWORD dwBlackFaceNum;
BYTE byRes2[108];
}NET_DVR_ACS_WORK_STATUS_V50,*LPNET_DVR_ACS_WORK_STATUS_V50;

Members
dwSize
Structure size
byDoorLockStatus
Lock status (or elevator relay status), 0-closed, 1-open, 2-short circuit alarm, 3-open circuit
alarm, 4-exception alarm
byDoorStatus
Door status (or elevator status): 1-sleepy, 2-open (for elevator: free status), 3-closed (for
elevator: disabled status), 4-normal (for elevator: controlled status).
byMagneticStatus
Magnet status: 0-closed, 1-open, 2-short circuit alarm, 3-open circuit alarm, 4-exception alarm.
byCaseStatus

135
Device Network SDK (Access Control on Card) Developer Guide

Alarm input status: 0-no input, 1-with input.


wBatteryVoltage
Storage battery voltage, the actual value equals to the 10 multiples of wBatteryVoltage, unit:
volt.
byBatteryLowVoltage
Whether the storage battery is in low voltage status: 0-no, 1-yes.
byPowerSupplyStatus
Device power supply status: 1-AC, 2-storage battery.
byMultiDoorInterlockStatus
Multi-door interlocking status: 0-disabled, 1-enabled.
byAntiSneakStatus
Anti-passing back status: 0-disabled, 1-enabled.
byHostAntiDismantleStatus
Controller tampering status: 0-disabled, 1-enabled.
byIndicatorLightStatus
Indicator status: 0-offline, 1-online.
byCardReaderOnlineStatus
Fingerprint and card reader status: 0-offline, 1-online.
byCardReaderAntiDismantleStatus
Fingerprint and card reader tampering status: 0-offline, 1-online.
byCardReaderVerifyMode
Authentication types: 0-invalid, 1-sleepy, 2-card+password, 3-card, 4-card or password, 5-
fingerprint, 6-fingerprint+password, 7-fingerprint or card, 8-fingerprint+card, 9-fingerprint+card
+password, 10-face+fingerprint+card+password, 11-face+fingerprint, 12-face+password, 13-face
+card, 14-face, 15-employee ID+password, 16-fingerprint or password, 17-employee ID
+fingerprint, 18-employee ID+fingerprint+password, 19-face+fingerprint+card, 20-face
+fingerprint+password, 21-employee ID+face, 22-face/face+card, 23-fingerprint/face, 24-card/
face/password.
bySetupAlarmStatus
Alarm input arming status: 0-disarmed, 1-armed
byAlarmInStatus
Alarm input status: 0-no alarm, 1-in alarm.
byAlarmOutStatus
Alarm output status: 0-no alarm, 1-in alarm.
dwCardNum
Number of added cards.

136
Device Network SDK (Access Control on Card) Developer Guide

byFireAlarmStatus
Fire alarm status: 0-normal, 1-short circuit alarm, 2-open circuit alarm.
byBatteryChargeStatus
Battery charging status: 0-invalid, 1-charging, 2-unchanged.
byMasterChannelControllerStatus
Online status of master lane controller online status: 0-invalid, 1-offline, 2-online.
bySlaveChannelControllerStatus
Online status of slave lane controller online status: 0-invalid, 1-offline, 2-online.
byAntiSneakServerStatus
Anti-passing back server status: 0-invalid, 1-disabled, 2-normal, 3-disconnected.
byRes3
Reserved, set to 0.
dwWhiteFaceNum
The number of face pictures in whitelist.
wBlackFaceNum
The number of face pictures in blacklist.
byRes2
Reserved, set to 0

4.1.22 NET_DVR_AGAIN_RELATEDEV
Parameter structure of linked network device of doorphone

Structure Definition
struct{
NET_DVR_IPADDR struSIPServer;
NET_DVR_IPADDR struCenterAddr;
WORD wCenterPort;
BYTE byRes1[2];
NET_DVR_IPADDR struIndoorUnit;
NET_DVR_IPADDR struAgainAddr;
BYTE byRes[444];
}NET_DVR_AGAIN_RELATEDEV,*LPNET_DVR_AGAIN_RELATEDEV;

Members
struSIPServer
IP address of SIP server, refer to the structure NET_DVR_IPADDR for details.
struCenterAddr

137
Device Network SDK (Access Control on Card) Developer Guide

IP address of platform or system, refer to the structure NET_DVR_IPADDR for details.


byRes
Reserved, set to 0.
struIndoorUnit
IP address of indoor station, refer to the structure NET_DVR_IPADDR for details.
struAgainAddr
IP address of main doorphone, refer to the structure NET_DVR_IPADDR for details.
byRes
Reserved, set to 0.

See Also

4.1.23 NET_DVR_CAPTURE_FACE_CFG
Collected face data structure

Structure Definition
struct{
DWORD dwSize;
DWORD dwFaceTemplate1Size;
char *pFaceTemplate1Buffer;
DWORD dwFaceTemplate2Size;
char *pFaceTemplate2Buffer;
DWORD dwFacePicSize;
char *pFacePicBuffer;
BYTE byFaceQuality1;
BYTE byFaceQuality2;
BYTE byCaptureProgress;
BYTE byFacePicQuality;
DWORD dwInfraredFacePicSize;
char *pInfraredFacePicBuffer;
BYTE byInfraredFacePicQuality;
BYTE byRes1[3];
NET_DVR_FACE_FEATURE struFeature;
BYTE byRes[56];
}NET_DVR_CAPTURE_FACE_CFG,*LPNET_DVR_CAPTURE_FACE_CFG;

Members
dwSize
Structure size.
dwFaceTemplate1Size

138
Device Network SDK (Access Control on Card) Developer Guide

Size of face data template 1. When its value is 0, it indicates that there is no data template 1.
pFaceTemplate1Buffer
Buffer to save face data template 1, the buffer size should be smaller than or equal to 2.5 KB.
dwFaceTemplate2Size
Size of face data template 2. When its value is 0, it indicates that there is no data template 2.
pFaceTemplate2Buffer
Buffer to save face data template 2, the buffer size should be smaller than or equal to 2.5 KB.
dwFacePicSize
Size of face picture data. When its value is 0, it indicates that there is no face picture data.
pFacePicBuffer
Buffer to save face picture data.
byFaceQuality1
Face picture quality, it is between 1 and 100.
byFaceQuality2
Face picture quality, it is between 1 and 100.
byCaptureProgress
Collection progress: 0-no face data collected, 1-collected. The face information can be parsed
only when the progress value is 100.
byFacePicQuality
Face quality in the face picture.
dwInfraredFacePicSize
Size of infrared face picture data. When its value is 0, it indicates that there is no face picture
data.
pInfraredFacePicBuffer
Buffer to save infrared face picture data.
byInfraredFacePicQuality
Face quality in the infrared face picture.
byRes1
Reserved.
struFeature
Feature information in the matted face picture, see details in the structure
NET_DVR_FACE_FEATURE .
byRes
Reserved.

139
Device Network SDK (Access Control on Card) Developer Guide

4.1.24 NET_DVR_CAPTURE_FACE_COND
Condition structure for collecting face data.

Structure Definition
struct{
DWORD dwSize;
BYTE byRes[128];
}NET_DVR_CAPTURE_FACE_COND,*LPNET_DVR_CAPTURE_FACE_COND;

Members
dwSize
Structure size.
byRes
Reserved.

4.1.25 NET_DVR_CAPTURE_FINGERPRINT_CFG
Fingerprint collection result structure

Structure Definition
struct{
DWORD dwSize;
DWORD dwFingerPrintDataSize;
BYTE byFingerData[MAX_FINGER_PRINT_LEN/*768*/];
DWORD dwFingerPrintPicSize;
char *pFingerPrintPicBuffer;
BYTE byFingerNo;
BYTE byFingerPrintQuality;
BYTE byRes[62];
}NET_DVR_CAPTURE_FINGERPRINT_CFG, *LPNET_DVR_CAPTURE_FINGERPRINT_CFG;

Members
dwSize
Structure size.
dwFingerPrintDataSize
Fingerprint data size.
byFingerData
Fingerprint details.
dwFingerPrintPicSize

140
Device Network SDK (Access Control on Card) Developer Guide

Fingerprint picture size, 0-no fingerprint picture.


pFingerPrintPicBuffer
Buffer for saving fingerprint picture data.
byFingerNo
Finger No., which is between 1 and 10.
byFingerPrintQuality
Fingerprint quality, which is between 1 and 100.
byRes
Reserved, set to 0.

4.1.26 NET_DVR_CAPTURE_FINGERPRINT_COND
Fingerprint collection condition structure

Structure Definition
struct{
DWORD dwSize;
BYTE byFingerPrintPicType;
BYTE byFingerNo;
BYTE byRes[126];
}NET_DVR_CAPTURE_FINGERPRINT_COND, *LPNET_DVR_CAPTURE_FINGERPRINT_COND;

Members
dwSize
Structure size.
byFingerPrintPicType
Fingerprint picture type: 0-reserved.
byFingerNo
Finger No., which is between 1 and 10.
byRes
Reserved, set to 0.

4.1.27 NET_DVR_CARD_READER_CFG_V50
Fingerprint and card reader parameters structure.

141
Device Network SDK (Access Control on Card) Developer Guide

Structure Definition
struct{
DWORD dwSize;
BYTE byEnable;
BYTE byCardReaderType;
BYTE byOkLedPolarity;
BYTE byErrorLedPolarity;
BYTE byBuzzerPolarity;
BYTE bySwipeInterval;
BYTE byPressTimeout;
BYTE byEnableFailAlarm;
BYTE byMaxReadCardFailNum;
BYTE byEnableTamperCheck;
BYTE byOfflineCheckTime;
BYTE byFingerPrintCheckLevel;
BYTE byUseLocalController;
BYTE byRes1;
WORD wLocalControllerID;
WORD wLocalControllerReaderID;
WORD wCardReaderChannel;
BYTE byFingerPrintImageQuality;
BYTE byFingerPrintContrastTimeOut;
BYTE byFingerPrintRecogizeInterval;
BYTE byFingerPrintMatchFastMode;
BYTE byFingerPrintModuleSensitive;
BYTE byFingerPrintModuleLightCondition;
BYTE byFaceMatchThresholdN;
BYTE byFaceQuality;
BYTE byFaceRecogizeTimeOut;
BYTE byFaceRecogizeInterval;
WORD wCardReaderFunction;
BYTE byCardReaderDescription[CARD_READER_DESCRIPTION/*32*/];
WORD wFaceImageSensitometry;
BYTE byLivingBodyDetect;
BYTE byFaceMatchThreshold1;
WORD wBuzzerTime;
BYTE byFaceMatch1SecurityLevel;
BYTE byFaceMatchNSecurityLevel;
BYTE byEnvirMode;
BYTE byLiveDetLevelSet;
BYTE byLiveDetAntiAttackCntLimit;
BYTE byEnableLiveDetAntiAttack;
BYTE bySupportDelFPByID;
BYTE byRes1;
BYTE byFaceContrastMotionDetLevel;
BYTE byDayFaceMatchThresholdN;
BYTE byNightFaceMatchThresholdN;
BYTE byFaceRecogizeEnable;
BYTE byBlackFaceMatchThreshold;
BYTE byRes3[2];
BYTE byDefaultVerifyMode;

142
Device Network SDK (Access Control on Card) Developer Guide

DWORD dwFingerPrintCapacity;
DWORD dwFingerPrintNum;
BYTE byEnableFingerPrintNum;
BYTE byRes[231];
}NET_DVR_CARD_READER_CFG_V50,*LPNET_DVR_CARD_READER_CFG_V50;

Members
dwSize
Structure size
byEnable
Whether to enable: 0-no, 1-yes.
byCardReaderType
Fingerprint and card reader types: 1-DS-K110XM/MK/C/CK, 7-Wiegand or RS485 offline, 8-DS-
K1101M/MK, 9-DS-K1101C/CK, 10-DS-K1102M/MK/M-A, 11-DS-K1102C/CK, 12-DS-
K1103M/MK, 13-DS-K1103C/CK, 14-DS-K1104M/MK, 15-DS-K1104C/CK, 16-DS-K1102S/SK/S-A,
19-DS-K1102EM, 20- DS-K1102E, 21-DS-K1200EF, 22-DS-K1200MF, 23-DS-K1200CF, 33-DS-
K1T200EF, 34- DS-K1T300EF
byOkLedPolarity
OK LED polarity: 0-negative pole, 1-positive pole.
byErrorLedPolarity
Error LED polarity: 0-negative pole, 1-positive pole.
byBuzzerPolarity
Buzzer polarity: 0-negative pole, 1-positive pole.
bySwipeInterval
Time interval of repeated authentication, which is valid for authentication modes such as
fingerprint, card, face, etc., unit: second.
byPressTimeout
Button pressing timeout, unit: second, which is ranging from 1 to 255.
byEnableFailAlarm
Whether to enable excessive failed authentication attempts alarm: 0-no, 1-yes.
byMaxReadCardFailNum
Maximum number of failed authentication attempts, which is ranging from 1 to 10.
byEnableTamperCheck
Whether to enable tampering detection: 0-no, 1-yes.
byOfflineCheckTime
Offline detection time, unit: second, which is ranging from 0 to 255.
byFingerPrintCheckLevel

143
Device Network SDK (Access Control on Card) Developer Guide

Fingerprint recognition level: 1-1/10 error rate, 2-1/100error rate, 3-1/1000error rate,
4-1/10000error rate, 5-1/100000error rate, 6-1/1000000error rate, 7-1/10000000error rate, 8-
1/100000000error rate, 9-3/100error rate, 10-3/1000error rate, 11-3/10000error rate,
12-3/100000error rate, 13-3/1000000error rate, 14-3/10000000error rate,
15-3/100000000error rate, 16-Auto Normal, 17-Auto Secure, 18-Auto More Secure
byUseLocalController
Read-only, whether is it linked with distributed access controller or not? 0-no, 1-yes.
byRes1
Reserved, set to 0.
wLocalControllerID
Read-only, distributed access controller No. It is valid when byUseLocalController is 1, No.0
indicates that the controller is not registered, and the No. is ranging from 1 and 255.
wLocalControllerReaderID
Read-only, fingerprint and card reader No. of distributed access controller. It is valid when
byUseLocalController is 1, No.0 indicates that the controller is not registered.
wCardReaderChannel
Read-only, communication channel No. of fingerprint an card reader: 0-Wiegand or offline, 1-
RS485A, 2-RS485B. It is valid when byUseLocalController is 1.
byFingerPrintImageQuality
Fingerprint picture quality: 0-invalid, 1-low (V1), 2-medium (V1), 3-high (V1), 4-highest (V1), 5-
low (V2), 6-medium (V2), 7-high (V2), 8-highest (V2).
byFingerPrintContrastTimeOut
Fingerprint picture comparison timeout: 0-invalid, 1 to 20-1 to 20 second, 0xff-unlimited.
byFingerPrintRecogizeInterval
Fingerprint picture comparison interval: 0-invalid, 1 to 10-1 to 10 second, 0xff-no delay.
byFingerPrintMatchFastMode
Fingerprint matching mode: 0-invalid, 1 to 5-fast mode 1 to fast mode 5, 0xff-auto.
byFingerPrintModuleSensitive
Fingerprint module sensitive: 0-invalid, 1 to 8-sensitive level 1 to level 8.
byFingerPrintModuleLightCondition
Fingerprint module light condition: 0-invalid, 1-outdoor, 2-indoor.
byFaceMatchThresholdN
Face picture comparison threshold. which is ranging from 0 to 100.
byFaceQuality
Face picture quality, which is ranging from 0 to 100.
byFaceRecogizeTimeOut

144
Device Network SDK (Access Control on Card) Developer Guide

Face recognition timeout: 1 to 20-1s to 20s, 0xff-unlimited.


byFaceRecogizeInterval
Face recognition interval: 0-invalid, 1 to 10-1s to 10s, 0xff-no delay.
wCardReaderFunction
Read-only, fingerprint and card reader types, which is represented by bit: bit1-fingerprint, bit2-
face, bit3-pulse; bit value: 0-no, 1-yes
byCardReaderDescription
Fingerprint and card reader description.
wFaceImageSensitometry
Read-only, face picture exposure, which is ranging from 0 to 65535.
byLivingBodyDetect
Live face detection: 0-invalid, 1-disable, 2-disable.
byFaceMatchThreshold1
Face picture 1:1 threshold, which is ranging from 0 to 100.
wBuzzerTime
Buzzing time, which is ranging from 0 to 5999s (0-long buzzing).
byFaceMatch1SecurityLevel
Face picture 1:1 security level: 0-invalid, 1-normal, 2-high, 3-higher
byFaceMatchNSecurityLevel
Face picture 1:N security level: 0-Invalid, 1-normal, 2-high, 3-higher
byEnvirMode
Face recognition environment mode: 0-invalid, 1-indoor, 2-other
byLiveDetLevelSet
Set threshold level of live face detection: 0-invalid, 1-low, 2-medium, 3-high
byLiveDetAntiAttackCntLimit
Anti-attacking times of live face detection: 0-invalid, ranging from 1 to 255.
byEnableLiveDetAntiAttack
Whether to enable the anti-attacking of live dace detection: 0-invalid, 1-no, 1-yes.
bySupportDelFPByID
Read-only, whether the fingerprint and card reader supports deleting fingerprint by finger ID: 0-
invalid, 1-no, 2-yes.
byRes1
Reserved.
byFaceContrastMotionDetLevel
Motion detection level during face picture comparison: 0-invalid, 1-low, 2-medium, 3-high.

145
Device Network SDK (Access Control on Card) Developer Guide

byDayFaceMatchThresholdN
1:N face picture comparison threshold in day, which is between 0 and 100.
byNightFaceMatchThresholdN
1:N face picture comparison threshold at night, which is between 0 and 100.
byFaceRecogizeEnable
Whether to enable facial recognition: 0-invalid, 1-yes (one face), 2-no, 3-yes (multiple faces).
byBlackFaceMatchThreshold
Face picture comparison threshold in blacklist, which is between 0 and 100.
byRes3
Reserved.
byDefaultVerifyMode
Default authentication mode of the fingerprint and card reader (factory settings), read-only: 1-
sleepy, 2-card+password, 3-card, 4-card or password, 5-fingerprint, 6-fingerprint+password, 7-
fingerprint or card, 8-fingerprint+card, 9-fingerprint+card+password, 10-face or fingerprint or
card or password, 11-face+fingerprint, 12-face+password, 13-face+card, 14-face, 15-employee
No.+password, 16-fingerprint or password, 17-employee No.+fingerprint, 18-employee No.
+fingerprint+password, 19-face+fingerprint+card, 20-face+password+fingerprint, 21-employee
No.+face, 22-face or face+card, 23-fingerprint or face, 24-card or face or password, 25-card or
face, 26-card or face or fingerprint, 27-card or fingerprint or password.
dwFingerPrintCapacity
Read-only, fingerprint capability, it is valid only when byEnableFingerPrintNum is 1.
dwFingerPrintNum
Read-only, number of existing fingerprint pictures, it is valid only when
byEnableFingerPrintNum is 1.
byEnableFingerPrintNum
Read-only, whether to enable fingerprint capability: 0-no, 1-yes.
byRes
Reserved, set to 0.

4.1.28 NET_DVR_CARD_CFG_SEND_DATA
Data structure to be sent for getting card information.

Structure Definition
struct{
DWORD dwSize;
BYTE byCardNo[ACS_CARD_NO_LEN/*32*/];
DWORD dwCardUserId;

146
Device Network SDK (Access Control on Card) Developer Guide

BYTE byRes[12];
}NET_DVR_CARD_CFG_SEND_DATA,*LPNET_DVR_CARD_CFG_SEND_DATA;

Members
dwSize
Structure size.
byCardNo
Card number.
dwCardUserId
Card holder ID.
byRes2
Reserved, set to 0.

4.1.29 NET_DVR_CARD_CFG_V50
Card parameter structure

Structure Definition
struct{
DWORD dwSize;
DWORD dwModifyParamType;
BYTE byCardNo[ACS_CARD_NO_LEN/*32*/];
BYTE byCardValid;
BYTE byCardType;
BYTE byLeaderCard;
BYTE byUserType;
BYTE byDoorRight[MAX_DOOR_NUM/*256*/];
NET_DVR_VALID_PERIOD_CFG struValid;
BYTE byBelongGroup[MAX_GROUP_NUM/*128*/];
BYTE byCardPassword[CARD_PASSWORD_LEN/*8*/];
WORD wCardRightPlan[MAX_DOOR_NUM/*256*/][MAX_CARD_RIGHT_PLAN_NUM/*4*/];
DWORD dwMaxSwipeTime;
DWORD dwSwipeTime;
WORD wRoomNumber;
SHORT wFloorNumber;
DWORD dwEmployeeNo;
BYTE byName[NAME_LEN/*32*/];
WORD wDepartmentNo;
WORD wSchedulePlanNo;
BYTE bySchedulePlanType;
BYTE byRes2[3];
DWORD dwLockID;
BYTE byLockCode[MAX_LOCK_CODE_LEN/*8*/];
BYTE byRoomCode[MAX_DOOR_CODE_LEN/*8*/];
DWORD dwCardRight;

147
Device Network SDK (Access Control on Card) Developer Guide

DWORD dwPlanTemplate;
DWORD dwCardUserId;
BYTE byCardModelType;
BYTE bySIMNum[NAME_LEN/*32*/];
BYTE byRes3[51];
}NET_DVR_CARD_CFG_V50,*LPNET_DVR_CARD_CFG_V50;

Members
dwSize
Structure size.
dwModifyParamType
Card parameters to be edited, it is valid when applying card information. Each bit represents a
kind of parameters, bit value: 0-not edit. -1-edit.

Macro Definition Value Description


CARD_PARAM_CARD_VALID 0x00000001 Card validation parameter
CARD_PARAM_VALID 0x00000002 Expiry date
CARD_PARAM_CARD_TYPE 0x00000004 Card type
CARD_PARAM_DOOR_RIGHT 0x00000008 Card permission
CARD_PARAM_LEADER_CARD 0x00000010 First card parameter
CARD_PARAM_SWIPE_NUM 0x00000020 Maximum card swiping times
CARD_PARAM_GROUP 0x00000040 Group parameter
CARD_PARAM_PASSWORD 0x00000080 Card password
CARD_PARAM_RIGHT_PLAN 0x00000100 Card permission control schedule
CARD_PARAM_SWIPED_NUM 0x00000200 Card swiped times
CARD_PARAM_EMPLOYEE_NO 0x00000400 Employee No.
CARD_PARAM_NAME 0x00000800 Name
CARD_PARAM_DEPARTMENT_NO 0x00001000 Department No.
CARD_SCHEDULE_PLAN_NO 0x00002000 Shift schedule No.
CARD_SCHEDULE_PLAN_TYPE 0x00004000 Shift schedule Type
CARD_ROOM_NUMBER 0x00008000 Room No.
CARD_SIM_NO 0x00010000 Mobile phone number
CARD_FLOOR_NUMBER 0x00020000 Floor No.
byCardNo

148
Device Network SDK (Access Control on Card) Developer Guide

Card number, see the special card No. as follows:


0xFFFFFFFFFFFFFFFF: Illegal card No.
0xFFFFFFFFFFFFFFFE: Duress card No.
0xFFFFFFFFFFFFFFFD: Super card No.
0xFFFFFFFFFFFFFFFC to 0xFFFFFFFFFFFFFFF1: Reserved special card No. range
0xFFFFFFFFFFFFFFF0: Maximum valid card No.
byCardValid
Whether the card is valid: 0-no, 1-yes (used for deleting card).
byCardType
Card type, 1-normal card (default); 2-disabled card; 3-blacklist card; 4-patrol card; 5-duress card;
6-super card; 7- visitor card; 8-dismissing card; 9-employee card; 10-emergency card; 11-
emergency management card (for assigning permission for temporary card, it cannot open
door).
byLeaderCard
Whether it is the first card: 1-yes; 0-no.
byUserType
User type: 0-normal user, 1-admin user
byDoorRight
Door (elevator, lock) control permission, which is represented by bit, bit1-door (elevator, lock) 1,
bit2-door (elevator, lock) 2, ..., value of bit: 1-with permission, 0-no permission.
struValid
Expiry date, refer to the structure NET_DVR_VALID_PERIOD_CFG for details.
byBelongGroup
Whether it belongs to a group, which is represented by bit, bit1-group 1, bit2-group 2, ..., bit
value: 1-yes; 0-no.
byCardPassword
Card password.
wCardRightPlan
Access permission control schedule No.
dwMaxSwipeTime
Maximum card swiping times: 0-no limit.
dwSwipeTime
Card swiped times.
wRoomNumber
Room No.
wFloorNumber

149
Device Network SDK (Access Control on Card) Developer Guide

Floor No.
dwEmployeeNo
Employee ID, which is between 1 and 99999999, it cannot be 0 and cannot be duplicated.
byName
Name
wDepartmentNo
Department No.
wSchedulePlanNo
Shift schedule No.
bySchedulePlanType
Shift schedule type: 0-reserved, 1-person, 2-department
byRes2
Reserved, set to 0.
dwLockID
Lock ID
byLockCode
Lock No.
byRoomCode
Room No., which is represented by bit, bit value: 0-no permission, 1-with permission
Bit 0: weak current alarm
Bit 1: audio prompt for open door
Bit 2: restricted guest card
Bit 3: channel
Bit 4: open double locked door
Bit 5: patrol
dwCardRight
Access permission.
dwPlanTemplate
Whether to enable the schedule: 0-no, 1-yes
dwCardUserId
Card holder ID
byCardModelType
0-reserved, 1-MIFARE S50, 2-MIFARE S70, 3- FM1208 CPU card, 4-FM1216 CPU card, 5-reserved,
6-identity card, 7-NFC
byRes2

150
Device Network SDK (Access Control on Card) Developer Guide

Reserved, set to 0.

Remarks
For fingerprint access control terminal (DS-K1T803F) and fingerprint time attendance terminal (DS-
K1A801F), the following members dwEmployeeNo, byName, wDepartmentNo, wSchedulePlanNo,
and bySchedulePlanType in the structure is required. For other access control device, they are
optional.

4.1.30 NET_DVR_CARD_CFG_COND
Condition structure of card configuration.

Structure Definition
struct{
DWORD dwSize;
DWORD dwCardNum;
BYTE byCheckCardNo;
BYTE byRes1[3];
WORD wLocalControllerID;
BYTE byRes2[2];
DWORD dwLockID;
BYTE byRes3[20];
}NET_DVR_CARD_CFG_COND,*LPNET_DVR_CARD_CFG_COND;

Members
dwSize
Structure size.
dwCardNum
Number of cards to get or apply, 0xffffffff-all cards.
byCheckCardNo
Whether to enable card number verification: 0-no; 1-yes.
byRes1
Reserved, set to 0.
wLocalControllerID
Distributed access controller No., 0-access controller.
byRes2
Reserved, set to 0.
dwLockID
Lock ID.
byRes3

151
Device Network SDK (Access Control on Card) Developer Guide

Reserved, set to 0.

Remarks
When applying card information, if the member byCheckCardNo is set to "0", the device will not
verify the card number applied by application layer, and the card number will be directly written to
the local storage, which can improve the applying speed. But the application layer should make
sure the card number is unique.

4.1.31 NET_DVR_CARD_READER_PLAN
Parameter structure about configuration of authentication mode control schedule.

Structure Definition
struct{
DWORD dwSize;
DWORD dwTemplateNo;
BYTE byRes[64];
}NET_DVR_CARD_READER_PLAN,*LPNET_DVR_CARD_READER_PLAN;

Members
dwSize
Structure size.
dwTemplateNo
Schedule template No.: 0-cancel linking template with schedule, and restore to the default
settings (available for swiping card to open the door); non-0-link template with schedule by No.
byRes
Reserved, set to 0.

4.1.32 NET_DVR_DATE
Date information structure.

Structure Definition
struct{
WORD wYear;
BYTE byMonth;
BYTE byDay;
}NET_DVR_DATE,*LPNET_DVR_DATE;

152
Device Network SDK (Access Control on Card) Developer Guide

Members
wYear
Year
byMonth
Month
byDay
Day

4.1.33 NET_DVR_DEVICEINFO_V30
Device parameter structure (V30).

Device Parameter Structure (V30)

Member Data Type Description


sSerialNumber BYTE Device serial No.
byAlarmInPortNum BYTE Number of analog alarm inputs
byAlarmOutPortNum BYTE Number of analog alarm outputs
byDiskNum BYTE Number of HDDs
byDVRType BYTE Device type
byChanNum BYTE Number of analog channels
byStartChan BYTE Start No. of analog channel, which starts from
1.
byAudioChanNum BYTE Number of two-way audio channels
byIPChanNum BYTE Number of digital channels, low 8-bit.
byZeroChanNum BYTE Number of channel-zero
byMainProto BYTE Transmission protocol type of main stream: 0-
Hikvision Private Protocol (default), 1-RTSP, 2-
Hikvision Private Protocol+RTSP
bySubProto BYTE Transmission protocol type of sub-stream: 0-
Hikvision Private Protocol (default), 1-RTSP, 2-
Hikvision Private Protocol+RTSP
bySupport BYTE Capabilities, if the result of bitwise operation is
0, it refers that the capability is not supported,

153
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


if the result is 1, it indicates that the capability
is supported.
• bySupport&0x1: whether supports VCA
search.
• bySupport&0x2: whether supports backup.
• bySupport&0x4: whether supports getting
encoding parameters.
• bySupport&0x8: whether supports dual-NIC.
• bySupport&0x10: whether supports remote
SADP.
• bySupport&0x20: whether supports RAID
card.
• bySupport&0x40: whether supports
searching in IPSAN directory.
• bySupport&0x80: whether supports RTP over
RTSP.
bySupport1 BYTE Extended capabilities, if the result of bitwise
operation is 0, it refers that the capability is not
supported, if the result is 1, it indicates that the
capability is supported.
• bySupport1&0x1: whether supports SNMP
with version 30.
• bySupport1&0x2: whether supports playback
and downloading video files.
• bySupport1&0x4: whether supports setting
the arming priority.
• bySupport1&0x8: whether supports
extending the arming time period.
• bySupport1&0x10: whether supports
multiple HDDs (more than 33).
• bySupport1&0x20: whether supports RTP
over RTSP.
• bySupport1&0x80: whether supports license
plate recognition alarm.
bySupport2 BYTE Extended capabilities, if the result of bitwise
operation is 0, it refers that the capability is not
supported, if the result is 1, it indicates that the
capability is supported.

154
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


• bySupport2&0x1: whether supports getting
stream via URL.
• bySupport2&0x2: whether supports FTP with
version 40.
• bySupport2&0x4: whether supports ANR.
• bySupport2&0x20: whether supports getting
device status.
• bySupport2&0x40: whether supports
encrypting stream.
wDevType WORD Device model
bySupport3 BYTE Extended capabilities, if the result of bitwise
operation is 0, it refers that the capability is not
supported, while, if the result is 1, it indicates
that the capability is supported.
• bySupport3&0x1: whether supports multi-
stream.
• bySupport3&0x4: whether supports
configuring by group (e.g., image, alarm
input, alarm output, user, device status, JPEG
picture capture, continuous and scheduled
capture, .HDD group management, and so
on).
• bySupport3&0x20: whether supports getting
stream via DDNS.
byMultiStreamProto BYTE Whether supports multi-​stream, if the result of
bitwise operation is 0, it refers to not support, if
the result is 1, it refers to support.
• byMultiStreamProto&0x1: whether supports
third-stream.
• byMultiStreamProto&0x2: whether supports
fourth-stream.
• byMultiStreamProto&0x40: whether
supports main stream.
• byMultiStreamProto&0x80: whether
supports sub-stream.
byStartDChan BYTE Start No. of digital channel, 0-no digital channel
(e.g., DVR, network camera).

155
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


byStartDTalkChan BYTE Start No. of two-way audio channel, 0-no two-
way audio channel.
byHighDChanNum BYTE Number of digital channels, high 8-bit.
bySupport4 BYTE Extended capabilities, if the result of bitwise
operation is 0, it refers that the capability is not
supported, if the result is 1, it indicates that the
capability is supported.
• bySupport4&0x01: whether all stream types
support RTSP and Hikvision Private Protocol.
• bySupport4&0x10: whether supports loading
network disk by domain name.
byLanguageType BYTE Supported language types, if the result of
bitwise operation is 0, it refers to not support, if
the result is 1, it refers to support.
• byLanguageType ==0: this field is not
supported by device.
• byLanguageType&0x1: whether supports
Chinese.
• byLanguageType&0x2: whether supports
English.
byVoiceInChanNum BYTE Number of audio input channels
byStartVoiceInChanNo BYTE Start No. of audio input channel, 0-invalid.
byRes3 Array of BYTE Reserved, set to 0.
byMirrorChanNum BYTE Number of mirror channels
wStartMirrorChanNo WORD Start No. of mirror channel
byRes2 Array of BYTE Reserved, set to 0.

Remarks
• The maximum number of digital channels equal to byIPChanNum+byHighDChanNum*256.
• For login via ISAPI Protocol, the following parameters are not supported: byMainProto,
bySubProto, bySupport, bySupport1, bySupport2, bySupport3, bySupport4, bySupport5,
bySupport6, bySupport7, byMultiStreamProto, byStartDTalkChan, byVoiceInChanNum,
byStartVoiceInChanNo, byMirrorChanNum, and wStartMirrorChanNo.

See Also
NET_DVR_DEVICEINFO_V40

156
Device Network SDK (Access Control on Card) Developer Guide

4.1.34 NET_DVR_DEVICEINFO_V40

Device Parameter Structure (V40)

Member Data Type Description


struDeviceV30 NET_DVR_DEVICEINFO Device parameters
_V30
bySupportLock BYTE Whether supports locking function: 1-support.
byRetryLoginTime BYTE Remaining login attempts, it is valid when the
user name or password is incorrect and the
bySupportLock is 1.
byPasswordLevel BYTE Password strength: 0-invalid, 1-default
password, 2-valid password, 3-risky password.
For default password or risky password, the
users are reminded to change password.
byProxyType BYTE Proxy type: 0-no proxy, 1-standard proxy, 2-
EHome proxy.
dwSurplusLockTime DWORD Remaining locking time, unit: second. It is valid
only when bySupportLock is 1. During the
locing time, if the user try to log in to again, the
remaining locking time will resume to 30
minutes.
byCharEncodeType BYTE Character encodings. 0-no decoding
information, 1-GB2312 (Simplified Chinese), 2-
GBK, 3-BIG5 (Traditional Chinese), 4-Shift_​JIS
(Japanese), 5-EUC-KR (Korean), 6-UTF-8, 7-
ISO8859-1, 8-ISO8859-2, 9-ISO8859-3, …, 21-
ISO8859-15 (Western European)
bySupportDev5 BYTE Whether to support getting the parameters of
devices that support HCNetSDK version 5.0 or
above, the size of device name and type name
are extended to 64 bytes.
bySupport BYTE Whether it supports uploading changes, it
depends on the result of bitwise AND (&)
operation: 0-not support, 1-support. The result
of bySupport&0x1 indicates that this member is
reserved; the result of bySupport&0x2 indicates
that whether it supports uploading changes: 0-

157
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


not support, 1-support. This member is the
capability set extension.
byLoginMode BYTE Login mode: 0-login via Hikvision Private
Protocol, 1-login via ISAPI Protocol. For
Hikvision Private Protocol, the default login port
number is 8000, and for ISAPI Protocol, the
default login port number is 80 or 443.
dwOEMCode DWORD OEM code.
iResidualValidity int Remaining valid days of the user's password,
unit: day. If the negative number is returned, it
indicates that the password being used has
expired. For example, if -3 is returned, it
indicates that the password being used has
expired for three days.
byResidualValidity BYTE Whether the member iResidualValidity is valid:
0-invalid, 1-valid.
bySingleStartDTalkCha BYTE Start channel No. for connecting independent
n audio tracks to the device. The value 0 is
reserved and invalid. The channel No. of audio
tracks cannot start from 0.
bySingleDTalkChanNu BYTE Total number of channels of the device
ms connected with independent tracks, 0-not
support.
byPassWordResetLevel BYTE Whether to prompt the non-admin user to
change the password: 0 (invalid), 1 (If the
administrator creates a non-admin user account
with an initial password, the non-admin user
will be prompted "Please change the initial
password" each time he/she logs in to the
device until he/she changes the initial
password), 2(If the non-admin user's password
has been changed by the administrator, the
non-admin user will be prompted "Please set a
new password" each time he/she logs in to the
device until he/she changes the password).
bySupportStreamEncry BYTE Whether it supports stream encryption, it
pt depends on the result of bitwise AND (&)

158
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


operation: 0-no, 1-yes. The result of
bySupportStreamEncrypt&0x1 indicates
whether to support RTP/TLS streaming, the
result of bySupportStreamEncrypt&0x2
indicates whether to support SRTP/UDP
streaming, and the result of
bySupportStreamEncrypt&0x4 indicates
whether to support SRTP/MULTICAST
streaming.
byRes2 Array of BYTE Reserved, set to 0.

Remarks
• Four character types are allowed in the password, including digits, lowercase letters, uppercase
letters and symbols. The maximum password length is 16 bits, and there are four password
strength levels, see details below:
• Level 0 (Risky Password): The password length is less than 8 bits, or only contains one kind of
the character types. Or the password is the same with the user name, or is the mirror writing
of the user name.
• Level 1 (Weak Password): The password length is more than or equal to 8 bits, and contains
two kinds of the character types. Meanwhile, the combination should be (digits + lowercase
letters) or (digits + uppercase letters).
• Level 2 (Medium Password): The password length is more than or equal to 8 bits, and contains
two kinds of the character types. Meanwhile, the combination cannot be (digits + lowercase
letters) and (digits + uppercase letters).
• Level 3 (Strong Password): The password length is more than or equal to 8 bits, and at least
contains three kinds of the character types.
• For login via ISAPI Protocol, the following parameters are not supported: bySupportLock,
byRetryLoginTime, byPasswordLevel, byProxyType, dwSurplusLockTime, byCharEncodeType,
and bySupportDev5.

4.1.35 NET_DVR_DOOR_FILE_UPLOAD_PARAM
Structure about the parameters of the access control file to be uploaded.

Structure Definition
struct{
DWORD dwSize;
DWORD dwFileSize;
BYTE byFileName[MAX_FILE_NAME_LEN/*100*/];

159
Device Network SDK (Access Control on Card) Developer Guide

BYTE byRes1[256];
}NET_DVR_DOOR_FILE_UPLOAD_PARAM, *LPNET_DVR_DOOR_FILE_UPLOAD_PARAM;

Members
dwSize
Structure size.
dwFileSize
File size.
byFileName
File name.
byRes1
Reserved.

4.1.36 NET_DVR_DOOR_STATUS_PLAN
Parameter structure about door control schedule configuration.

Structure Definition
struct{
DWORD dwSize;
DWORD dwTemplateNo;
BYTE byRes[64];
}NET_DVR_DOOR_STATUS_PLAN,*LPNET_DVR_DOOR_STATUS_PLAN;

Members
dwSize
Structure size.
dwTemplateNo
Schedule template No.: 0-cancel linking the configured template with schedule, and restore to
the default settings; non-0-link the configured template with schedule.
byRes
Reserved, set to 0.

4.1.37 NET_DVR_ETHERNET_V30

160
Device Network SDK (Access Control on Card) Developer Guide

Ethernet Configuration Structure

Member Data Type Description


struDVRIP NET_DVR_IPADDR Device IP address
struDVRIPMask NET_DVR_IPADDR Mask of device IP address
dwNetInterface DWORD Network interface type: 1-10MBase-T;
2-10MBase-T (full duplex); 3-100MBase-TX;
4-100M (full duplex); 5-10M/100M/1000M
(self-adaptive); 6-1000M (full duplex)
wDVRPort WORD Device port No.
wMTU WORD MTU settings, the default is 1500.
byMACAddr Array of BYTE Device physical address.
byEthernetPortNo BYTE Network interface No.: 0-invalid, 1-interface 0,
2-interface 1, and so on. This parameter is read-
only.
byRes Array of BYTE Reserved.

4.1.38 NET_DVR_EVENT_CARD_LINKAGE_CFG_V51
Parameter structure about event and card linkage configuration.

Structure Definition
struct{
DWORD dwSize;
BYTE byProMode;
BYTE byRes1[3];
DWORD dwEventSourceID;
NET_DVR_EVENT_CARD_LINKAGE_UNION uLinkageInfo;
BYTE byAlarmout[MAX_ALARMHOST_ALARMOUT_NUM/*512*/];
BYTE byRes2[32];
BYTE byOpenDoor[MAX_DOOR_NUM/*256*/];
BYTE byCloseDoor[MAX_DOOR_NUM/*256*/];
BYTE byNormalOpen[MAX_DOOR_NUM/*256*/];
BYTE byNormalClose[MAX_DOOR_NUM/*256*/];
BYTE byMainDevBuzzer;
BYTE byCapturePic;
BYTE byRecordVideo;
BYTE byMainDevStopBuzzer;
WORD wAudioDisplayID;
BYTE byAudioDisplayMode;
BYTE byRes3[25];

161
Device Network SDK (Access Control on Card) Developer Guide

BYTE byReaderBuzzer[MAX_CARD_READER_NUM/*512*/];
BYTE byAlarmOutClose[MAX_ALARMHOST_ALARMOUT_NUM/*512*/];
BYTE byAlarmInSetup[MAX_ALARMHOST_ALARMOUT_NUM/*512*/];
BYTE byAlarmInClose[MAX_ALARMHOST_ALARMOUT_NUM/*512*/];
BYTE byReaderStopBuzzer[MAX_CARD_READER_NUM/*64*/];
BYTE byRes[512];
}NET_DVR_EVENT_CARD_LINKAGE_CFG_V51, *LPNET_DVR_EVENT_CARD_LINKAGE_CFG_V51;

Members
dwSize
Structure size.
byProMode
Linkage type: 0-event linkage, 1-card No. linkage, 2-MAC address linkage, 3- employee No.
(person ID) linkage.
byRes1
Reserved, set to 0.
dwEventSourceID
Event triggering source ID: 0xffffffff-all. For device events, this parameter is invalid; for door
events, it refers to door No.; for card reader events, it refers to card reader ID; for alarm input
events, it refers to zone or event alarm input ID.
uLinkageInfo
Linkage action parameter, see NET_DVR_EVETN_CARD_LINKAGE_UNION for details.
byAlarmout
Linked alarm output No., which is represented by byte. 0-not link, 1-link.
byRes2
Reserved, set to 0.
byOpenDoor
Whether to enable door opening linkage, which is represented by byte. 0-disable, 1-enable.
byCloseDoor
Whether to enable door closing linkage, which is represented by byte. 0-disable, 1-enable.
byNormalOpen
Whether to enable door remaining open linkage, which is represented by byte. 0-disable, 1-
enable.
byNormalClose
Whether to enable door remaining closed linkage, which is represented by byte. 0-disable, 1-
enable.
byMainDevBuzzer
Whether to enable access controller buzzing, 0-disable, 1-enable.

162
Device Network SDK (Access Control on Card) Developer Guide

byCapturePic
Whether to enable capture linkage, 0-disable, 1-enable.
byRecordVideo
Whether to enable recording linkage, 0-disable, 1-enable.
byMainDevStopBuzzer
Whether to enable access controller stopping buzzing linkage, 0-disable, 1-enable.
wAudioDisplayID
Linked audio prompt ID, currently it is between 1 and 32, and 0 indicates no linkage.
byAudioDisplayMode
Linked audio prompt mode: 0-disable, 1-play once, 2-loop playing.
byRes3
Reserved.
byReaderBuzzer
Whether to enable buzzer linkage, which is represented by byte. 0-disable, 1-enable.
byAlarmOutClose
Whether to enable alarm output disabling linkage, which is represented by byte. 0-disable, 1-
enable.
byAlarmInSetup
Whether to enable zone arming linkage, which is represented by byte. 0-disable, 1-enable.
byAlarmInClose
Whether to enable zone disarming linkage, which is represented by byte. 0-disable, 1-enable.
byReaderStopBuzzer
Whether to enable card reader stopping buzzing linkage, which is represented by byte. 0-
disable, 1-enable.
byRes
Reserved, set to 0.

4.1.39 NET_DVR_EVENT_CARD_LINKAGE_COND
Condition structure about the event card linkage configuration.

Structure Definition
struct{
DWORD dwSize;
DWORD dwEventID;
WORD wLocalControllerID;

163
Device Network SDK (Access Control on Card) Developer Guide

BYTE byRes[106];
}NET_DVR_EVENT_CARD_LINKAGE_COND,*LPNET_DVR_EVENT_CARD_LINKAGE_COND;

Members
dwSize
Structure size.
dwEventID
Event ID.
wLocalControllerID
Distributed access controller No. which is between 1 and 64, while, 0-access controller.
byRes
Reserved, set to 0.

4.1.40 NET_DVR_EVETN_CARD_LINKAGE_UNION
Parameter union about event and card linkage configuration.

Structure Definition
union{
BYTE byCardNo[ACS_CARD_NO_LEN/*32*/];
NET_DVR_EVENT_LINKAGE_INFO struEventLinkage;
BYTE byMACAddr[MACADDR_LEN/*6*/];
BYTE byEmployeeNo[NET_SDK_EMPLOYEE_NO_LEN/*32*/];
}NET_DVR_EVETN_CARD_LINKAGE_UNION,*LPNET_DVR_EVETN_CARD_LINKAGE_UNION;

Members
byCardNo
Card No.
struEventLinkage
Event linkage parameters, see details in the structure NET_DVR_EVENT_LINKAGE_INFO .
byMACAddr
Physical MAC address.
byEmployeeNo
Employee No. (person ID)

See Also
NET_DVR_EVENT_CARD_LINKAGE_CFG_V51

164
Device Network SDK (Access Control on Card) Developer Guide

4.1.41 NET_DVR_EVENT_LINKAGE_INFO
Event linkage parameter structure.

Structure Definition
struct{
WORD wMainEventType;
WORD wSubEventType;
BYTE byRes[28];
}NET_DVR_EVENT_LINKAGE_INFO,*LPNET_DVR_EVENT_LINKAGE_INFO;

Members
wMainEventType
Event major types, see Access Control Event Types for details.
wSubEventType
Event minor types, see Access Control Event Types for details.
byRes
Reserved, set to 0.

See Also
NET_DVR_EVETN_CARD_LINKAGE_UNION

4.1.42 NET_DVR_FACE_FEATURE
Structure about facial feature parameters.

Structure Definition
struct{
NET_VCA_RECT struFace;
NET_VCA_POINT struLeftEye;
NET_VCA_POINT struRightEye;
NET_VCA_POINT struLeftMouth;
NET_VCA_POINT struRightMouth;
NET_VCA_POINT struNoseTip;
}NET_DVR_FACE_FEATURE, *LPNET_DVR_FACE_FEATURE;

Members
struFace
Face sub-picture area, see details in the structure NET_VCA_RECT .
struLeftEye

165
Device Network SDK (Access Control on Card) Developer Guide

Coordinates of the left eye, see details in the structure NET_VCA_POINT .


struRightEye
Coordinates of the right eye, see details in the structure NET_VCA_POINT .
struLeftMouth
Coordinates of the left mouth corner, see details in the structure NET_VCA_POINT .
struRightMouth
Coordinates of the right mouth corner, see details in the structure NET_VCA_POINT .
struNoseTip
Coordinates of the nose, see details in the structure NET_VCA_POINT .

4.1.43 NET_DVR_FACE_PARAM_CFG
Face parameter structure

Structure Definition
struct{
DWORD dwSize;
BYTE byCardNo[ACS_CARD_NO_LEN/*32*/];
DWORD dwFaceLen;
char *pFaceBuffer;
BYTE byEnableCardReader[MAX_CARD_READER_NUM/*512*/];
BYTE byFaceID;
BYTE byFaceDataType;
BYTE byRes[126];
}NET_DVR_FACE_PARAM_CFG, *LPNET_DVR_FACE_PARAM_CFG;

Members
dwSize
Structure size.
byCardNo
Card number linked with the face.
dwFaceLen
Face data size.
pFaceBuffer
Pointer that points to the buffer for saving face data, it is valid when dwFaceLen is not 0. The
data is encrypted.
byEnableCardReader
Face collector to be applied to, which is represented by array, each bit of array refers to one
collector. Array value: 0-not apply, 1-apply.

166
Device Network SDK (Access Control on Card) Developer Guide

byFaceID
Face picture ID, which is between 1 and 2.
byFaceDataType
Face data type: 0-template (default), 1-picture
byRes
Reserved, set to 0.

4.1.44 NET_DVR_FACE_PARAM_COND
Condition structure of face information configuration.

Structure Definition
struct{
DWORD dwSize;
BYTE byCardNo[ACS_CARD_NO_LEN/*32*/];
BYTE byEnableCardReader[MAX_CARD_READER_NUM/*512*/];
DWORD dwFaceNum;
BYTE byFaceID;
BYTE byFaceDataType;
BYTE byRes[126];
}NET_DVR_FACE_PARAM_COND, *LPNET_DVR_FACE_PARAM_COND;

Members
dwSize
Structure size.
byCardNo
Card number that linked with face information.
byEnableCardReader
Face collector status, which is represented by array, each bit of array refers to one collector.
Array value: 0-invalid, 1-valid.
dwFaceNum
Number of face pictures to be get and apply. 0xffffffff-all face pictures.
byFaceID
Face picture ID, which is between 1 and 2, 0xff-all face pictures linked with the card.
byFaceDataType
Face data type: 0-template (default), 1-picture
byRes
Reserved, set to 0.

167
Device Network SDK (Access Control on Card) Developer Guide

4.1.45 NET_DVR_FINGER_PRINT_CFG_V50
Fingerprint configuration structure.

Structure Definition
struct{
DWORD dwSize;
BYTE byCardNo[ACS_CARD_NO_LEN/*32*/];
DWORD dwFingerPrintLen;
BYTE byEnableCardReader[MAX_CARD_READER_NUM/*512*/];
BYTE byFingerPrintID;
BYTE byFingerType;
BYTE byRes1[30];
BYTE byFingerData[MAX_FINGER_PRINT_LEN/*768*/];
BYTE byEmployeeNo[NET_SDK_EMPLOYEE_NO_LEN/*32*/];
BYTE byLeaderFP[MAX_DOOR_NUM_256/*256*/]
BYTE byRes[128];
}NET_DVR_FINGER_PRINT_CFG, *LPNET_DVR_FINGER_PRINT_CFG;

Members
dwSize
Structure size.
byCardNo
Card No., which is linked with the fingerprint.
dwFingerPrintLen
Size of fingerprint data. The fingerprint module and fingerprint recorder will be used in pair.
byEnableCardReader
Whether to apply fingerprint data to the fingerprint module, which is represented by array: 0-no
1-yes
byFingerPrintID
Finger No., which is between 1 and 10
byFingerType
Fingerprint type: 0-normal fingerprint, 1-duress fingerprint, 2-patrol fingerprint, 3-super
fingerprint, 4-dismiss fingerprint
byRes1
Reserved, set to 0
byFingerData
Fingerprint data
byEmployeeNo
Employee No. (person ID)

168
Device Network SDK (Access Control on Card) Developer Guide

byLeaderFP
Whether to support first time authentication function (door, represented by byte): 0-no, 1-yes.
byRes
Reserved, set to 0

4.1.46 NET_DVR_FINGER_PRINT_INFO_COND_V50
Fingerprint parameter configuration structure.

Structure Definition
struct{
DWORD dwSize;
BYTE byCardNo[ACS_CARD_NO_LEN/*32*/];
BYTE byEnableCardReader[MAX_CARD_READER_NUM/*512*/];
DWORD dwFingerPrintNum;
BYTE byFingerPrintID;
BYTE byCallbackMode;
BYTE byRes2[2];
BYTE byEmployeeNo[NET_SDK_EMPLOYEE_NO_LEN/*32*/];
BYTE byRes1[128];
}NET_DVR_FINGER_PRINT_INFO_COND_V50, *LPNET_DVR_FINGER_PRINT_INFO_COND_V50;

Members
dwSize
Structure size.
byCardNo
Card No. linked with the fingerprint. This parameter is invalid when setting fingerprint
parameters.
byEnableCardReader
Fingerprint module status: 0-invalid; 1-valid.
dwFingerPrintNum
Number of obtained or configured fingerprints, 0xffffffff-get all fingerprints' information.
byFingerPrintID
Finger No., which is between 1 and 10, 0xff indicates-all fingerprints of the card.
byCallbackMode
Device callback mode: 0-returned when applied all; 1-returned when applied a part.
byRes2
Reserved, set to 0.
byEmployeeNo

169
Device Network SDK (Access Control on Card) Developer Guide

Employee No. (person ID).


byRes1
Reserved, set to 0.

Remarks
Two fingerprint applying modes are available: blocking mode and non-blocking mode.
• Blocking Mode: Set byCallbackMode to "0", and the applying status will be returned for once
only after applying each fingerprint.
• Non-blocking Mode: Set byCallbackMode to "1", and the applying status will be returned for
multiple times after applying each fingerprint. And the next fingerprint can be applied until the
previous fingerprint information is applied.

4.1.47 NET_DVR_GATE_TIME_CFG
Structure about the barrier time parameters of the turnstile.

Structure Definition
struct{
DWORD dwSize;
DWORD dwHoldOnALarmTime;
DWORD dwHoldOnGateOpenTime;
DWORD dwPostponeIntrusionAlarmTime;
DWORD dwNoLaneAccessTimeLimitTime;
DWORD dwSafetyZoneStayTime;
DWORD byIRTriggerTimeoutTime;
BYTE byRes[299];
}NET_DVR_GATE_TIME_CFG, *LPNET_DVR_GATE_TIME_CFG;

Members
dwSize
Structure Size.
dwHoldOnALarmTime
Extend alarm device buzzing time, unit: ms.
dwHoldOnGateOpenTime
Remaining open time before the barrier receives closing order, unit: ms
dwPostponeIntrusionAlarmTime
Delay time of triggering intrusion alarm, unit: ms.
dwNoLaneAccessTimeLimitTime
Timeout alarm time for no person passing when the lane receives valid passing signal, unit: s.
dwSafetyZoneStayTime

170
Device Network SDK (Access Control on Card) Developer Guide

Timeout alarm time for persons staying in the lane after arriving at the safe area when the lane
receives valid passing signal, unit: s.
byIRTriggerTimeoutTime
Maximum IR obstructed duration, it is between 0 and 255, unit: s.
byRes
Reserved, set to 0.

4.1.48 NET_DVR_GROUP_CFG
Group configuration structure.

Structure Definition
struct{
DWORD dwSize;
BYTE byEnable;
BYTE byRes1[3];

NET_DVR_VALID_PERIOD_CFG
struValidPeriodCfg;
BYTE byGroupName[GROUP_NAME_LEN/*32*/];
BYTE byRes2[32];
}NET_DVR_GROUP_CFG,*LPNET_DVR_GROUP_CFG;

Members
dwSize
Structure size
byEnable
Whether to enable the group: 0-no, 1-yes.
byRes1
Reserved, set to 0.
struValidPeriodCfg
Group expiry date.
byGroupName
Group name
byRes2
Reserved, set to 0.

171
Device Network SDK (Access Control on Card) Developer Guide

4.1.49 NET_DVR_GROUP_COMBINATION_INFO_V50
Group parameters structure.

Structure Definition
struct{
BYTE byEnable;
BYTE byMemberNum;
BYTE bySequenceNo;
BYTE byRes;
DWORD dwGroupNo;
}NET_DVR_MULTI_CARD_CFG_V50,*LPNET_DVR_MULTI_CARD_CFG_V50;

Members
byEnable
Whether to enable the group: 0-no, 1-yes
byMemberNum
Number of cards should be swiped in the group.
bySequenceNo
Card swiping order in the group.
byRes
Reserved, set to 0.
dwGroupNo
Group No., 0xffffffff-remotely open door, 0xfffffffe-open door by super password.

See Also
NET_DVR_MULTI_CARD_GROUP_CFG_V50

4.1.50 NET_DVR_HOLIDAY_GROUP_CFG
Holiday group configuration structure.

Structure Definition
struct{
DWORD dwSize;
BYTE byEnable;
BYTE byRes1[3];
BYTE byGroupName[HOLIDAY_GROUP_NAME_LEN/*32*/];
DWORD dwHolidayPlanNo[MAX_HOLIDAY_PLAN_NUM/*16*/];
BYTE byRes2[32];
}NET_DVR_HOLIDAY_GROUP_CFG,*LPNET_DVR_HOLIDAY_GROUP_CFG;

172
Device Network SDK (Access Control on Card) Developer Guide

Members
dwSize
Structure size.
byEnable
Whether to enable: 1-enable, 0-disable.
byRes1
Reserved, set to 0.
byGroupName
Holiday group name.
dwHolidayPlanNo
Holiday schedule No.: 0-invalid.
byRes2
Reserved, set to 0.

4.1.51 NET_DVR_HOLIDAY_PLAN_CFG
Holiday schedule configuration structure.

Structure Definition
struct{
DWORD dwSize;
BYTE byEnable;
BYTE byRes1[3];

NET_DVR_DATE
struBeginDate;

NET_DVR_DATE
struEndDate;

NET_DVR_SINGLE_PLAN_SEGMENT
struPlanCfg[MAX_DAYS][MAX_TIMESEGMENT_V30];
BYTE byRes2[16];
}NET_DVR_HOLIDAY_PLAN_CFG,*LPNET_DVR_HOLIDAY_PLAN_CFG;

Members
dwSize
Structure size.
byEnable
Enable? 0- No; 1- Yes

173
Device Network SDK (Access Control on Card) Developer Guide

byRes1
Reserved, set to 0.
struBeginDate
Holiday start time, see NET_DVR_DATE for details.
struEndDate
Holiday end time, see NET_DVR_DATE for details.
struPlanCfg
Holiday schedule parameters, up to 7 days can be set in one week, and up to 8 time periods can
be set in one day, see NET_DVR_SINGLE_PLAN_SEGMENT for details.
byRes2
Reserved, set to 0.

4.1.52 NET_DVR_INDOOR_UNIT_DEVICEID
Parameter structure of indoor station No.

Structure Definition
struct{
SHORT wFloorNumber;
WORD wRoomNumber;
WORD wDevIndex;
BYTE byRes[122];
}NET_DVR_INDOOR_UNIT_DEVICEID, *LPNET_DVR_INDOOR_UNIT_DEVICEID;

Members
wFloorNumber
Floor No.
wRoomNumber
Room No.
wDevIndex
Indoor station No., which is between 0 and 10.
byRes
Reserved, set to 0.

See Also
NET_DVR_VIDEO_INTERCOM_UNIT_DEVICEID_UNION

174
Device Network SDK (Access Control on Card) Developer Guide

4.1.53 NET_DVR_INDOOR_UNIT_RELATEDEV
Parameter structure of linked network device of indoor station.

Structure Definition
struct{
NET_DVR_IPADDR struOutdoorUnit;
NET_DVR_IPADDR struManageUnit;
NET_DVR_IPADDR struSIPServer;
NET_DVR_IPADDR struAgainUnit;
BYTE byOutDoorType;
BYTE byOutInConnectMode;
BYTE byIndoorConnectMode;
BYTE byRes1;
NET_DVR_IPADDR struIndoorUnit;
BYTE byRes[300];
}NET_DVR_INDOOR_UNIT_RELATEDEV,*LPNET_DVR_INDOOR_UNIT_RELATEDEV;

Members
struOutdoorUnit
IP address of main door station, refer to the structure NET_DVR_IPADDR for details.
struManageUnit
IP address of master station, refer to the structure NET_DVR_IPADDR for details.
struSIPServer
IP address of SIP server, refer to the structure NET_DVR_IPADDR for details.
struAgainUnit
Doorphone IP address, refer to the structure NET_DVR_IPADDR for details.
byOutDoorType
Main door station type: 0-reserved, 1-main door station, 2-villa door station
byOutInConnectMode
Network connection mode of door station and indoor station: 1-in same LAN, 2-in different LAN.
byIndoorConnectMode
Network connection mode of indoor station and sub indoor station: 1-by wireless NIC, 2-by
wired NIC
byRes1
Reserved, set to 0.
struIndoorUnit
IP address of indoor station, refer to the structure NET_DVR_IPADDR for details.
byRes

175
Device Network SDK (Access Control on Card) Developer Guide

Reserved, set to 0.

See Also

4.1.54 NET_DVR_INIT_CFG_ABILITY

Initialization Capability Structure

Member Data Type Description


enumMaxLoginUsersN INIT_CFG_MAX_NUM Maximum number of users can log in, see
um details below:
enum _INIT_CFG_MAX_NUM_{
INIT_CFG_NUM_2048 = 2048,
INIT_CFG_NUM_5120 = 5120,
INIT_CFG_NUM_10240 = 10240,
INIT_CFG_NUM_15360 = 15360,
INIT_CFG_NUM_20480 = 20480
}INIT_CFG_MAX_NUM

enumMaxAlarmNum INIT_CFG_MAX_NUM Maximum number of alarm channels, see


details below:
enum _INIT_CFG_MAX_NUM_{
INIT_CFG_NUM_2048 = 2048,
INIT_CFG_NUM_5120 = 5120,
INIT_CFG_NUM_10240 = 10240,
INIT_CFG_NUM_15360 = 15360,
INIT_CFG_NUM_20480 = 20480
}INIT_CFG_MAX_NUM

byRes Array of BYTE Reserved, set to 0.

Remarks
By default, up to 2048 channels are supported. More channels require higher computer
performance and network bandwidth.
See Also
NET_DVR_SetSDKInitCfg

4.1.55 NET_DVR_IPADDR

176
Device Network SDK (Access Control on Card) Developer Guide

IP Address Structure

Member Data Type Description


sIpV4 Array of char Device IPv4 address
sIpV6 Array of BYTE Device IPv6 address

4.1.56 NET_DVR_JSON_DATA_CFG
Structure about picture data in JSON format.

Structure Definition
struct{
DWORD dwSize;
void *lpJsonData;
DWORD dwJsonDataSize;
void *lpPicData;
DWORD dwPicDataSize;
DWORD dwInfraredFacePicSize;
char *lpInfraredFacePicBuffer;
BYTE byRes[248];
}NET_DVR_JSON_DATA_CFG,*LPNET_DVR_JSON_DATA_CFG;

Members
dwSize
Structure size.
lpJsonData
Returned message in JSON format.
dwJsonDataSize
Size of the message in JSON format.
lpPicData
Picture data. If the returned message is the response status message, this member is invalid; if
the returned message in JSON format does not contain faceURL, this member should contain
picture data in binary format.
dwPicDataSize
Picture data size, the maximum size is 200 KB.
dwInfraredFacePicSize
Data size of the infrared face picture. When this member is 0, it indicates that there is no face
picture data. When the response message is JSON_ResponseStatus , this member is

177
Device Network SDK (Access Control on Card) Developer Guide

meaningless. When the request message in JSON format does not contain the value of
infraredFaceURL, this member should contain the binary picture.
lpInfraredFacePicBuffer
Buffer of infrared face picture data.
byRes
Reserved.

4.1.57 NET_DVR_LOCAL_SDK_PATH

Path Information Structure for Loading Component Libraries

Member Data Type Description


sPath Array of char Component libraries' addresses
byRes Array of BYTE Reserved.

Remarks
If the path of HCNetSDKCom folder and HCNetSDK libraries are same, but the path of executable
programs are different, you can call NET_DVR_SetSDKInitCfg to specify the path of HCNetSDKCom
folder to make sure the component libraries are loaded normally.

4.1.58 NET_DVR_MANAGE_UNIT_DEVICEID
Parameter structure of master station No.

Structure Definition
struct{
DWORD wPeriod;
DWORD wDevIndex;
BYTE byRes[124];
}NET_DVR_MANAGE_UNIT_DEVICEID, *LPNET_DVR_MANAGE_UNIT_DEVICEID;

Members
wPeriod
Community No., range: [0,9].
wDevIndex
Outer door station No., which is unique in each floor, and it starts from 0.
byRes
Reserved, set to 0.

178
Device Network SDK (Access Control on Card) Developer Guide

See Also
NET_DVR_VIDEO_INTERCOM_UNIT_DEVICEID_UNION

4.1.59 NET_DVR_MANAGE_UNIT_RELATEDEV
Parameter structure of linked network device of master station.

Structure Definition
struct{
NET_DVR_IPADDR struSIPServer;
BYTE byRes[880];
}NET_DVR_MANAGE_UNIT_RELATEDEV,*LPNET_DVR_MANAGE_UNIT_RELATEDEV;

Members
struSIPServer
IP address of SIP server, refer to the structure NET_DVR_IPADDR for details.
byRes
Reserved, set to 0.

See Also

4.1.60 NET_DVR_MIME_UNIT

Input Content Details Structure of Message Transmission API (NET_DVR_STDXMLConfig)

Member Data Type Description


szContentType Array of char Content type (corresponds to Content-Type
field in the message), e.g., text/json. text/xml,
and so on. The content format must be
supported by HTTP.
szName Array of char Content name (corresponds to name field in the
message), e.g., name="upload".
szFilename Array of char Content file name (corresponds to filename
field in the message), e.g., filename=​"C:\Users
\test\Desktop\11.txt".
dwContentLen DWORD Content size

179
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


pContent char* Data point
byRes Array of BYTE Reserved, set to 0.

See Also
NET_DVR_XML_CONFIG_INPUT

4.1.61 NET_DVR_MULTI_CARD_CFG_V50
Multi-factor authentication parameter structure.

Structure Definition
struct{
DWORD dwSize;
BYTE byEnable;
BYTE bySwipeIntervalTimeout;
BYTE byRes1[2];
NET_DVR_MULTI_CARD_GROUP_CFG_V50 struGroupCfg[NET_SDK_MULTI_CARD_GROUP_NUM/*20*/];
BYTE byRes2[32];
}NET_DVR_MULTI_CARD_CFG_V50,*LPNET_DVR_MULTI_CARD_CFG_V50;

Members
dwSize
Structure size
byEnable
Whether to enable multi-factor authentication: 0-no, 1-yes.
bySwipeIntervalTimeout
Card swiping interval timeout, which is ranging from 1 to 255, unit: second, default: 10s.
byRes1
Reserved, set to 0.
struGroupCfg
Card swiping parameters of group, see details in the structure
NET_DVR_MULTI_CARD_GROUP_CFG_V50 .
byRes2
Reserved, set to 0.

180
Device Network SDK (Access Control on Card) Developer Guide

4.1.62 NET_DVR_MULTI_CARD_GROUP_CFG_V50
Card swiping parameter structure of card group.

Structure Definition
struct{
BYTE byEnable;
BYTE byEnableOfflineVerifyMode;
BYTE byRes1[2];
DWORD dwTemplateNo;
NET_DVR_GROUP_COMBINATION_INFO_V50 struGroupCombination[GROUP_COMBINATION_NUM];
}NET_DVR_MULTI_CARD_GROUP_CFG_V50,*LPNET_DVR_MULTI_CARD_GROUP_CFG_V50;

Members
byEnable
Whether to enable card group parameters of multi-factor authentication: 0-no, 1-yes.
bySwipeIntervalTimeout
Whether to enable access authentication when the access controller is offline (open door by
super password instead of remotely opening door): 0-no, 1-yes
byRes1
Reserved, set to 0.
dwTemplateNo
Template No. of multi-factor authentication schedule, which reuses the template of access
permission control schedule.
struGroupCombination
Group parameters, see details in the structure NET_DVR_GROUP_COMBINATION_INFO_V50 .

See Also
NET_DVR_MULTI_CARD_CFG_V50

4.1.63 NET_DVR_NETCFG_V50

Network Configuration Structure

Member Data Type Description


dwSize DWORD Structure size.
struEtherNet Array of Ethernet interface
NET_DVR_ETHERNET_
V30

181
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


struRes1 Array of Reserved, set to 0.
struAlarmHostIpAddr NET_DVR_IPADDR Listening service IP address
byRes2 Array of BYTE Reserved, set as 0
wAlarmHostIpPort WORD Listening service port No.
byUseDhcp BYTE Whether to enable DHCP: 0xff- invalid; 0-
disable, 1-enable
byIPv6Mode BYTE Allocation mode of IPv6 address: 0-by router
advertisement, 1-by manual setting, 2-by
enabling DHCP allocation.
struDnsServer1IpAddr NET_DVR_IPADDR IP address of domain name server 1
struDnsServer2IpAddr NET_DVR_IPADDR IP address of domain name server 2
byIpResolver Array of BYTE IP resolver domain name or IP address (if the
port No. of device is 8000, the domain name is
not supported).
wIpResolverPort WORD IP resolver port No.
wHttpPortNo WORD HTTP port No.
struMulticastIpAddr NET_DVR_IPADDR Multicast group address
struGatewayIpAddr NET_DVR_IPADDR Gateway address
struPPPoE NET_DVR_PPPOECFG PPPoE parameters
byEnablePrivateMultic BYTE Private multicast search (SADP): 0-default, 1-
astDiscovery enable, 2-disable
byEnableOnvifMulticas BYTE Onvif multicast search (SADP): 0-default, 1-
tDiscovery enable, 2-disable
wAlarmHost2IpPort WORD Port No. of listening host 2.
struAlarmHost2IpAddr NET_DVR_IPADDR IP address of listening host 2
byEnableDNS BYTE DNS address setting mode: 0-​automatically get,
1-manually set.
byRes Array of BYTE Reserved, set to 0

182
Device Network SDK (Access Control on Card) Developer Guide

Remarks
• For device only supports the private protocol with version 3.0 or lower, when the parameter
byUseDhcp="0xff", you should set the device IP address to null, and then the device will
automatically get the DHCP information.
• When the parameter byIPv6Mode is set to 0 or 2, setting IPv6 address in the parameter
struEtherNet is not required, it will be obtained automatically by the device; when byIPv6Mode
is set to 1, you should set IPv6 address. As there are multiple IPv6 addresses, the IPv6 address of
current logged-in device may be different with that in struEtherNet.

4.1.64 NET_DVR_OUTDOOR_FENCE_DEVICEID
Parameter structure of outer door station No.

Structure Definition
struct{
DWORD wPeriod;
DWORD wDevIndex;
BYTE byRes[124];
}NET_DVR_OUTDOOR_FENCE_DEVICEID, *LPNET_DVR_OUTDOOR_FENCE_DEVICEID;

Members
wPeriod
Community No., range: [0,9].
wDevIndex
Outer door station No., which starts from 0.
byRes
Reserved, set to 0.

See Also
NET_DVR_VIDEO_INTERCOM_UNIT_DEVICEID_UNION

4.1.65 NET_DVR_OUTDOOR_UNIT_DEVICEID
Parameter structure of door station (or intelligent access control device) No.

Structure Definition
struct{
DWORD wPeriod;
DWORD wBuildingNumber;
DWORD wUnitNumber

183
Device Network SDK (Access Control on Card) Developer Guide

DWORD wFloorNumber
DWORD wDevIndex
DWORD byRes[118];
}NET_DVR_OUTDOOR_UNIT_DEVICEID, *LPNET_DVR_OUTDOOR_UNIT_DEVICEID;

Members
wPeriod
Project No., range: [0,9].
wBuildingNumber
Building No.
wUnitNumber
Unit No.
wFloorNumber
Floor No.
wDevIndex
Door station No., which is unique in each floor, and it starts from 0.
byRes
Reserved, set to 0.

See Also
NET_DVR_VIDEO_INTERCOM_UNIT_DEVICEID_UNION

4.1.66 NET_DVR_OUTDOOR_UNIT_RELATEDEV
Parameter structure of linked network device of door station, villa door station, or intelligent
access control device.

Structure Definition
struct{
NET_DVR_IPADDR struMainOutdoorUnit;
NET_DVR_IPADDR struManageUnit;
NET_DVR_IPADDR struSIPServer;
BYTE byManageCenterID[32];
BYTE byRes[560];
}NET_DVR_OUTDOOR_UNIT_RELATEDEV,*LPNET_DVR_OUTDOOR_UNIT_RELATEDEV;

Members
struMainOutdoorUnit
IP address of door station, it is valid when sub door station exists, refer to the structure
NET_DVR_IPADDR for details.

184
Device Network SDK (Access Control on Card) Developer Guide

struManageUnit
IP address of master station, refer to the structure NET_DVR_IPADDR for details.
struSIPServer
IP address of SIP server, it is valid when the sub door station exits, refer to the structure
NET_DVR_IPADDR for details.
byManageCenterID
Management center ID, which is valid in SIP mode, and it should contains digits, letters, @, and
dots.
byRes
Reserved, set to 0.

See Also

4.1.67 NET_DVR_PERSON_STATISTICS_CFG
People counting parameters structure.

Structure Definition
struct{
DWORD dwSize;
BYTE byEnableStatistics;
BYTE byEnableOfflineStatistics;
BYTE byCountSignalStatisticalStandard;
BYTE byRes[605];
}NET_DVR_PERSON_STATISTICS_CFG, *LPNET_DVR_PERSON_STATISTICS_CFG;

Members
dwSize
Structure size.
byEnableStatistics
Whether to enable people counting: 0-disable, 1-enable.
byEnableOfflineStatistics
Whether to enable offline people counting: 0-disable, 1-enable.
byCountSignalStatisticalStandard
People counting type: 0-invalid, 1-IR detection, 2-authentication number.
byRes
Reserved, set to 0.

185
Device Network SDK (Access Control on Card) Developer Guide

4.1.68 NET_DVR_PLAN_TEMPLATE
Schedule template configuration structure.

Structure Definition
struct{
DWORD dwSize;
BYTE byEnable;
BYTE byRes1[3];
BYTE byTemplateName[TEMPLATE_NAME_LEN/*32*/];
DWORD dwWeekPlanNo;
DWORD dwHolidayGroupNo[MAX_HOLIDAY_GROUP_NUM/*16*/];
BYTE byRes2[32];
}NET_DVR_PLAN_TEMPLATE,*LPNET_DVR_PLAN_TEMPLATE;

Members
dwSize
Structure size.
byEnable
Whether to enable: 1-enable, 0-disable.
byRes1
Reserved, set to 0.
byGroupName
Schedule template name.
byGroupName
Week schedule No.: 0-invalid.
dwHolidayGroupNo
Holiday group No.: 0-invalid.
byRes2
Reserved, set to 0.

4.1.69 NET_DVR_PPPOECFG

PPPoE Configuration Structure

Member Data Type Description


dwPPPOE DWORD Whether to enable PPPoE: 0-no, 1-yes.
sPPPoEUser Array of BYTE PPPoE user name.

186
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


sPPPoEPassword Array of char PPPoE password.
struPPPoEIP NET_DVR_IPADDR PPPoE IP address

4.1.70 NET_DVR_RIGHT_CONTROLLER_AUDIO_PARAM
Structure about audio file parameters of main controller.

Structure Definition
struct{
DWORD dwSize;
DWORD dwFileSize;
DWORD dwAudioID;
BYTE byRes[256];
}NET_DVR_RIGHT_CONTROLLER_AUDIO_PARAM,*LPNET_DVR_RIGHT_CONTROLLER_AUDIO_PARAM;

Members
dwSize
Structure size.
dwFileSize
File size, unit: byte. This member is valid only when uploading audio file, and it is invalid when
downloading audio file.
dwAudioID
Audio file ID. 0xffffffff indicates uploading all audio files. Currently, only uploading all audio files
is supported, and uploading a single file by ID is not supported.
byRes
Reserved.

Remarks
The audio file is uploaded from the client to the device.

4.1.71 NET_DVR_SETUPALARM_PARAM_V50

Arming Parameter Structure

Member Data Type Description


dwSize DWORD Structure size
byLevel BYTE Arming priority: 0-high, 1-medium, 2-low.

187
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


byAlarmInfoType BYTE Intelligent traffic alarm information type: 0-old
(NET_DVR_PLATE_RESULT),1-new (NET_ITS_
PLATE_RESULT)
byRetAlarmTypeV40 BYTE 0-motion detection, video loss, video
tampering, and alarm input alarm information
is uploaded in normal mode (alarm type:
COMM_ALARM_V30, alarm information
structure: NET_DVR_ALARMINFO_V30 ); 1-
alarm information is uploaded in variable size
(alarm type: COMM_ALARM_V40, alarm
information structure:
NET_DVR_ALARMINFO_V40 ).
byRetDevInfoVersion BYTE Alarm types of CVR: 0-COMM_ALARM_DEVICE
(alarm information structure:
NET_DVR_ALARMINFO_DEV ), 1-COMM_
ALARM_DEVICE_V40 (alarm information
structure: NET_DVR_ALARMINFO_DEV_V40 ).
byRetVQDAlarmType BYTE VQD alarm types: 0-COMM_ALARM_VQD
(alarm information structure: NET_DVR_VQD_
DIAGNOSE_INFO), 1-COMM_ALARM_VQD_EX
(alarm information structure: NET_DVR_VQD_
ALARM, including camera information and
captured pictures)
byFaceAlarmDetection BYTE Face detection alarm types: 1-face detection
alarm (alarm type: COMM_ALARM_FACE_
DETECTION, alarm information structure: NET_
DVR_FACE_DETECTION), 0-face capture alarm
(alarm type: COMM_UPLOAD_FACESNAP_
RESULT, alarm information structure: NET_VCA_
FACESNAP_RESULT).
bySupport BYTE Capabilities, which is represented by bit:
• bit0-whether to upload picture: 0-yes, 1-no
• bit1-whether to enable ANR: 0-no, 1-yes
• bit4-whether to upload behavior analysis
events of all detection targets: 0-no, 1-yes. It
is used to enable the NVR to get events of all
targets detected by network cameras.
• bit5-whether to enable all-day event or alarm
uploading: 0-no, 1-yes. It is used to enable

188
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


the NVR to receive all alarms from network
cameras.
byBrokenNetHttp BYTE ANR type, which is represented by bit and
should be supported by device:
• bit0-whether to enable ANPR for ANPR: 0-no,
1-yes.
• bit1-whether to enable ANR for people
counting: 0-no, 1-yes.
• bit2-whetehr to enable ANR for heat map: 0-
no, 1-yes.
• bit3-whether to enable ANR for face capture:
0-no, 1-yes.
• bit4-whether to enable ANR for face picture
comparison: 0-no, 1-yes.
• bit5-whether to enable ANR for JSON
message transmission: 0-no, 1-yes.
• bit6: whether to enable ANR for uploading
heat map data by dwell time duration and by
people quantity: 0-no, 1-yes.
• bit7: whether to enable ANR for uploading
intersection analysis result: 0-no, 1-yes.
wTaskNo BYTE Task No.
byDeployType BYTE Arming type: 0-arm via client software, 1-​real-
time arming
bySubScription BYTE Subscription parameters, which is represent by
bit.
Bit7-whether to upload picture after subscribing
motion detection alarm by person or vehicle: 0-
no, 1-yes.
byRes1 Array of BYTE Reserved, set to 0. The maximum size is 2 bytes.
byAlarmTypeURL BYTE Alarm picture data type, which is represented
by bit, if the device supports uploading alarm
pictures in binary format and URL format, you
can specify the data type to be uploading via
this parameter, if the device only supports URL
format, this parameter is invalid. If the URL
format is selected, you should set the device

189
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


and enable the cloud storage, otherwise, the
picture will still be transmitted in binary format.
• bit0-type of captured face pictures: 0-binary
data, 1-URL
• bit1-type of picture uploaded in message: 0-
binary, 1-URL
• bit2-type of picture uploaded for face picture
comparison: 0-binary, 1-URL
byCustomCtrl BYTE Custom control type, which is represented by
bit, bit0-whether to upload the face thumbnail
of co-driver: 0-no, 1-yes
byRes4 Array of BYTE Reserved, set to 0. The maximum size is 128
bytes.

Remarks
• The parameters byLevel and byAlarmInfoType are available for traffic cameras. Up to 1 cameras
can be armed in the priority of level 0, up to 3 cameras can be armed in the priority of level 1,
and up to 5 cameras can be armed in the priority of level 3, the alarm/event information from
the camera in highest priority will be uploaded first.
• For arming via client software, only supports arming one channel, and supports uploading the
alarm/event when device is offline; for real-time arming, up to four channels can be armed at
same time, but uploading alarm/event when device is offline is not supported.
• The parameter wTaskNo is used to distinguish different arming connections. If the value of this
parameter in different arming connections is same, error will be returned.

4.1.72 NET_DVR_SIMPLE_DAYTIME
Time parameter structure.

Structure Definition
struct{
BYTE byHour;
BYTE byMinute;
BYTE bySecond;
BYTE byRes;
}NET_DVR_SIMPLE_DAYTIME,*LPNET_DVR_SIMPLE_DAYTIME;

Members
byHour

190
Device Network SDK (Access Control on Card) Developer Guide

Hour
byMinute
Minute
bySecond
Second
byRes
Reserved, set to 0.

4.1.73 NET_DVR_SINGLE_PLAN_SEGMENT
Parameter structure of a schedule

Structure Definition
struct{
BYTE byEnable;
BYTE byDoorStatus;
BYTE byVerifyMode;
BYTE byRes[5];
NET_DVR_TIME_SEGMENT struTimeSegment;
}NET_DVR_SINGLE_PLAN_SEGMENT, *LPNET_DVR_SINGLE_PLAN_SEGMENT;

Members
byEnable
Whether to enable: 1-no, 0-yes.
byDoorStatus
Door status: 0-invalid, 1-remain open (access without authentication), 2-remain closed (access
is not allowed), 3-normal (access by authentication).
byVerifyMode
Authentication mode: 0-invalid, 1-card, 2-card+password, 3-password, 4-card or password, 5-
fingerprint, 6-fingerprint+password, 7-fingerprint or password, 8-fingerprint+card, 9-fingerprint
+card+password, 10-face or fingerprint or card or password, 11-face+fingerprint, 12-face
+password, 13-face+card, 14-face, 15-employee ID+password, 16-fingerprint or password, 17-
employee ID+fingerprint, 18-employee ID+fingerprint+password, 19-face+fingerprint+card, 20-
face+password+fingerprint, 21-employee ID+face, 22-face or face+card, 23-fingerprint or face,
24-card or face or password, 25-card or face, 26-card or face or fingerprint, 27-card or
fingerprint or password.
byRes
Reserved, set to 0.
struTimeSegment

191
Device Network SDK (Access Control on Card) Developer Guide

Time period parameters, see NET_DVR_TIME_SEGMENT for details.

4.1.74 NET_DVR_TIME

Time Parameter Structure

Member Data Type Description


dwYear DWORD Year
dwMonth DWORD Month
dwDay DWORD Day
dwHour DWORD Hour
dwMinute DWORD Minute
dwSecond DWORD Second

4.1.75 NET_DVR_TIME_EX

Extended Time Parameter Structure

Member Data Type Description


wYear WORD Year
byMonth BYTE Month
byDay BYTE Day
byHour BYTE Hour
byMinute BYTE Minute
bySecond BYTE Second
byRes BYTE Reserved.

4.1.76 NET_DVR_TIME_SEGMENT
Time period parameter structure.

Structure Definition
struct{
NET_DVR_SIMPLE_DAYTIME struBeginTime;

192
Device Network SDK (Access Control on Card) Developer Guide

NET_DVR_SIMPLE_DAYTIME struEndTime;
}NET_DVR_TIME_SEGMENT, *LPNET_DVR_TIME_SEGMENT;

Members
struBeginTime
Start time of time period, refer to the structure NET_DVR_SIMPLE_DAYTIME for details.
struEndTime
End time of time period, refer to the structure NET_DVR_SIMPLE_DAYTIME for details.

4.1.77 NET_DVR_USER_LOGIN_INFO

Structure About User Login Parameters

Member Data Type Description


sDeviceAddress char Device IP address, or domain name.
byUseTransport BYTE Enable capability transmission or not: 0-no
(default), 1-yes.
wPort WORD Device port number, e.g., 8000 (when login by
private protocol), 80 (when login by ISAPI
protocol).
sUserName char User name for logging in to device.
sPassword char Login password.
cbLoginResult fLoginResultCallBack Callback function used to return login status, it
is valid only when bUseAsynLogin is "1", see
the callback function fLoginResultCallBack for
details.
pUser void* User data.
bUseAsynLogin BOOL Whether to enable asynchronous login: 0-no, 1-
yes.
byProxyType BYTE Proxy server type: 0-no proxy, 1-standard proxy,
2-EHome proxy.
byUseUTCTime BYTE 0-not convert (default), 1-input or output UTC
time, 2-input or output local time.
byLoginMode BYTE Login mode: 0-login by private protocol, 1-login
by ISAPI protocol, 2-​self-​adaptive (it is available
when the protocol type supported by device is

193
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


unknown, and this mode does not support
asynchronous login).
byHttps BYTE Whether to log in to based on TLS: 0-no, 1-yes,
2-​self-​adaptive (it is available when the protocol
type supported by device is unknown).
iProxyID LONG Proxy server No.
byRes3 Array of BYTE Reserved, set to 0.

4.1.78 NET_DVR_VALID_PERIOD_CFG
Expiry date configuration structure.

Structure Definition
struct{
BYTE byEnable;
BYTE byBeginTimeFlag;
BYTE byEnableTimeFlag;
BYTE byTimeDurationNo;
NET_DVR_TIME_EX struBeginTime;
NET_DVR_TIME_EX struEndTime;
BYTE byTimeType;
BYTE byRes2[32];
}NET_DVR_VALID_PERIOD_CFG,*LPNET_DVR_VALID_PERIOD_CFG;

Members
byEnable
Whether to enable the expiry date: 0-no, 1-yes.
byBeginTimeFlag
Whether to enable the flag to limit the start time: 0-no, 1-yes.
byEnableTimeFlag
Whether to enable the flag to limit the end time: 0-no, 1-yes.
byTimeDurationNo
Expiry date index No., which starts from 0.
struBeginTime
Start time of the expiry date, see details in the structure NET_DVR_TIME_EX .
struEndTime
End time of the expiry date, see details in the structure NET_DVR_TIME_EX ..

194
Device Network SDK (Access Control on Card) Developer Guide

byTimeType
Time type: 0-device's local time (default), 1-UTC time. This member is valid for struBeginTime
and struEndTime.
byRes2
Reserved, set to 0.

See Also
NET_DVR_GROUP_CFG

4.1.79 NET_DVR_VIDEO_INTERCOM_DEVICEID_CFG
Parameter structure for configuring video intercom device No.

Structure Definition
struct{
DWORD bySize;
BYTE byUnitType;;
BYTE byIsAutoReg;
BYTE byRes1[2];
NET_DVR_VIDEO_INTERCOM_UNIT_DEVICEID_UNION uVideoIntercomUnit;
BYTE byRes2[128];
}NET_DVR_VIDEO_INTERCOM_DEVICEID_CFG, *LPNET_DVR_VIDEO_INTERCOM_DEVICEID_CFG;

Members
dwSize
Structure size.
byUnitType
Device type: 1-door station, 2-master station, 4-outer station, 5-villa door station, 6-doorphone,
7-intelligent access control device.
byIsAutoReg
Whether to enable auto registration: 0-no, 1-yes.
byRes1
Reserved, set to 0.
uVideoIntercomUnit
Device No., refer to the data union NET_DVR_VIDEO_INTERCOM_UNIT_DEVICEID_UNION for
details.
byRes2
Reserved, set to 0.

195
Device Network SDK (Access Control on Card) Developer Guide

Remarks
Configuring No. for doorphone is not required.

4.1.80 NET_DVR_VIDEO_INTERCOM_RELATEDEV_CFG
Configuration structure for linked network devices of video intercom.

Structure Definition
struct{
DWORD dwSize;
BYTE byUnitType;
BYTE byRes1[3];
NET_DVR_VIDEO_INTERCOM_UNIT_RELATEDEV_UNION uVideoIntercomUnit;
BYTE byRes2[128];
}NET_DVR_VIDEO_INTERCOM_RELATEDEV_CFG, *LPNET_DVR_VIDEO_INTERCOM_RELATEDEV_CFG;

Members
dwSize
Structure size.
byUnitType
Device type: 1-door station, 2-master station, 4-outer station, 5-villa door station, 6-doorphone,
7-intelligent access control device.
byRes1
Reserved, set to 0.
uVideoIntercomUnit
Parameter union of linked network device, refer to the union
NET_DVR_VIDEO_INTERCOM_UNIT_RELATEDEV_UNION for details.
byRes2
Reserved, set to 0.

4.1.81 NET_DVR_VIDEO_INTERCOM_UNIT_DEVICEID_UNION
Parameter union of video intercom device No.

Structure Definition
union{
BYTE byLen[128];
NET_DVR_INDOOR_UNIT_DEVICEID struIndoorUnit;
NET_DVR_OUTDOOR_UNIT_DEVICEID struOutdoorUnit;
NET_DVR_MANAGE_UNIT_DEVICEID struManageUnit;

196
Device Network SDK (Access Control on Card) Developer Guide

NET_DVR_OUTDOOR_FENCE_DEVICEID struFenceUnit;
NET_DVR_OUTDOOR_UNIT_DEVICEID struVillaOutdoorUnit;
NET_DVR_OUTDOOR_UNIT_DEVICEID struAgainConfirmUnit;
}NET_DVR_VIDEO_INTERCOM_UNIT_DEVICEID_UNION, *LPNET_DVR_VIDEO_INTERCOM_UNIT_DEVICEID_UNION;

Members
byLen
Union size, which is 128 bytes.
struIndoorUnit
Indoor station No., refer to the structure NET_DVR_INDOOR_UNIT_DEVICEID for details.
struOutdoorUnit
Door station (or intelligent access control device) No., refer to the structure
NET_DVR_OUTDOOR_UNIT_DEVICEID for details.
struManageUnit
Master station No., refer to the structure NET_DVR_MANAGE_UNIT_DEVICEID for details.
struFenceUnit
Outer door station No., refer to the structure NET_DVR_OUTDOOR_FENCE_DEVICEID for
details.
struVillaOutdoorUnit
Villa door station No., refer to the structure NET_DVR_OUTDOOR_UNIT_DEVICEID for details.
struAgainConfirmUnit
Doorphone No., refer to the structure NET_DVR_OUTDOOR_UNIT_DEVICEID for details.

Remarks
• The rules to generate device No. are as the follows:
• The long No. of master station is "*00000001XX": "*"-project No., "001"-master station, "XX"-
master station No. (01, 02, …, increased by 1).
• The long No. of door station, villa door station, or doorphone is "*XXXXX000$$": "*"-project
No.; "XXX"-building No.; "XX"-unit No.; "000"-door station; "$$"-door station No. ("00"-main
door station, other values-sub door station).
• The long No. of indoor station is "*XXXXX$$$$$": "*"-project No.; "XXX"-building No.; "XX"-
unit No.; "$$$"-floor No.; "$$"-room No.
• The long No. of outer door station is "*00000002XX": "*"-project No., "002"-outer door
station, "XX"-outer door station No. (01, 02, …, increased by 1).
• In the actual application, one master station may belong to multiple communities, so the project
No. of the device can be any of the existing project No., as long as the generated device No. is
unique.

197
Device Network SDK (Access Control on Card) Developer Guide

4.1.82 NET_DVR_VIDEO_INTERCOM_UNIT_RELATEDEV_UNION
Configuration union of the network device linked with video intercom.

Structure Definition
union{
DWORD dwRes[256];
NET_DVR_INDOOR_UNIT_RELATEDEV struIndoorUnit;
NET_DVR_OUTDOOR_UNIT_RELATEDEV struOutdoorUnit;
NET_DVR_MANAGE_UNIT_RELATEDEV struManageUnit;
NET_DVR_OUTDOOR_UNIT_RELATEDEV struVillaUnit;
NET_DVR_AGAIN_RELATEDEV struAgainUnit;
}NET_DVR_VIDEO_INTERCOM_UNIT_RELATEDEV_UNION,*LPNET_DVR_VIDEO_INTERCOM_UNIT_RELATEDEV_UNION;

Members
dwRes
Union size, which is 1024 bytes (256 × 4).
struIndoorUnit
Linked network device parameters of indoor station, refer to the structure
NET_DVR_INDOOR_UNIT_RELATEDEV for details.
struOutdoorUnit
Linked network device parameters of door station, outer door station, or intelligent access
control device, refer to the structure NET_DVR_OUTDOOR_UNIT_RELATEDEV for details.
struManageUnit
Linked network device parameters of master station, refer to the structure
NET_DVR_MANAGE_UNIT_RELATEDEV for details.
struVillaUnit
Linked network device parameters of villa door station, refer to the structure
NET_DVR_OUTDOOR_UNIT_RELATEDEV for details.
struAgainUnit
Linked network device parameters of doorphone, refer to the structure
NET_DVR_AGAIN_RELATEDEV for details.

See Also
NET_DVR_VIDEO_INTERCOM_RELATEDEV_CFG

4.1.83 NET_DVR_WEEK_PLAN_CFG
Week schedule parameter structure.

198
Device Network SDK (Access Control on Card) Developer Guide

Structure Definition
struct{
DWORD dwSize;
BYTE byEnable;
BYTE byRes1[3];
NET_DVR_SINGLE_PLAN_SEGMENT struPlanCfg[MAX_DAYS/*7*/][MAX_TIMESEGMENT_V30/*8*/];
BYTE byRes2[16];
}NET_DVR_WEEK_PLAN_CFG, *LPNET_DVR_WEEK_PLAN_CFG;

Members
dwSize
Structure size.
byEnable
Whether to enable: 1-no, 0-yes.
byRes1
Reserved, set to 0.
struPlanCfg
Week schedule parameters, up to 7 days can be set in one week, and up to 8 time periods can
be set in one day, see NET_DVR_SINGLE_PLAN_SEGMENT for details.
byRes2
Reserved, set to 0.

4.1.84 NET_DVR_XML_CONFIG_INPUT

Input Parameter Structure of Message Transmission API (NET_DVR_STDXMLConfig)

Member Data Type Description


dwSize DWORD Structure size.
lpRequestUrl void* Request URL (command) for implement
different functions, and it is in string format.
dwRequestUrlLen DWORD Request URL size.
lpInBuffer void* Buffer for storing input parameters (request
messages), see the input content details
structure in NET_DVR_MIME_UNIT .
dwInBufferSize DWORD Input buffer size.
dwRecvTimeOut DWORD Receiving timeout, unit: ms, 0-5000ms (default).

199
Device Network SDK (Access Control on Card) Developer Guide

Member Data Type Description


byForceEncrpt BYTE Whether to enable force encryption (the
messages will be encrypted by AES algorithm
for transmission): 0-no, 1-yes.
byNumOfMultiPart BYTE Number of message segments: 0-invalid; other
values-number of message segments, which is
transmitted by the parameter lpInBuffer in the
structure NET_DVR_MIME_UNIT .
byRes Array of BYTE Reserved, set to 0.

Related API
NET_DVR_STDXMLConfig

4.1.85 NET_DVR_XML_CONFIG_OUTPUT

Output Parameter Structure of Message Transmission API (NET_DVR_STDXMLConfig)

Member Data Type Description


dwSize DWORD Structure size.
lpOutBuffer void* Buffer for storing output parameters (response
messages), which is allocated when passing
through URL by GET method.
dwOutBufferSize DWORD Output buffer size.
dwReturnedXMLSize DWORD Actual size of response message.
lpStatusBuffer void* Response status (ResponseStatus message).
This parameter will not be assigned if
performing GET operation succeeded, and you
can also set it to "NULL" if not required.
dwStatusSize DWORD Size of response status buffer.
byRes Array of BYTE Reserved, set to 0.

Related API
NET_DVR_STDXMLConfig

4.1.86 NET_SDK_CALLBACK_STATUS_NORMAL

200
Device Network SDK (Access Control on Card) Developer Guide

Enumeration About Persistent Connection Status

Enumeration Type Marco Definition Description


Value
NET_SDK_CALLBACK_STATUS_ 1000 Succeeded.
SUCCESS
NET_SDK_CALLBACK_STATUS_ 1001 Connecting. The lpBuffer is 4-byte
PROCESSING status.
NET_SDK_CALLBACK_STATUS_ 1002 Failed. The lpBuffer is the value of
FAILED 4-byte status and 4-byte error
code.

4.1.87 NET_VCA_POINT

Structure About Point Coordinates Parameters

Member Data Type Description


fX float X-coordinate, ranges from 0.000 to 1.
fY float Y-coordinate, ranges from 0.000 to 1.

4.1.88 NET_VCA_RECT

Structure About Rectangle Region Coordinate Parameters

Member Data Type Description


fX float X-coordinate of frame's upper-​left corner, it
ranges from 0.000 to 1.
fY float Y-coordinate of frame' upper-​left corner, it
ranges from 0.000 to 1.
fWidth float Frame width, it ranges from 0.000 to 1.
fHeight float Frame height, it ranges from 0.000 to 1.

201
Device Network SDK (Access Control on Card) Developer Guide

4.2 Enumeration Definition

4.2.1 NET_SDK_DOWNLOAD_TYPE
Enumerate file types to be downloaded.

Enumeration Definition
typedef enum {
NET_SDK_DOWNLOAD_CERT = 0,
NET_SDK_DOWNLOAD_IPC_CFG_FILE = 1,
NET_SDK_DOWNLOAD_BASELINE_SCENE_PIC = 2,
NET_SDK_DOWNLOAD_VQD_ALARM_PIC = 3,
NET_SDK_DOWNLOAD_CONFIGURATION_FILE = 4,
NET_SDK_DOWNLOAD_SCENE_CONFIGURATION_FILE = 5,
NET_SDK_DOWNLOAD_FILE_FORM_DB = 6,
NET_SDK_DOWNLOAD_TME_FILE = 7,
NET_SDK_DOWNLOAD_VEHICLE_BLACKWHITELST_FILE = 8,
NET_SDK_DOWNLOAD_GUID_FILE = 9,
NET_SDK_DOWNLOAD_FILE_FORM_CLOUD = 10,
NET_SDK_DOWNLOAD_PICTURE = 11,
NET_SDK_DOWNLOAD_VIDEO = 12,
NET_DVR_DOWNLOAD_SCREEN_FILE = 13,
NET_SDK_DOWNLOAD_PUBLISH_MATERIAL = 14,
NET_SDK_DOWNLOAD_THERMOMETRIC_FILE = 15,
NET_SDK_DOWNLOAD_LED_CHECK_FILE = 16,
NET_SDK_DOWNLOAD_VEHICLE_INFORMATION = 17,
NET_SDK_DOWNLOAD_CERTIFICATE_BLACK_LIST_TEMPLET = 18,
NET_SDK_DOWNLOAD_LOG_FILE = 19,
NET_SDK_DOWNLOAD_FILEVOLUME_DATA = 20,
NET_SDK_DOWNLOAD_FD_DATA = 21,
NET_SDK_DOWNLOAD_SECURITY_CFG_FILE = 22,
NET_SDK_DOWNLOAD_PUBLISH_SCHEDULE = 23,
NET_SDK_DOWNLOAD_RIGHT_CONTROLLER_AUDIO = 24,
NET_SDK_DOWNLOAD_MODBUS_CFG_FILE = 25,
NET_SDK_DOWNLOAD_RS485_PROTOCOL_DLL_FILE = 26,
NET_SDK_DOWNLOAD_CLUSTER_MAINTENANCE_LOG = 27,
NET_SDK_DOWNLOAD_SQL_ARCHIVE_FILE = 28,
NET_SDK_DOWNLOAD_SUBWIND_STREAM = 29,
NET_SDK_DOWNLOAD_DEVTYPE_CALIBFILE = 30,
NET_SDK_DOWNLOAD_HD_CAMERA_CORRECT_TABLE = 31,
NET_SDK_DOWNLOAD_CLIENT_CALIBFILE = 32,
NET_SDK_DOWNLOAD_FOUE_CAMERAS_PICTURES = 33,
NET_SDK_DOWNLOAD_DOOR_CONTENT = 34,
NET_SDK_DOWNLOAD_PUBLISH_MATERIAL_THUMBNAIL = 35,
NET_SDK_DOWNLOAD_PUBLISH_PROGRAM_THUMBNAIL = 36,
NET_SDK_DOWNLOAD_PUBLISH_TEMPLATE_THUMBNAIL = 37,
NET_SDK_DOWNLOAD_DARK_FIGHTER_X_CORRECT_TABLE_MAIN = 38,
NET_SDK_DOWNLOAD_DARK_FIGHTER_X_CORRECT_TABLE_BACKUP = 39,

202
Device Network SDK (Access Control on Card) Developer Guide

NET_SDK_DOWNLOAD_OFFLINE_CAPTURE_INFO_TEMPLATE = 40,
NET_SDK_DOWNLOAD_CAPTURE_DATA = 41
} NET_SDK_DOWNLOAD_TYPE;

Members
NET_SDK_DOWNLOAD_CERT
Certificate.
NET_SDK_DOWNLOAD_IPC_CFG_FILE
Network camera configuration file.
NET_SDK_DOWNLOAD_BASELINE_SCENE_PIC
Base scene picture.
NET_SDK_DOWNLOAD_VQD_ALARM_PIC
VQD (video quality diagnosis) alarm picture.
NET_SDK_DOWNLOAD_CONFIGURATION_FILE
Configuration file.
NET_SDK_DOWNLOAD_SCENE_CONFIGURATION_FILE
Scene configuration file.
NET_SDK_DOWNLOAD_FILE_FORM_DB
File in the image and video library.
NET_SDK_DOWNLOAD_TME_FILE
Entrance and exit management file.
NET_SDK_DOWNLOAD_VEHICLE_BLACKWHITELST_FILE
Blacklist and whitelist configuration file.
NET_SDK_DOWNLOAD_GUID_FILE
GUID file.
NET_SDK_DOWNLOAD_FILE_FORM_CLOUD
Picture in the cloud storage.
NET_SDK_DOWNLOAD_PICTURE
Picture.
NET_SDK_DOWNLOAD_VIDEO
Video.
NET_DVR_DOWNLOAD_SCREEN_FILE
Screen server file.
NET_SDK_DOWNLOAD_PUBLISH_MATERIAL
Static material file of information release.
NET_SDK_DOWNLOAD_THERMOMETRIC_FILE

203
Device Network SDK (Access Control on Card) Developer Guide

Thermometry calibration file.


NET_SDK_DOWNLOAD_LED_CHECK_FILE
LED correction file.
NET_SDK_DOWNLOAD_VEHICLE_INFORMATION
Vehicle information to be exported.
NET_SDK_DOWNLOAD_CERTIFICATE_BLACK_LIST_TEMPLET
ID card blacklist template.
NET_SDK_DOWNLOAD_LOG_FILE
Log to be exported.
NET_SDK_DOWNLOAD_FILEVOLUME_DATA
File volume data file, currently it is only supported by CVR (central video recorder) devices.
NET_SDK_DOWNLOAD_FD_DATA
Data in a specific face picture library to be exported.
NET_SDK_DOWNLOAD_SECURITY_CFG_FILE
Configuration file to be securely exported.
NET_SDK_DOWNLOAD_PUBLISH_SCHEDULE
Schedule to be exported.
NET_SDK_DOWNLOAD_RIGHT_CONTROLLER_AUDIO
Audio file of the main controller.
NET_SDK_DOWNLOAD_MODBUS_CFG_FILE
Configuration file of Modbus protocol.
NET_SDK_DOWNLOAD_RS485_PROTOCOL_DLL_FILE
Dynamic library file of RS-485 protocol.
NET_SDK_DOWNLOAD_CLUSTER_MAINTENANCE_LOG
Cluster maintenance log to be exported.
NET_SDK_DOWNLOAD_SQL_ARCHIVE_FILE
Archived record in the database to be exported.
NET_SDK_DOWNLOAD_SUBWIND_STREAM
Sub-window stream to be exported.
NET_SDK_DOWNLOAD_DEVTYPE_CALIBFILE
Model calibration file to be exported (*.cal).
NET_SDK_DOWNLOAD_HD_CAMERA_CORRECT_TABLE
24 MP/32 MP correction list to be exported (*.cal).
NET_SDK_DOWNLOAD_CLIENT_CALIBFILE

204
Device Network SDK (Access Control on Card) Developer Guide

Client calibration file to be exported (*.pto).


NET_SDK_DOWNLOAD_FOUE_CAMERAS_PICTURES
Four-channel picture package to be exported (.tar).
NET_SDK_DOWNLOAD_DOOR_CONTENT
Door contact information.
NET_SDK_DOWNLOAD_PUBLISH_MATERIAL_THUMBNAIL
Thumbnail of static information release material.
NET_SDK_DOWNLOAD_PUBLISH_PROGRAM_THUMBNAIL
Thumbnail of information release program.
NET_SDK_DOWNLOAD_PUBLISH_TEMPLATE_THUMBNAIL
Thumbnail of information release template.
NET_SDK_DOWNLOAD_DARK_FIGHTER_X_CORRECT_TABLE_MAIN
DarkfighterX correction list file (main partition).
NET_SDK_DOWNLOAD_DARK_FIGHTER_X_CORRECT_TABLE_BACKUP
DarkfighterX correction list file (backup partition).
NET_SDK_DOWNLOAD_OFFLINE_CAPTURE_INFO_TEMPLATE
User list template of collection.
NET_SDK_DOWNLOAD_CAPTURE_DATA
Offline collected data.

4.2.2 NET_SDK_UPLOAD_TYPE
Enumerate file types to be uploaded.

Enumeration Definition
typedef enum {
UPGRADE_CERT_FILE = 0,
UPLOAD_CERT_FILE = 1,
TRIAL_CERT_FILE = 2,
CONFIGURATION_FILE = 3,
UPLOAD_RECORD_FILE = 4,
SCENE_CONFIGURATION_FILE = 5,
UPLOAD_PICTURE_FILE = 6,
UPLOAD_VIOLATION_FILE = 7,
UPLOAD_TG_FILE = 8,
UPLOAD_DATA_TO_DB = 9,
UPLOAD_BACKGROUND_PIC = 10,
UPLOAD_CALIBRATION_FILE = 11,
UPLOAD_TME_FILE = 12,
UPLOAD_VEHICLE_BLACKWHITELST_FILE = 13,

205
Device Network SDK (Access Control on Card) Developer Guide

UPLOAD_PICTURE_TO_CLOUD = 15,
UPLOAD_VIDEO_FILE = 16,
UPLOAD_SCREEN_FILE = 17,
UPLOAD_PUBLISH_MATERIAL = 18,
UPLOAD_PUBLISH_UPGRADE_FILE = 19,
UPLOAD_RING_FILE = 20,
UPLOAD_ENCRYPT_CERT = 21,
UPLOAD_THERMOMETRIC_FILE = 22,
UPLOAD_SUBBRAND_FILE = 23,
UPLOAD_LED_CHECK_FILE = 24,
BATCH_UPLOAD_PICTURE_FILE = 25,
UPLOAD_EDID_CFG_FILE = 26,
UPLOAD_PANORAMIC_STITCH = 27,
UPLOAD_BINOCULAR_COUNTING = 28,
UPLOAD_AUDIO_FILE = 29,
UPLOAD_PUBLISH_THIRD_PARTY_FILE = 30,
UPLOAD_DEEPEYES_BINOCULAR = 31,
UPLOAD_CERTIFICATE_BLACK_LIST = 32,
UPLOAD_HD_CAMERA_CORRECT_TABLE = 33,
UPLOAD_FD_DATA = 35,
UPLOAD_FACE_DATA = 36,
UPLOAD_FACE_ANALYSIS_DATA = 37,
UPLOAD_FILEVOLUME_DATA = 38,
IMPORT_DATA_TO_FACELIB = 39,
UPLOAD_LEFTEYE_4K_CALIBFILE = 40,
UPLOAD_SECURITY_CFG_FILE = 41,
UPLOAD_RIGHT_CONTROLLER_AUDIO = 42,
UPLOAD_MODBUS_CFG_FILE = 43,
UPLOAD_NOTICE_VIDEO_DATA = 44,
UPLOAD_RS485_PROTOCOL_DLL_FILE = 45,
UPLOAD_PIC_BY_BUF = 46,
UPLOAD_CLIENT_CALIBFILE = 47,
UPLOAD_HD_CAMERA_CORRECT_TABLE_3200W = 48,
UPLOAD_APP_FILE = 51,
UPLOAD_OFFLINE_CAPTURE_INFO = 56
}NET_SDK_UPLOAD_TYPE;

Members
UPGRADE_CERT_FILE
Certificate file to be upgraded.
UPLOAD_CERT_FILE
Certificate file to be uploaded.
TRIAL_CERT_FILE
Trial license file.
CONFIGURATION_FILE
Configuration file.
UPLOAD_RECORD_FILE

206
Device Network SDK (Access Control on Card) Developer Guide

Video file.
SCENE_CONFIGURATION_FILE
Scene configuration file.
UPLOAD_PICTURE_FILE
Picture file.
UPLOAD_VIOLATION_FILE
Violation dictionary file.
UPLOAD_TG_FILE
Timing generator file.
UPLOAD_DATA_TO_DB
File to be uploaded to picture and video library.
UPLOAD_BACKGROUND_PIC
Background picture.
UPLOAD_CALIBRATION_FILE
Calibration file.
UPLOAD_TME_FILE
Entrance and exiting management file.
UPLOAD_VEHICLE_BLACKWHITELST_FILE
Vehicle blacklist file.
UPLOAD_PICTURE_TO_CLOUD
Picture file to be uploaded to cloud storage.
UPLOAD_VIDEO_FILE
Video file.
UPLOAD_SCREEN_FILE
Screen server file.
UPLOAD_PUBLISH_MATERIAL
Static material file of information release system.
UPLOAD_PUBLISH_UPGRADE_FILE
Upgrade file of information release system.
UPLOAD_RING_FILE
Ringtone file.
UPLOAD_ENCRYPT_CERT
Encryption certificate.
UPLOAD_THERMOMETRIC_FILE

207
Device Network SDK (Access Control on Card) Developer Guide

Calibration file for temperature measurement.


UPLOAD_SUBBRAND_FILE
Vehicle sub brand file.
UPLOAD_LED_CHECK_FILE
LED correction file.
BATCH_UPLOAD_PICTURE_FILE
Picture files for uploading in batch.
UPLOAD_EDID_CFG_FILE
EDID configuration file.
UPLOAD_PANORAMIC_STITCH
Panorama stitching configuration file.
UPLOAD_BINOCULAR_COUNTING
Binocular counting correction sheet.
UPLOAD_AUDIO_FILE
Audio file.
UPLOAD_PUBLISH_THIRD_PARTY_FILE
Third-party file.
UPLOAD_DEEPEYES_BINOCULAR
TX1 binocular correction sheet.
UPLOAD_CERTIFICATE_BLACK_LIST
ID card blacklist.
UPLOAD_HD_CAMERA_CORRECT_TABLE
HD camera correction sheet (CAL format).
UPLOAD_FD_DATA
Face data file to be imported to face picture library.
UPLOAD_FACE_DATA
Face picture file to be imported to face picture library.
UPLOAD_FACE_ANALYSIS_DATA
Picture file to be imported to picture recognition target.
UPLOAD_FILEVOLUME_DATA
File volume file
IMPORT_DATA_TO_FACELIB
Face data (face picture and picture additional information) to be imported to face picture library
of device.
UPLOAD_LEFTEYE_4K_CALIBFILE

208
Device Network SDK (Access Control on Card) Developer Guide

Camera calibration parameter file.


UPLOAD_SECURITY_CFG_FILE
Configuration file for security importing.
UPLOAD_RIGHT_CONTROLLER_AUDIO
Audio file of main controller.
UPLOAD_MODBUS_CFG_FILE
Configuration file of Modbus protocol.
UPLOAD_NOTICE_VIDEO_DATA
Bulletin video file.
UPLOAD_RS485_PROTOCOL_DLL_FILE
Dynamic library file of RS485 protocol.
UPLOAD_PIC_BY_BUF
Picture file for importing by picture cache.
UPLOAD_CLIENT_CALIBFILE
User calibration file (PTO format).
UPLOAD_HD_CAMERA_CORRECT_TABLE_3200W
HD camera correction sheet (CAL format).
UPLOAD_APP_FILE
Application program file.
UPLOAD_OFFLINE_CAPTURE_INFO
User list of offline collection to be imported.

209
Device Network SDK (Access Control on Card) Developer Guide

Chapter 5 Request URIs

5.1 /ISAPI/AccessControl/AcsEventTotalNum/capabilities?format=json
Get the capability of getting total number of access control events by specific conditions.

Request URI Definition


Table 5-1 GET /ISAPI/AccessControl/AcsEventTotalNum/capabilities?format=json
Method GET
Description Get the capability of getting total number of access control events by
specific conditions.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_Cap_AcsEventTotalNum
Failed: JSON_ResponseStatus

5.2 /ISAPI/AccessControl/AcsEventTotalNum?format=json
Get the total number of access control events by specific conditions.

Request URI Definition


Table 5-2 POST /ISAPI/AccessControl/AcsEventTotalNum?format=json
Method POST
Description Get the total number of access control events by specific conditions.
Query format: determine the format of request or response message.
Request JSON_AcsEventTotalNumCond
Response Succeeded: JSON_AcsEventTotalNum
Failed: JSON_ResponseStatus

Remarks
The recommended timeout is 30s.

210
Device Network SDK (Access Control on Card) Developer Guide

5.3 /ISAPI/AccessControl/attendanceStatusModeCfg/capabilities?
format=json
Get the configuration capability of the attendance mode.

Request URI Definition


Table 5-3 GET /ISAPI/AccessControl/attendanceStatusModeCfg/capabilities?format=json
Method GET
Description Get the configuration capability of the attendance mode.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_Cap_AttendanceStatusModeCfg
Failed: JSON_ResponseStatus

5.4 /ISAPI/AccessControl/attendanceStatusModeCfg?format=json
Operations about the attendance mode configuration.

Request URI Definition


Table 5-4 GET /ISAPI/AccessControl/attendanceStatusModeCfg?format=json
Method GET
Description Get the attendance mode.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_AttendanceStatusModeCfg
Failed: JSON_ResponseStatus
Table 5-5 PUT /ISAPI/AccessControl/attendanceStatusModeCfg?format=json
Method PUT
Description Set the attendance mode.
Query format: determine the format of request or response message.
Request JSON_AttendanceStatusModeCfg
Response JSON_ResponseStatus

211
Device Network SDK (Access Control on Card) Developer Guide

5.5 /ISAPI/AccessControl/attendanceStatusRuleCfg/capabilities?
format=json
Get the configuration capability of the attendance status and rule.

Request URI Definition


Table 5-6 GET /ISAPI/AccessControl/attendanceStatusRuleCfg/capabilities?format=json
Method GET
Description Get the configuration capability of the attendance status and rule.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_Cap_AttendanceStatusRuleCfg
Failed: JSON_ResponseStatus

5.6 /ISAPI/AccessControl/attendanceStatusRuleCfg?
attendanceStatus=&format=json
Operations about the configuration of the attendance status and rule.

Request URI Definition


Table 5-7 GET /ISAPI/AccessControl/attendanceStatusRuleCfg?attendanceStatus=&format=json
Method GET
Description Get the attendance status and rule.
Query format: determine the format of request or response message.
attendanceStatus: attendance status, it can be set to one of the
following values: "checkIn"-check in, "checkOut"-check out,
"breakOut"-break out, "breakIn"-break in, "overtimeIn"-​overtime in,
"overtimeOut"-​overtime out, e.g., /ISAPI/AccessControl/
attendanceStatusRuleCfg?attendanceStatus=checkIn&format=json.
Request None.
Response Succeeded: JSON_AttendanceStatusRuleCfg
Failed: JSON_ResponseStatus

212
Device Network SDK (Access Control on Card) Developer Guide

Table 5-8 PUT /ISAPI/AccessControl/attendanceStatusRuleCfg?attendanceStatus=&format=json


Method PUT
Description Set the attendance status and rule.
Query format: determine the format of request or response message.
attendanceStatus: attendance status, it can be set to one of the
following values: "checkIn"-check in, "checkOut"-check out,
"breakOut"-break out, "breakIn"-break in, "overtimeIn"-​overtime in,
"overtimeOut"-​overtime out, e.g., /ISAPI/AccessControl/
attendanceStatusRuleCfg?attendanceStatus=checkIn&format=json.
Request JSON_AttendanceStatusRuleCfg
Response JSON_ResponseStatus

5.7 /ISAPI/AccessControl/capabilities
Get the functional capability of access control.

Request URI Definition


Table 5-9 GET /ISAPI/AccessControl/capabilities
Method GET
Description Get the functional capability of access control.
Query None.
Request None.
Response Succeeded: XML_Cap_AccessControl
Failed: XML_ResponseStatus

5.8 /ISAPI/AccessControl/CaptureCardInfo/capabilities?format=json
Get the capability of collecting card information.

Request URI Definition


Table 5-10 GET /ISAPI/AccessControl/CaptureCardInfo/capabilities?format=json
Method GET
Description Get the capability of collecting card information.
Query format: determine the format of request or response message.

213
Device Network SDK (Access Control on Card) Developer Guide

Request None.
Response Succeeded: JSON_CardInfoCap
Failed: JSON_ResponseStatus

5.9 /ISAPI/AccessControl/CaptureCardInfo?format=json
Collect card information.

Request URI Definition


Table 5-11 GET /ISAPI/AccessControl/CaptureCardInfo?format=json
Method GET
Description Collect card information by the card reading module of the device.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_CardInfo_Collection
Failed: JSON_ResponseStatus

5.10 /ISAPI/AccessControl/CaptureIDInfo/capabilities?format=json
Get the capability of collecting ID card information.

Request URI Definition


Table 5-12 GET /ISAPI/AccessControl/CaptureIDInfo/capabilities?format=json
Method GET
Description Get the capability of collecting ID card information.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_IdentityInfoCap
Failed: JSON_ResponseStatus

5.11 /ISAPI/AccessControl/CaptureIDInfo?format=json
Collect ID card information.

214
Device Network SDK (Access Control on Card) Developer Guide

Request URI Definition


Table 5-13 POST /ISAPI/AccessControl/CaptureIDInfo?format=json
Method POST
Description Collect ID card information.
Query security: the version No. of encryption scheme. When security does
not exist, it indicates that the data is not encrypted; when security is
1, it indicates that the nodes of sensitive information in the message
are encrypted in AES128 CBC mode; when security is 2, it indicates
that the nodes of sensitive information in the message are encrypted
in AES256 CBC mode.
iv: the initialization vector, and it is required when security is 1 or 2.
format: determine the format of request or response message.
Request JSON_IdentityInfoCond
Response JSON_IdentityInfo

5.12 /ISAPI/AccessControl/CapturePresetParam/capabilities?
format=json
Get the configuration capability of online collection preset parameters.

Request URI Definition


Table 5-14 GET /ISAPI/AccessControl/CapturePresetParam/capabilities?format=json
Method GET
Description Get the configuration capability of online collection preset
parameters.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_CapturePresetCap
Failed: JSON_ResponseStatus

5.13 /ISAPI/AccessControl/CapturePresetParam?format=json
Get or set the online collection preset parameters.

215
Device Network SDK (Access Control on Card) Developer Guide

Request URI Definition


Table 5-15 GET /ISAPI/AccessControl/CapturePresetParam?format=json
Method GET
Description Get the online collection preset parameters.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_CapturePreset
Failed: JSON_ResponseStatus
Table 5-16 PUT /ISAPI/AccessControl/CapturePresetParam?format=json
Method PUT
Description Set the online collection preset parameters.
Query format: determine the format of request or response message.
Request JSON_CapturePreset
Response JSON_ResponseStatus

5.14 /ISAPI/AccessControl/CaptureRule/capabilities?format=json
Get the configuration capability of online collection rules.

Request URI Definition


Table 5-17 GET /ISAPI/AccessControl/CaptureRule/capabilities?format=json
Method GET
Description Get the configuration capability of online collection rules.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_CaptureRuleCap
Failed: JSON_ResponseStatus

5.15 /ISAPI/AccessControl/CaptureRule?format=json
Get or set the parameters of online collection rules.

216
Device Network SDK (Access Control on Card) Developer Guide

Request URI Definition


Table 5-18 GET /ISAPI/AccessControl/CaptureRule?format=json
Method GET
Description Get the parameters of online collection rules.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_CaptureRule
Failed: JSON_ResponseStatus
Table 5-19 PUT /ISAPI/AccessControl/CaptureRule?format=json
Method PUT
Description Set the parameters of online collection rules.
Query format: determine the format of request or response message.
Request JSON_CaptureRule
Response JSON_ResponseStatus

5.16 /ISAPI/AccessControl/CardOperations/capabilities?format=json
Get card operation capability.

Request URI Definition


Table 5-20 GET /ISAPI/AccessControl/CardOperations/capabilities?format=json
Method GET
Description Get card operation capability.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_CardOperationsCap
Failed: JSON_ResponseStatus

5.17 /ISAPI/AccessControl/CardOperations/cardParam?format=json
Set card parameters (only available for CPU card).

217
Device Network SDK (Access Control on Card) Developer Guide

Request URI Definition


Table 5-21 PUT /ISAPI/AccessControl/CardOperations/cardParam?format=json
Method PUT
Description Set card parameters (only available for CPU card).
Query format: determine the format of request or response message.
Request JSON_CardParam
Response JSON_ResponseStatus

5.18 /ISAPI/AccessControl/CardOperations/controlBlock?format=json
Change the control block of a specific section (only available for M1 card).

Request URI Definition


Table 5-22 PUT /ISAPI/AccessControl/CardOperations/controlBlock?format=json
Method PUT
Description Change the control block of a specific section (only available for M1
card).
Query format: determine the format of request or response message.
Request JSON_ControlBlock
Response JSON_ResponseStatus

5.19 /ISAPI/AccessControl/CardOperations/dataBlock/control?
format=json
Do operations (i.e., plus, minus, copy, and paste) on the data block.

Request URI Definition


Table 5-23 PUT /ISAPI/AccessControl/CardOperations/dataBlock/control?format=json
Method PUT
Description Do operations (i.e., plus, minus, copy, and paste) on the data block.
Query format: determine the format of request or response message.

218
Device Network SDK (Access Control on Card) Developer Guide

Request JSON_DataBlockCtrl
Response JSON_ResponseStatus

5.20 /ISAPI/AccessControl/CardOperations/dataBlock/<address>?
format=json
Read or write data block (only available for M1 card).

Request URI Definition


Table 5-24 GET /ISAPI/AccessControl/CardOperations/dataBlock/<address>?format=json
Method GET
Description Read data block (only available for M1 card).
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_DataBlock
Failed: JSON_ResponseStatus
Table 5-25 PUT /ISAPI/AccessControl/CardOperations/dataBlock/<address>?format=json
Method PUT
Description Write data block (only available for M1 card).
Query format: determine the format of request or response message.
Request JSON_DataBlock
Response JSON_ResponseStatus

Remarks
The <address> in the request URI refers to the block address, which is same as that in
JSON_DataBlock .

5.21 /ISAPI/AccessControl/CardOperations/dataTrans?format=json
Pass through the data package (only available for CPU card).

219
Device Network SDK (Access Control on Card) Developer Guide

Request URI Definition


Table 5-26 PUT /ISAPI/AccessControl/CardOperations/dataTrans?format=json
Method PUT
Description Pass through the data package (only available for CPU card).
Query format: determine the format of request or response message.
Request JSON_DataTrans
Response JSON_ResponseStatus

5.22 /ISAPI/AccessControl/CardOperations/encryption?format=json
Set card encryption parameters (only available for CPU card).

Request URI Definition


Table 5-27 PUT /ISAPI/AccessControl/CardOperations/encryption?format=json
Method PUT
Description Set card encryption parameters (only available for CPU card).
Query format: determine the format of request or response message.
Request JSON_CardEncryption
Response JSON_ResponseStatus and tryTimes field (card encryption attampts)

5.23 /ISAPI/AccessControl/CardOperations/protocol?format=json
Set operation protocol type for the card (only available when applying card).

Request URI Definition


Table 5-28 PUT /ISAPI/AccessControl/CardOperations/protocol?format=json
Method PUT
Description Set operation protocol type for the card (only available when
applying card).
Query format: determine the format of request or response message.
Request JSON_CardProto
Response JSON_ResponseStatus

220
Device Network SDK (Access Control on Card) Developer Guide

5.24 /ISAPI/AccessControl/CardOperations/reset?format=json
Reset card parameters (only available for CPU card).

Request URI Definition


Table 5-29 GET /ISAPI/AccessControl/CardOperations/reset?format=json
Method GET
Description Reset card parameters (only available for CPU card).
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_CardResetResponse
Failed: JSON_ResponseStatus

5.25 /ISAPI/AccessControl/CardOperations/sectionEncryption?
format=json
Set the encryption parameters of a specific section (only available for M1 card).

Request URI Definition


Table 5-30 PUT /ISAPI/AccessControl/CardOperations/sectionEncryption?format=json
Method PUT
Description Set the encryption parameters of a specific section (only available for
M1 card).
Query format: determine the format of request or response message.
Request JSON_SectionEncryption
Response JSON_ResponseStatus

5.26 /ISAPI/AccessControl/CardOperations/verification?format=json
Verify the password of the encrypted section (only available for M1 card).

221
Device Network SDK (Access Control on Card) Developer Guide

Request URI Definition


Table 5-31 PUT /ISAPI/AccessControl/CardOperations/verification?format=json
Method PUT
Description Verify the password of the encrypted section (only available for M1
card).
Query format: determine the format of request or response message.
Request JSON_Verification
Response JSON_ResponseStatus

5.27 /ISAPI/AccessControl/ChannelControllerAlarmLinkage
Get or set the alarm linkage parameters of the lane controller.

Request URI Definition


Table 5-32 GET /ISAPI/AccessControl/ChannelControllerAlarmLinkage
Method GET
Description Get the alarm linkage parameters of the lane controller.
Query None.
Request None.
Response Succeeded: XML_ChannelControllerAlarmLinkage
Failed: XML_ResponseStatus
Table 5-33 PUT /ISAPI/AccessControl/ChannelControllerAlarmLinkage
Method PUT
Description Set the alarm linkage parameters of the lane controller.
Query None.
Request XML_ChannelControllerAlarmLinkage
Response XML_ResponseStatus

5.28 /ISAPI/AccessControl/ChannelControllerAlarmLinkage/capabilities
Get the configuration capability of the alarm linkage of the lane controller.

222
Device Network SDK (Access Control on Card) Developer Guide

Request URI Definition


Table 5-34 GET /ISAPI/AccessControl/ChannelControllerAlarmLinkage/capabilities
Method GET
Description Get the configuration capability of the alarm linkage of the lane
controller.
Query None.
Request None.
Response Succeeded: XML_Cap_ChannelControllerAlarmLinkage
Failed: XML_ResponseStatus

5.29 /ISAPI/AccessControl/ChannelControllerAlarmOut/capabilities
Get the configuration capability of the alarm output of the lane controller.

Request URI Definition


Table 5-35 GET /ISAPI/AccessControl/ChannelControllerAlarmOut/capabilities
Method GET
Description Get the configuration capability of the alarm output of the lane
controller.
Query None.
Request None.
Response Succeeded: XML_Cap_ChannelControllerAlarmOut
Failed: XML_ResponseStatus

5.30 /ISAPI/AccessControl/ChannelControllerAlarmOut?
controllerType=&alarmOutNo=
Get or set the alarm output parameters of the lane controller.

223
Device Network SDK (Access Control on Card) Developer Guide

Request URI Definition


Table 5-36 GET /ISAPI/AccessControl/ChannelControllerAlarmOut?
controllerType=&alarmOutNo=
Method GET
Description Get the alarm output parameters of the lane controller.
Query controllerType: lane controller type, string, it can be set to "Master"
(master lane controller) or "Slave" (slave lane controller).
alarmOutNo: alarm output No., integer, it is between 1 and 4.
Request None.
Response Succeeded: XML_ChannelControllerAlarmOut
Failed: XML_ResponseStatus
Table 5-37 PUT /ISAPI/AccessControl/ChannelControllerAlarmOut?
controllerType=&alarmOutNo=
Method PUT
Description Set the alarm output parameters of the lane controller.
Query controllerType: lane controller type, string, it can be set to "Master"
(master lane controller) or "Slave" (slave lane controller).
alarmOutNo: alarm output No., integer, it is between 1 and 4.
Request XML_ChannelControllerAlarmOut
Response XML_ResponseStatus

5.31 /ISAPI/AccessControl/ChannelControllerAlarmOutControl
Control the alarm output of the lane controller.

Request URI Definition


Table 5-38 PUT /ISAPI/AccessControl/ChannelControllerAlarmOutControl
Method PUT
Description Control the alarm output of the lane controller.
Query None.
Request XML_ChannelControllerAlarmOutControl
Response XML_ResponseStatus

224
Device Network SDK (Access Control on Card) Developer Guide

5.32 /ISAPI/AccessControl/ChannelControllerAlarmOutControl/
capabilities
Get the capability of controlling the alarm output of the lane controller.

Request URI Definition


Table 5-39 GET /ISAPI/AccessControl/ChannelControllerAlarmOutControl/capabilities
Method GET
Description Get the capability of controlling the alarm output of the lane
controller.
Query None.
Request None.
Response Succeeded: XML_Cap_ChannelControllerAlarmOutControl
Failed: XML_ResponseStatus

5.33 /ISAPI/AccessControl/ChannelControllerCfg
Get or set the lane controller parameters.

Request URI Definition


Table 5-40 GET /ISAPI/AccessControl/ChannelControllerCfg
Method GET
Description Get the lane controller parameters.
Query None.
Request None.
Response Succeeded: XML_ChannelControllerCfg
Failed: XML_ResponseStatus
Table 5-41 PUT /ISAPI/AccessControl/ChannelControllerCfg
Method PUT
Description Set the lane controller parameters.
Query None.

225
Device Network SDK (Access Control on Card) Developer Guide

Request XML_ChannelControllerCfg
Response XML_ResponseStatus

5.34 /ISAPI/AccessControl/ChannelControllerCfg/capabilities
Get the lane controller configuration capability.

Request URI Definition


Table 5-42 GET /ISAPI/AccessControl/ChannelControllerCfg/capabilities
Method GET
Description Get the lane controller configuration capability.
Query None.
Request None.
Response Succeeded: XML_Cap_ChannelControllerCfg
Failed: XML_ResponseStatus

5.35 /ISAPI/AccessControl/channelControllerTypeCfg/capabilities?
format=json
Get the configuration capability of the lane controller's device type.

Request URI Definition


Table 5-43 GET /ISAPI/AccessControl/channelControllerTypeCfg/capabilities?format=json
Method GET
Description Get the configuration capability of the lane controller's device type.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_ChannelControllerTypeCfgCap
Failed: JSON_ResponseStatus

5.36 /ISAPI/AccessControl/channelControllerTypeCfg?format=json
Get or set the device type parameters of the lane controller.

226
Device Network SDK (Access Control on Card) Developer Guide

Request URI Definition


Table 5-44 GET /ISAPI/AccessControl/channelControllerTypeCfg?format=json
Method GET
Description Get the device type parameters of the lane controller.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_ChannelControllerTypeCfg
Failed: JSON_ResponseStatus
Table 5-45 PUT /ISAPI/AccessControl/channelControllerTypeCfg?format=json
Method PUT
Description Set the device type parameters of the lane controller.
Query format: determine the format of request or response message.
Request JSON_ChannelControllerTypeCfg
Response JSON_ResponseStatus

5.37 /ISAPI/AccessControl/Configuration/IRCfg/capabilities?format=json
Get active infrared intrusion capability.

Request URI Definition


Table 5-46 GET /ISAPI/AccessControl/Configuration/IRCfg/capabilities?format=json
Method GET
Description Get active infrared intrusion capability.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_IRCfgCap
Failed: JSON_ResponseStatus

5.38 /ISAPI/AccessControl/Configuration/IRCfg?format=json
Get or set active infrared intrusion parameters.

227
Device Network SDK (Access Control on Card) Developer Guide

Request URI Definition


Table 5-47 GET /ISAPI/AccessControl/Configuration/IRCfg?format=json
Method GET
Description Get active infrared intrusion parameters.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_IRCfg
Failed: JSON_ResponseStatus
Table 5-48 PUT /ISAPI/AccessControl/Configuration/IRCfg?format=json
Method PUT
Description Set active infrared intrusion parameters.
Query format: determine the format of request or response message.
Request JSON_IRCfg
Response JSON_ResponseStatus

5.39 /ISAPI/AccessControl/Configuration/NFCCfg/capabilities?
format=json
Get the configuration capability of enabling NFC (Near-Field Communication) function.

Request URI Definition


Table 5-49 GET /ISAPI/AccessControl/Configuration/NFCCfg/capabilities?format=json
Method GET
Description Get the configuration capability of enabling NFC (Near-Field
Communication) function.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_NFCCfgCap
Failed: JSON_ResponseStatus

228
Device Network SDK (Access Control on Card) Developer Guide

5.40 /ISAPI/AccessControl/Configuration/NFCCfg?format=json
Operations about the configuration of enabling NFC (Near-Field Communication) function.

Request URI Definition


Table 5-50 GET /ISAPI/AccessControl/Configuration/NFCCfg?format=json
Method GET
Description Get the parameters of enabling NFC (Near-Field Communication)
function.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_NFCCfg
Failed: JSON_ResponseStatus
Table 5-51 PUT /ISAPI/AccessControl/Configuration/NFCCfg?format=json
Method PUT
Description Set the parameters of enabling NFC (Near-Field Communication)
function.
Query format: determine the format of request or response message.
Request JSON_NFCCfg
Response JSON_ResponseStatus

5.41 /ISAPI/AccessControl/Configuration/RFCardCfg/capabilities?
format=json
Get the configuration capability of enabling RF (Radio Frequency) card recognition.

Request URI Definition


Table 5-52 GET /ISAPI/AccessControl/Configuration/RFCardCfg/capabilities?format=json
Method GET
Description Get the configuration capability of enabling RF (Radio Frequency)
card recognition.
Query format: determine the format of request or response message.

229
Device Network SDK (Access Control on Card) Developer Guide

Request None.
Response Succeeded: JSON_RFCardCfgCap
Failed: JSON_ResponseStatus

5.42 /ISAPI/AccessControl/Configuration/RFCardCfg?format=json
Operations about the configuration of enabling RF (Radio Frequency) card recognition.

Request URI Definition


Table 5-53 GET /ISAPI/AccessControl/Configuration/RFCardCfg?format=json
Method GET
Description Get the parameters of enabling RF (Radio Frequency) card
recognition.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_RFCardCfg
Failed: JSON_ResponseStatus
Table 5-54 PUT /ISAPI/AccessControl/Configuration/RFCardCfg?format=json
Method PUT
Description Set the parameters of enabling RF (Radio Frequency) card
recognition.
Query format: determine the format of request or response message.
Request JSON_RFCardCfg
Response JSON_ResponseStatus

5.43 /ISAPI/AccessControl/FaceCompareCond
Get or set the condition parameters of face picture comparison.

Request URI Definition


Table 5-55 GET /ISAPI/AccessControl/FaceCompareCond
Method GET
Description Get the condition parameters of face picture comparison.

230
Device Network SDK (Access Control on Card) Developer Guide

Query None.
Request None.
Response Succeeded: XML_FaceCompareCond
Failed: XML_ResponseStatus
Table 5-56 PUT /ISAPI/AccessControl/FaceCompareCond
Method PUT
Description Set the condition parameters of face picture comparison.
Query None.
Request XML_FaceCompareCond
Response XML_ResponseStatus

5.44 /ISAPI/AccessControl/FaceCompareCond/capabilities
Get condition configuration capability of face picture comparison.

Request URI Definition


Table 5-57 GET /ISAPI/AccessControl/FaceCompareCond/capabilities
Method GET
Description Get condition configuration capability of face picture comparison.
Query None.
Request None.
Response Succeeded: XML_Cap_FaceCompareCond
Failed: XML_ResponseStatus

5.45 /ISAPI/AccessControl/GateDialAndInfo
Get the local DIP (Dual In-line Package) and information of the turnstile.

Request URI Definition


Table 5-58 GET /ISAPI/AccessControl/GateDialAndInfo
Method GET
Description Get the local DIP (Dual In-line Package) and information of the
turnstile.

231
Device Network SDK (Access Control on Card) Developer Guide

Query None.
Request None.
Response Succeeded: XML_GateDialAndInfo
Failed: XML_ResponseStatus

5.46 /ISAPI/AccessControl/GateDialAndInfo/capabilities
Get the capability of getting the local DIP (Dual In-line Package) and information of the turnstile.

Request URI Definition


Table 5-59 GET /ISAPI/AccessControl/GateDialAndInfo/capabilities
Method GET
Description Get the capability of getting the local DIP (Dual In-line Package) and
information of the turnstile.
Query None.
Request None.
Response Succeeded: XML_Cap_GateDialAndInfo
Failed: XML_ResponseStatus

5.47 /ISAPI/AccessControl/GateIRStatus
Get the status of the active infrared intrusion detector of the turnstile.

Request URI Definition


Table 5-60 GET /ISAPI/AccessControl/GateIRStatus
Method GET
Description Get the status of the active infrared intrusion detector of the
turnstile.
Query None.
Request None.
Response Succeeded: XML_GateIRStatus
Failed: XML_ResponseStatus

232
Device Network SDK (Access Control on Card) Developer Guide

5.48 /ISAPI/AccessControl/GateIRStatus/capabilities
Get the capability of getting the status of the active infrared intrusion detector of the turnstile.

Request URI Definition


Table 5-61 GET /ISAPI/AccessControl/GateIRStatus/capabilities
Method GET
Description Get the capability of getting the status of the active infrared intrusion
detector of the turnstile.
Query None.
Request None.
Response Succeeded: XML_Cap_GateIRStatus
Failed: XML_ResponseStatus

5.49 /ISAPI/AccessControl/GateRelatedPartsStatus
Get the related components' status of the turnstile.

Request URI Definition


Table 5-62 GET /ISAPI/AccessControl/GateRelatedPartsStatus
Method GET
Description Get the related components' status of the turnstile.
Query None.
Request None.
Response Succeeded: XML_GateRelatedPartsStatus
Failed: XML_ResponseStatus

5.50 /ISAPI/AccessControl/GateRelatedPartsStatus/capabilities
Get the capability of getting the related components' status of the turnstile.

233
Device Network SDK (Access Control on Card) Developer Guide

Request URI Definition


Table 5-63 GET /ISAPI/AccessControl/GateRelatedPartsStatus/capabilities
Method GET
Description Get the capability of getting the related components' status of the
turnstile.
Query None.
Request None.
Response Succeeded: XML_Cap_GateRelatedPartsStatus
Failed: XML_ResponseStatus

5.51 /ISAPI/AccessControl/GateStatus
Get the general turnstile status.

Request URI Definition


Table 5-64 GET /ISAPI/AccessControl/GateStatus
Method GET
Description Get the general turnstile status.
Query None.
Request None.
Response Succeeded: XML_GateStatus
Failed: XML_ResponseStatus

5.52 /ISAPI/AccessControl/GateStatus/capabilities
Get the capability of getting the general turnstile status.

Request URI Definition


Table 5-65 GET /ISAPI/AccessControl/GateStatus/capabilities
Method GET
Description Get the capability of getting the general turnstile status.
Query None.

234
Device Network SDK (Access Control on Card) Developer Guide

Request None.
Response Succeeded: XML_Cap_GateStatus
Failed: XML_ResponseStatus

5.53 /ISAPI/AccessControl/GetAcsEvent/capabilities
Get capability of getting access control event.

Request URI Definition


Table 5-66 GET /ISAPI/AccessControl/GetAcsEvent/capabilities
Method GET
Description Get capability of getting access control event.
Query None.
Request None.
Response XML_Cap_GetAcsEvent

5.54 /ISAPI/AccessControl/IdentityTerminal/capabilities
Get configuration capability of intelligent identity recognition terminal.

Request URI Definition


Table 5-67 GET /ISAPI/AccessControl/IdentityTerminal/capabilities
Method GET
Description Get configuration capability of intelligent identity recognition
terminal.
Query None.
Request None.
Response Succeeded: XML_Cap_IdentityTerminal
Failed: XML_ResponseStatus

5.55 /ISAPI/AccessControl/IdentityTerminal
Operations about configuration of intelligent identity recognition terminal.

235
Device Network SDK (Access Control on Card) Developer Guide

Request URI Definition


Table 5-68 GET /ISAPI/AccessControl/IdentityTerminal
Method GET
Description Get the configuration parameters of intelligent identity recognition
terminal.
Query None.
Request None.
Response Succeeded: XML_IdentityTerminal
Failed: XML_ResponseStatus
Table 5-69 PUT /ISAPI/AccessControl/IdentityTerminal
Method PUT
Description Set the parameters of intelligent identity recognition terminal.
Query None.
Request XML_IdentityTerminal
Response XML_ResponseStatus

5.56 /ISAPI/AccessControl/OfflineCapture/capabilities?format=json
Get the online collection capability.

Request URI Definition


Table 5-70 GET /ISAPI/AccessControl/OfflineCapture/capabilities?format=json
Method GET
Description Get the online collection capability.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_OfflineCaptureCap
Failed: JSON_ResponseStatus

236
Device Network SDK (Access Control on Card) Developer Guide

5.57 /ISAPI/AccessControl/OfflineCapture/DataCollections/
<captureNo>?format=json
Deleted a specific piece of offline collected data.

Request URI Definition


Table 5-71 DELETE /ISAPI/AccessControl/OfflineCapture/DataCollections/<captureNo>?
format=json
Method DELETE
Description Deleted a specific piece of offline collected data.
Query format: determine the format of request or response message.
Request None.
Response JSON_ResponseStatus

Remarks
The <captureNo> in the request URI refers to the collection No.

5.58 /ISAPI/AccessControl/OfflineCapture/DataCollections/searchTask?
format=json
Search for the collection data.

Request URI Definition


Table 5-72 POST /ISAPI/AccessControl/OfflineCapture/DataCollections/searchTask?format=json
Method POST
Description Search for the collection data.
Query format: determine the format of request or response message.
Request JSON_SearchTaskCond
Response Succeeded: JSON_SearchTaskResponse
Failed: JSON_ResponseStatus

5.59 /ISAPI/AccessControl/OfflineCapture/DataCollections?format=json
Delete all offline collected data.

237
Device Network SDK (Access Control on Card) Developer Guide

Request URI Definition


Table 5-73 DELETE /ISAPI/AccessControl/OfflineCapture/DataCollections?format=json
Method DELETE
Description Delete all offline collected data.
Query format: determine the format of request or response message.
Request None.
Response JSON_ResponseStatus

5.60 /ISAPI/AccessControl/OfflineCapture/dataOutput/progress?
format=json
Get the progress of exporting the offline collected data.

Request URI Definition


Table 5-74 GET /ISAPI/AccessControl/OfflineCapture/dataOutput/progress?format=json
Method GET
Description Get the progress of exporting the offline collected data.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_DataOutputProgress
Failed: JSON_ResponseStatus

5.61 /ISAPI/AccessControl/OfflineCapture/dataOutput?format=json
Export the offline collected data.

Request URI Definition


Table 5-75 PUT /ISAPI/AccessControl/OfflineCapture/dataOutput?format=json
Method PUT
Description Export the offline collected data.
Query format: determine the format of request or response message.

238
Device Network SDK (Access Control on Card) Developer Guide

Request JSON_DataOutputCfg
Response JSON_ResponseStatus

5.62 /ISAPI/AccessControl/OfflineCapture/progress?format=json
Get the offline collection progress.

Request URI Definition


Table 5-76 GET /ISAPI/AccessControl/OfflineCapture/progress?format=json
Method GET
Description Get the offline collection progress.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_CaptureProgress
Failed: JSON_ResponseStatus

5.63 /ISAPI/AccessControl/OfflineCapture/ruleInfo?format=json
Get or set the parameters of offline collection rules.

Request URI Definition


Table 5-77 GET /ISAPI/AccessControl/OfflineCapture/ruleInfo?format=json
Method GET
Description Get the parameters of offline collection rules.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_RuleInfo
Failed: JSON_ResponseStatus
Table 5-78 PUT /ISAPI/AccessControl/OfflineCapture/ruleInfo?format=json
Method PUT
Description Set the parameters of offline collection rules.
Query format: determine the format of request or response message.

239
Device Network SDK (Access Control on Card) Developer Guide

Request JSON_RuleInfo
Response JSON_ResponseStatus

5.64 /ISAPI/AccessControl/RightControllerAudio/capabilities
Get the configuration capability of the audio file of the main controller.

Request URI Definition


Table 5-79 GET /ISAPI/AccessControl/RightControllerAudio/capabilities
Method GET
Description Get the configuration capability of the audio file of the main
controller.
Query None.
Request None.
Response Succeeded: XML_Cap_RightControllerAudio
Failed: XML_ResponseStatus

5.65 /ISAPI/AccessControl/RightControllerAudio/<ID>
Get or set the audio file parameters of the main controller, or delete the audio file of the main
controller.

Request URI Definition


Table 5-80 GET /ISAPI/AccessControl/RightControllerAudio/<ID>
Method GET
Description Get the audio file parameters of the main controller.
Query None.
Request None.
Response Succeeded: XML_RightControllerAudio
Failed: XML_ResponseStatus
Table 5-81 PUT /ISAPI/AccessControl/RightControllerAudio/<ID>
Method PUT
Description Set the audio file parameters of the main controller.

240
Device Network SDK (Access Control on Card) Developer Guide

Query None.
Request XML_RightControllerAudio
Response XML_ResponseStatus
Table 5-82 DELETE /ISAPI/AccessControl/RightControllerAudio/<ID>
Method DELETE
Description Delete the audio file of the main controller.
Query None.
Request None.
Response XML_ResponseStatus

Remarks
• The <ID> in the request URI refers to the audio ID, and its range depends on the device
capability.
• The timeout of deleting the audio file should be set to 20s.

241
Device Network SDK (Access Control on Card) Developer Guide

Chapter 6 Request and Response Messages

6.1 JSON_AcsEventTotalNum
AcsEventTotalNum message in JSON format
{
"AcsEventTotalNum":{
"totalNum":
/*required, integer, total number of events that match the search conditions*/
}
}

6.2 JSON_AcsEventTotalNumCond
AcsEventTotalNumCond message in JSON format
{
"AcsEventTotalNumCond":{
"major": ,
/*required, integer, major type (the type value should be transformed to the decimal number), refer to Access Control
Event Types for details*/
"minor": ,
/*required, integer, minor type (the type value should be transformed to the decimal number), refer to Access Control
Event Types for details*/
"startTime":"",
/*optional, string, start time (UTC time), e.g., "2016-12-12T17:30:08+08:00"*/
"endTime":"",
/*optional, string, end time (UTC time), e.g., "2017-12-12T17:30:08+08:00"*/
"cardNo":"",
/*optional, string, card No.*/
"name":"",
/*optional, string, cardholder name*/
"picEnable": ,
/*optional, boolean, whether to contain pictures: "true"-yes, "false"-no*/
"beginSerialNo": ,
/*optional, integer, start serial No.*/
"endSerialNo": ,
/*optional, integer, end serial No.*/
"employeeNoString":"",
/*optional, string, employee No. (person ID)*/
"eventAttribute":""
/*optional, string, event attribute: "attendance"-valid authentication, "other"*/
}
}

242
Device Network SDK (Access Control on Card) Developer Guide

See Also
Access Control Event Types

6.3 JSON_AttendanceStatusModeCfg
AttendanceStatusModeCfg message in JSON format
{
"AttendanceStatusModeCfg":{
"mode":"",
/*optional, string type, attendance mode: "disable", "manual", "auto"-automatic, "manualAndAuto"-manual and
automatic*/
"manualStatusTime": ,
/*optional, integer type, duration of manual attendance status, unit: second. This node is valid when mode is
"manual" or "manualAndAuto"*/
"attendanceStatusEnable":
/*optional, boolean type, whether to enable attendance status: "true"-yes (if the device has not been configured with
start time and end time of the automatic attendance mode, the user will be prompted to select the attendance
status), "false"-no (if the device has not been configured with start time and end time of the automatic attendance
mode, there will be no prompt)*/
}
}

6.4 JSON_AttendanceStatusRuleCfg
AttendanceStatusRuleCfg message in JSON format
{
"AttendanceStatusRuleCfg":{
"statusKey":"",
/*optional, string type, status shortcut key: "Up", "Down", "Left", "Right", "ESC", "OK", "notConfig". If this node is not
configured, this node will be set to "notConfig" by default*/
"statusValue": ,
/*optional, integer type, status value*/
"WeekPlanCfg":[{
/*optional, schedule*/
"week":"",
/*optional, string type, day of the week: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday",
"Sunday"*/
"enable": ,
/*optional, boolean type, whether to enable: "true"-yes, "false"-no*/
"beginTime":""
/*optional, start time*/
}]
}
}

243
Device Network SDK (Access Control on Card) Developer Guide

6.5 JSON_Cap_AcsEventTotalNum
AcsEventTotalNum capability message in JSON format
{
"AcsEvent":{
"AcsEventTotalNumCond":{
/*optional, search conditions*/
"major":{
/*required, integer type, major type (the type value should be transformed to the decimal number): 0-all, 1-major
alarm type, 2-major exception type, 3-major operation type, 5-major event type, refer to
Access Control Event Types
for details*/
"@opt":"0,1,2,3,5"
},
"minorAlarm":{
/*required, integer, minor alarm type (the type value should be transformed to the decimal number), refer to Access
Control Event Types for details*/
"@opt":"1024,1025,1026,1027…"
},
"minorException":{
/*required, integer, minor exception type (the type value should be transformed to the decimal number), refer to
Access Control Event Types for details*/
"@opt":"39,58,59,1024…"
},
"minorOperation":{
/*required, integer, minor operation type (the type value should be transformed to the decimal number), refer to
Access Control Event Types for details*/
"@opt":"80,90,112,113…"
},
"minorEvent":{
/*required, integer, minor event type (the type value should be transformed to the decimal number), refer to Access
Control Event Types for details*/
"@opt":"1,2,3,4…"
},
"startTime":{
/*optional, string, start time (UTC time)*/
"@min": ,
"@max":
},
"endTime":{
/*optional, string, end time (UTC time)*/
"@min": ,
"@max":
},
"cardNo":{
/*optional, string, card No.*/
"@min": ,
"@max":
},
"name":{

244
Device Network SDK (Access Control on Card) Developer Guide

/*optional, string, cardholder name*/


"@min": ,
"@max":
},
"picEnable":"true,false",
/*optional, boolean, whether to contain pictures: "false"-no, "true"-yes*/
"beginSerialNo":{
/*optional, integer, start serial No.*/
"@min": ,
"@max":
},
"endSerialNo":{
/*optional, integer, end serial No.*/
"@min": ,
"@max":
},
"employeeNoString":{
/*optional, string, employee No. (person ID)*/
"@min": ,
"@max":
},
"eventAttribute":{
/*optional, string, event attribute: "attendance"-valid authentication, "other"*/
"@opt":"attendance,other"
}
},
"totalNum":{
/*required, integer, total number of events that match the search conditions*/
"@min": ,
"@max":
}
}
}

See Also
Access Control Event Types

6.6 JSON_Cap_AttendanceStatusModeCfg
AttendanceStatusModeCfg capability message in JSON format
{
"AttendanceStatusModeCfg":{
"mode":{
/*optional, string type, attendance mode: "disable", "manual", "auto"-automatic, "manualAndAuto"-manual and
automatic*/
"@opt":"disable,manual,auto,manualAndAuto"
},
"manualStatusTime":{
/*optional, integer type, duration of manual attendance status, unit: second. This node is valid when mode is

245
Device Network SDK (Access Control on Card) Developer Guide

"manual" or "manualAndAuto"*/
"@min":5,
"@max":999
},
"attendanceStatusEnable":"true,false"
/*optional, boolean type, whether to enable attendance status: "true"-yes (if the device has not been configured with
start time and end time of the automatic attendance mode, the user will be prompted to select the attendance
status), "false"-no (if the device has not been configured with start time and end time of the automatic attendance
mode, there will be no prompt)*/
}
}

6.7 JSON_Cap_AttendanceStatusRuleCfg
AttendanceStatusRuleCfg capability message in JSON format
{
"AttendanceStatusRuleCfg":{
"statusKey":{
/*optional, string type, status shortcut key: "Up", "Down", "Left", "Right", "ESC", "OK", "notConfig". If this node is not
configured, this node will be set to "notConfig" by default*/
"@opt":"Up,Down,Left,Right,ESC,OK"
},
"attendanceStatus":{
/*optional, string type, attendance status: "undefined", "checkIn"-check in, "checkOut"-check out, "breakOut"-break
out, "breakIn"-break in, "overtimeIn"-overtime in, "overTimeOut"-overtime out*/
"@opt":"undefined,checkIn,checkOut,breakOut,breakIn,overtimeIn,overtimeOut"
},
"statusValue":{
/*optional, integer type, status value*/
"@min":0,
"@max":255
},
"WeekPlanCfg":{
/*schedule*/
"maxSize":7,
"week":{
"@opt":"Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday"
},
"beginTime":"",
/*start time*/
"timeValid":"minute"
/*time accuracy: "day", "hour", "minute", "second"*/
}
}
}

246
Device Network SDK (Access Control on Card) Developer Guide

6.8 JSON_CapturePreset
CapturePreset message in JSON format
{
"CapturePreset":{
"name":""
/*optional, string, name, the maximum size is 128 bytes by default. This field is NULL by default*/
}
}

6.9 JSON_CapturePresetCap
CapturePresetCap capability message in JSON format
{
"CapturePresetCap":{
"name":{
/*optional, string, name*/
"@min":0,
"@max":0
}
}
}

6.10 JSON_CaptureProgress
CaptureProgress message in JSON format
{
"CaptureProgress":{
"reqCaptureNum": ,
/*optional, integer, total number of person to be collected*/
"completelyCaptureNum": ,
/*optional, integer, number of completely collected persons*/
"partiallyCaptureNum": ,
/*optional, integer, number of partially collected persons*/
"reqFaceNum": ,
/*optional, integer, number of faces to be collected*/
"faceNum": ,
/*optional, integer, number of collected faces*/
"reqFingerprintNum": ,
/*optional, integer, number of fingerprints to be collected*/
"fingerprintNum": ,
/*optional, integer, number of collected fingerprints*/
"reqCardNum": ,
/*optional, integer, number of cards to be collected*/

247
Device Network SDK (Access Control on Card) Developer Guide

"cardNum": ,
/*optional, integer, number of collected cards*/
"reqIDCardNum": ,
/*optional, integer, number of ID cards to be collected*/
"IDCardNum":
/*optional, integer, number of collected ID cards*/
}
}

6.11 JSON_CaptureRule
CaptureRule message in JSON format
{
"CaptureRule":{
"enableCardNoLenAuto": ,
/*optional, boolean, whether to enable length self-adaption of the card serial No.*/
"cardNoLen": ,
/*dependency, integer, length of the card serial No.: 3, 4, 7, 10, unit: byte. This field is valid when
enableCardNoLenAuto is "false". If this field is set to 3, it refers to Wiegand 26*/
"cardTimeout":
/*optional, integer, card collection timeout, unit: ms*/
}
}

6.12 JSON_CaptureRuleCap
CaptureRuleCap capability message in JSON format
{
"CaptureRuleCap":{
"enableCardNoLenAuto":[true,flase],
/*optional, boolean, whether to enable length self-adaption of the card serial No.*/
"cardNoLen":{
/*dependency, integer, length of the card serial No.: 3, 4, 7, 10*/
"@opt":[3,4,7,10]
},
"cardTimeout":{
/*optional, integer, card collection timeout, unit: ms*/
"@min":0,
"@max":0
}
}
}

248
Device Network SDK (Access Control on Card) Developer Guide

6.13 JSON_CardEncryption
JSON message about card encryption parameters
{
"CardEncryption": {
"cardType": "",
/*required, string type, card types: "blank"-blank card, "private"-private CPU card, encrypted-other encrypted cards*/
"keyLen":,
/*depend, integer, size of key for external authentication, this field is valid only when cardType is set to "encrypted"*/
"key": ""
/*required, hexadecimal string, a 16-byte key content for external authentication*/
}
}

6.14 JSON_CardInfo_Collection
CardInfo message in JSON format
{
"CardInfo":{
"cardNo":"",
/*required, string, card No.*/
"cardType":""
/*optional, string, card type: "TypeA_M1", "TypeA_CPU", "TypeB", "ID_125K"*/
}
}

6.15 JSON_CardInfoCap
CardInfoCap capability message in JSON format
{
"CardInfoCap":{
"cardNo":{
/*required, string, card No.*/
"@min":1,
"@max":32
},
"cardType": ["TypeA_M1","TypeA_CPU","TypeB","ID_125K"]
/*optional, string, card type: "TypeA_M1", "TypeA_CPU", "TypeB", "ID_125K"*/
}
}

249
Device Network SDK (Access Control on Card) Developer Guide

6.16 JSON_CardOperationsCap
JSON message about card operation capability
{
"CardOperationsCap":{
"SectionEncryption":{
"supportFunction":{
/*required, string, supported methods*/
"@opt": ["put", "get", "delete", "post"]
},
"sectionNo":{
/*required, integer, section No.*/
"@min": 0,
"@max": 0
},
"keyType":{
/*required, string, verification key types: "private"-private key, "normal"-other valid keys*/
"@opt": ["private", "normal"]
},
"password":{
/*optional, string, a hexadecimal verification key, this field is valid only when keyType is set to "nomal"*/
"@min": 0,
"@max": 0
},
"newKeyType":{
/*required, string, new key types: "private"-private key, "normal"-other valid keys*/
"@opt": ["private", "normal"]
},
"KeyA":{
/*optional, string, a hexadecimal key A password*/
"@min": 0,
"@max": 0
},
"KeyB":{
/*optional, string, a hexadecimal key B password*/
"@min": 0,
"@max": 0
},
"controlBits":{
/*optional, string, a hexadecimal control bit*/
"@min": 0,
"@max": 0
}
},
"Verification":{
"supportFunction":{
/*required, string, supported methods*/
"@opt": ["put", "get", "delete", "post"]
},
"sectionNo":{

250
Device Network SDK (Access Control on Card) Developer Guide

/*required, integer, section No.*/


"@min": 0,
"@max": 0
},
"passwordType":{
/*optional, password types: "KeyA" (default), "KeyB"*/
"@opt": ["KeyA", "KeyB"]
},
"password":{
/*optional, string, a hexadecimal password*/
"@min": 0,
"@max": 0
}
},
"DataBlock":{
"supportFunction":{
/*required, string, supported methods*/
"@opt":["put", "get", "delete", "post"]
},
"addressOfBlock":{
/*optional, integer, block address*/
"@min": 0,
"@max": 0
},
"data":{
/*required, a hexBinary string, e.g., "f2345678abf2345678abf2345678abf2"*/
"@min": 0,
"@max": 0
},
},
"DataBlockCtrl":{
"supportFunction":{
/*required, string, supported methods*/
"@opt":["put", "get", "delete", "post"]
},
"addressOfBlock":{
/*required, integer, block address*/
"@min": 0,
"@max": 0
},
"command":{
/*required, string, control commands*/
"@opt": ["add", "minus", "copy", "paste"]
},
"value":{
/*depend, integer, relative value to be changed, this field is valid only when the command is set to "add" or "minus"*/
"@min": 0,
"@max": 0
},
},
"ControlBlock":{
"supportFunction":{

251
Device Network SDK (Access Control on Card) Developer Guide

/*required, string, supported methods*/


"@opt": ["put", "get", "delete", "post"]
},
"sectionNo":{
/*required, integer, section No.*/
"@min": 0,
"@max": 0
},
"KeyA":{
/*optional, string, a hexadecimal key A*/
"@min": 0,
"@max": 0
},
"KeyB":{
/*optional, string, a hexadecimal key B*/
"@min": 0,
"@max": 0
},
"controlBits":{
/*optional, string, a hexadecimal control bit*/
"@min": 0,
"@max": 0
}
},
"CardProto":{
"supportFunction":{
/*required, string, supported methods*/
"@opt":["put", "get", "delete", "post"]
},
"protocol":{
/*required, string, operation protocol types*/
"@opt": ["TypeA", "TypeB", "TypeAB", "125K", "all"]
}
},
"CardEncryption":{
"supportFunction":{
/*required, string, supported methods*/
"@opt": ["put", "get", "delete", "post"]
},
"cardType":{
/*required, string, card types: "blank"-blank card, "private"-private CPU card, "encrypted"-other encrypted card*/
"@opt":[ "blank","private","encrypted"]
}
"keyLen":{
/*depend, integer, size of key for external authentication, this field is valid only when cardType is set to "encrypted"*/
"@min": 0,
"@max": 0
},
"key": {
/*required, hexadecimal string, a 16-byte key content for external authentication*/
"@min": 0,
"@max": 0

252
Device Network SDK (Access Control on Card) Developer Guide

}
},
"CardParam":{
"supportFunction":{
/*required, string, supported methods*/
"@opt": ["put", "get", "delete", "post"]
},
"type":{
/*required, string, card types*/
"@opt": ["CPU1356", "PSAM1", "PSAM2","PSAM3","PSAM4"]
},
"protocol":{
/*required, string, card protocol types*/
"@opt": ["T0", "T1"]
}
},
"CardResetResponse":{
"supportFunction":{
/*required, string, supported methods*/
"@opt": ["put", "get", "delete", "post"]
},
"data":{
/*required, string, resetting response information (usually, it is manufacturer, which is encoded by Base64 and
specified by device*/
"@min": 0,
"@max": 0
}
},
"DataTrans":{
"supportFunction":{
/*required, string, supported methods*/
"@opt": ["put", "get", "delete", "post"]
},
"content":{
/*required, string, data to be passed through, which is encoded in Base64*/
"@min": 0,
"@max": 0
}
}
}
}

6.17 JSON_CardParam
JSON message about card parameters
{
"CardParam": {
"type": ""
/*required, string, card types: " CPU1356,PSAM1,PSAM2,PSAM3,PSAM4"*/

253
Device Network SDK (Access Control on Card) Developer Guide

"protocol": ""
/*required, string, card protocol types: "T0,T1"*/
}
}

6.18 JSON_CardProto
JSON message about operation protocol types of card
{
"CardProto": {
"protocol": "TypeA"
/*required, string, operation protocol types: "TypeA,TypeB,TypeAB,125K,all"*/
}
}

6.19 JSON_CardResetResponse
JSON message about card resetting response
{
"CardResetResponse": {
"data": ""
/*required, string, resetting response information (usually, it is manufacturer, which is encoded by Base64 and
specified by device*/
}
}

6.20 JSON_ChannelControllerTypeCfg
Message about the device type of the lane controller in JSON format
{
"ChannelControllerTypeCfg":{
"deviceModel":""
/*required, string, device type: "K3Y501-A"-DS-K3Y501 series flap barrier, "K3B501S-A"-DS-K3B501S series swing
barrier, "K3B601S-A"-DS-K3B601S series swing barrier, "K3G501"-DS-K3G501 series tripod turnstile*/
}
}

6.21 JSON_ChannelControllerTypeCfgCap
Message about the device type configuration capability of the lane controller in JSON format

254
Device Network SDK (Access Control on Card) Developer Guide

{
"ChannelControllerTypeCfgCap":{
"deviceModel":{
/*required, device type: "K3Y501-A"-DS-K3Y501 series flap barrier, "K3B501S-A"-DS-K3B501S series swing barrier,
"K3B601S-A"-DS-K3B601S series swing barrier, "K3G501"-DS-K3G501 series tripod turnstile*/
"@opt":["K3Y501-A","K3B501S-A","K3B601S-A","K3G501"]
}
}
}

6.22 JSON_ControlBlock
JSON message about the control block parameters of a specific section.
{
"ControlBlock": {
"sectionNo": ,
/*required, integer, section No.*/
"KeyA": "",
/*optional, string type, a hexadecimal key A password*/
"KeyB": "",
/*optional, string type, a hexadecimal key B password*/
"controlBits":""
/*optional, string type, a hexadecimal control bit*/
}
}

6.23 JSON_DataBlock
JSON message about data block details
{
"DataBlock": {
"addressOfBlock": ,
/*optional, integer, block address*/
"data": "",
/*required, string, a hexBinary character string, i.e., "f2345678abf2345678abf2345678abf2"*/
}
}

6.24 JSON_DataBlockCtrl
JSON message about operation parameters of data block
{
"DataBlockCtrl": {

255
Device Network SDK (Access Control on Card) Developer Guide

"addressOfBlock": ,
/*required, integer, block address*/
"command":"",
/*required, string, control commands: "add, minus, copy, paste"*/
"value":,
/*depend, integer, relative value to be changed, this field is value only when the command is set to "add" or "minus"*/
}
}

6.25 JSON_DataOutputCfg
DataOutputCfg message in JSON format
{
"DataOutputCfg":{
"password":"",
/*required, string, password for exporting*/
"type":""
/*optional, string, exporting type, it is "USB" by default which refers to exporting via USB*/
}
}

6.26 JSON_DataOutputProgress
DataOutputProgress message in JSON format
{
"DataOutputProgress":{
"progress":
/*required, integer, exporting progress*/
}
}

6.27 JSON_DataTrans
JSON message about data package to be passed through
{
"DataTrans": {
"content": ""
/*required, string, data to be passed through, which is encoded by Base64*/
}
}

256
Device Network SDK (Access Control on Card) Developer Guide

6.28 JSON_EventNotificationAlert_Alarm/EventInfo
EventNotificationAlert message with alarm or event information in JSON format.
{
"ipAddress": "",
/*required, device IPv4 address , string, the maximum size is 32 bytes*/
"ipv6Address": "",
/*optional, device IPv6 address, string, the maximum size is 128 bytes*/
"portNo": ,
/*optional, device port No., integer32*/
"protocol": "",
/*optional, protocol type, "HTTP, HTTPS", string, the maximum size is 32 bytes*/
"macAddress": "",
/*optional, MAC address, string, the maximum size is 32 bytes, e.g., 01:17:24:45:D9:F4*/
"channelID": "",
/*optional, device channel No., integer32*/
"dateTime": "",
/*optional, string, alarm/event triggered or occurred time based on ISO8601, the maximum size is 32 bytes, e.g.,
2009-11-14T15:27Z*/
"activePostCount": "",
/*required, alarm/event frequency, integer32*/
"eventType": "",
/*required, alarm/event type, "captureResult, faceCapture,...", string, the maximum size is 128 bytes*/
"eventState": "",
/*required, string, the maximum size is 32 bytes, durative alarm/event status: "active"-valid, "inactive"-invalid*/
"eventDescription": "",
/*required, event description, string, the maximum size is 128 bytes*/
"deviceID":"",
/*string type, device ID*/
"uuid":"",
/*string type, event UUID, which is used to uniquely identify an event, the standard UUID format is xxxxxxxx-xxxx-xxxx-
xxxx-xxxxxxxxxxxx*/
...
/*optional, for different alarm/event types, the nodes are different, see the message examples in different
applications*/
}

6.29 JSON_IdentityInfo
IdentityInfo message in JSON format
{
"IdentityInfo":{
"chnName":"",
/*optional, string, reserved*/
"enName":"",
/*optional, string, English name*/
"sex":"",

257
Device Network SDK (Access Control on Card) Developer Guide

/*optional, string, gender: "male", "female"*/


"birth":"",
/*optional, string, date of birth, e.g., 1990-02-24*/
"addr":"",
/*optional, string, address*/
"IDCardNo":"",
/*optional, string, ID card No., it is the sensitive information that should be encrypted*/
"issuingAuthority":"",
/*optional, string, authority*/
"startDate":"",
/*optional, string, start time of the validity period*/
"endDate":"",
/*optional, string, end time of the validity period*/
"nation": ,
/*optional, integer, reserved*/
"passNo":"",
/*optional, string, entry-exit permit No.*/
"issueNumber":"",
/*optional, string, issuing times*/
"certificateType":"",
/*optional, string, certificate type*/
"permanentResidenceCardNo":"",
/*optional, string, permanent resident card No.*/
"nationalityOrAreaCode":"",
/*optional, string, country or region code*/
"version":"",
/*optional, string, certificate version No.*/
"receivingAuthorityCode":"",
/*optional, string, acceptance authority code*/
"FingerprintList":[{
"fingerprint":""
/*optional, string, fingerprint information, it is encoded using base64*/
}],
"pic":""
/*optional, string, ID photo information, it is encoded using base64. The encrypted data should be decrypted using
the specific decryption library*/
}
}

6.30 JSON_IdentityInfoCap
IdentityInfoCap capability message in JSON format
{
"IdentityInfoCap":{
"IdentityInfoCond":{ },
/*optional, conditions of collecting ID card information*/
"chnName":{
/*optional, string, reserved*/
"@min":0,

258
Device Network SDK (Access Control on Card) Developer Guide

"@max":0
},
"enName":{
/*optional, string, English name*/
"@min":0,
"@max":0
},
"sex":{
/*optional, string, gender: "male", "female"*/
"@opt":["male", "female"]
},
"birth":{
/*optional, string, date of birth, e.g., 1990-02-24*/
"@min":0,
"@max":0
},
"addr":{
/*optional, string, address*/
"@min":0,
"@max":0
},
"IDCardNo":{
/*optional, string, ID card No.*/
"@min":0,
"@max":0
},
"issuingAuthority":{
/*optional, string, authority*/
"@min":0,
"@max":0
},
"startDate":{
/*optional, string, start time of the validity period*/
"@min":0,
"@max":0
},
"endDate":{
/*optional, string, end time of the validity period*/
"@min":0,
"@max":0
},
"nation":{
/*optional, integer, reserved*/
"@min":0,
"@max":0
},
"passNo":{
/*optional, string, entry-exit permit No.*/
"@min":0,
"@max":0
},
"issueNumber":{

259
Device Network SDK (Access Control on Card) Developer Guide

/*optional, string, issuing times*/


"@min":0,
"@max":0
},
"certificateType":{
/*optional, string, certificate type*/
"@min":0,
"@max":0
},
"permanentResidenceCardNo":{
/*optional, string, permanent resident card No.*/
"@min":0,
"@max":0
},
"nationalityOrAreaCode":{
/*optional, string, country or region code*/
"@min":0,
"@max":0
},
"version":{
/*optional, string, certificate version No.*/
"@min":0,
"@max":0
},
"receivingAuthorityCode":{
/*optional, string, acceptance authority code*/
"@min":0,
"@max":0
},
"FingerprintList":{
"maxSize":0,
"fingerprint":{
/*optional, string, fingerprint information, it is encoded using base64. This field is the data size capability*/
"@min":0,
"@max":0
}
},
"pic":{
/*optional, string, ID photo information, it is encoded using base64. This field is the data size capability*/
"@min":0,
"@max":0
}
}
}

6.31 JSON_IdentityInfoCond
IdentityInfoCond message in JSON format

260
Device Network SDK (Access Control on Card) Developer Guide

{
"IdentityInfoCond":{ }
/*currently there are no condition parameters, so this field can be set to NULL*/
}

6.32 JSON_IRCfg
JSON message about active infrared intrusion parameters
{
"IRCfg": {
"enable": ,
/*required, boolean, whether to enable: true (yes), false (no)*/
"distance":
/*optional, float, distance, unit: m*/
}
}

6.33 JSON_IRCfgCap
JSON message about active infrared intrusion capability
{
"IRCfgCap": {
"enable":[true,false],
/*required, boolean, whether to enable*/
"distance":{
"@opt":[0.5,1,1.5]
}
}
}

6.34 JSON_NFCCfg
NFCCfg message in JSON format
{
"NFCCfg":{
"enable":
/*required, boolean, whether to enable NFC function: "true"-yes, "false"-no*/
}
}

261
Device Network SDK (Access Control on Card) Developer Guide

6.35 JSON_NFCCfgCap
NFCCfgCap capability message in JSON format
{
"NFCCfgCap":{
"enable":"true, false"
/*required, whether to enable NFC function: "true"-yes, "false"-no (default)*/
}
}

6.36 JSON_OfflineCaptureCap
OfflineCaptureCap capability message in JSON format
{
"OfflineCaptureCap":{
"isSuportDownloadOfflineCaptureInfoTemplate":true,
/*optional, whether it supports downloading template of offline user list: "true"-yes, this node is not returned-no*/
"isSuportUploadOfflineCaptureInfo":true,
/*optional, whether it supports uploading offline user list: "true"-yes, this node is not returned-no*/
"isSupportDownloadCaptureData":true,
/*optional, whether it supports downloading collected data: "true"-yes, this node is not returned-no*/
"isSupportDeleteAllData":true,
/*optional, whether it supports deleting all collected data: "true"-yes, this node is not returned-no*/
"isSupportDeleteTheData":true,
/*optional, whether it supports deleting specific collected data: "true"-yes, this node is not returned-no*/
"SearchTask":{
"supportFunction":{
/*required, string, supported methods, actually supported methods will be returned*/
"@opt":["put", "get", "delete", "post"]
},
"searchID":{
/*required, string, search ID which is used to check whether the upper-layer clients are the same one*/
"@min":0,
"@max":0
},
"maxResults":{
"@min":0,
"@max":0
},
"captureNoList":{
"maxSize":0,
"@min":0,
"@max":0
},
"searchType":{
"@opt":["new", "modified"]
},

262
Device Network SDK (Access Control on Card) Developer Guide

"DataCollections":{
/*optional, array, matched data information that has been searched*/
"maxSize":0,
"captureNo":{
/*optional, integer, collection No.*/
"@min":0,
"@max":0
},
"name":{
/*optional, string, name*/
"@min":0,
"@max":0
},
"employeeNo":{
/*optional, string, employee No.*/
"@min":0,
"@max":0
},
"CardNoList":{
/*optional, string, card No. list*/
"maxSize":0,
"@min":0,
"@max":0
},
"IDCardNo":{
/*optional, string, ID card No.*/
"@min":0,
"@max":0
},
"FingerprintList":{
"fingerprintID":{
"@min":0,
"@max":0
},
"fingerprint":{
/*optional, fingerprint information, it is encoded using base64*/
"@min":0,
"@max":0
}
},
"FaceFeature":{
/*optional, string, facial feature information*/
"isSupportFaceRegion":true,
/*optional, whether it supports facial feature area*/
"isSupportCommonPoint":true
/*optional, whether it supports feature point coordinates (e.g., left eye, right eye, left mouth corner, right mouth
corner, nose)*/
},
"isSupportRiskMark":true,
/*optional, whether it supports risk data mark*/
"dataType":{
/*optional, data type*/

263
Device Network SDK (Access Control on Card) Developer Guide

"@opt":["new", "modified","normal"]
}
}
},
"RuleInfo":{
/*rule list, which lists rules for collecting different types of data*/
"reqAdminRights":[true,false],
/*required, boolean, whether the administrator permission is required: "true"-yes, "false"-no*/
"enableCardNoLenAuto":[true,false],
/*optional, boolean, whether to enable length self-adaption of the card serial No.*/
"maxSize":0,
"supportFunction":{
/*required, string, supported methods, actually supported methods will be returned*/
"@opt":["put", "get", "delete", "post"]
},
"dataType":{
/*required, string, data type: "name", "employeeNo"-employee No., "IDCardNo"-ID card No., "IDCardSerialNo"-ID
card serial No., "IDCardDetails"-ID card details, "card", "fingprint"-fingerprint, "face"*/
"@opt":["name","employeeNo","IDCardNo","IDCardSerialNo", "IDCardDetails","card", "fingprint", "face"]
},
"enable":[true, false],
/*required, string, whether to collect and display: "true"-collect and display, "false"-not collect and display*/
"uniqueCheck":[true, false],
/*dependency, boolean, whether to enable uniqueness verification: "true"-yes, "false" (default) or this node is not
returned-no. This field is valid when dataType is "name". For other data types, the field is the read-only optional
parameter*/
"len":[{
/*dependency, integer, data length. If dataType is "name", it refers to the name length and the default value is 128.
For other data types, this field is the read-only optional parameter. This node will not be returned if it is not
supported. The capability list will be returned according to the data type*/
"dataType":"",
"@min":0,
"@max":0
}],
"num":[{
/*dependency, integer, number of collected data, this field is valid when dataType is "fingerprint" or "card". The
capability list will be returned according to the data type*/
"dataType":"",
"@min":0,
"@max":0
}],
"fingerprintIDs":{
/*dependency, integer, No. list of collected fingerprints, this field is valid when dataType is "fingerprint"*/
"maxSize":0,
"@min":0,
"@max":0
}
},
"CaptureProgress":{
"supportFunction":{
/*required, string, supported methods, actually supported methods will be returned*/
"@opt":["put", "get", "delete", "post"]

264
Device Network SDK (Access Control on Card) Developer Guide

},
"reqCaptureNum":{
/*optional, integer, total number of persons to be collected*/
"@min":0,
"@max":0
},
"completelyCaptureNum":{
/*optional, integer, number of completely collected persons*/
"@min":0,
"@max":0
},
"partiallyCaptureNum":{
/*optional, integer, number of partially collected persons*/
"@min":0,
"@max":0
},
"reqFaceNum":{
/*optional, integer, number of faces to be collected*/
"@min":0,
"@max":0
},
"faceNum":{
/*optional, integer, number of collected faces*/
"@min":0,
"@max":0
},
"reqFingerprintNum":{
/*optional, integer, number of fingerprints to be collected*/
"@min":0,
"@max":0
},
"fingerprintNum":{
/*optional, integer, number of collected fingerprints*/
"@min":0,
"@max":0
},
"reqCardNum":{
/*optional, integer, number of cards to be collected*/
"@min":0,
"@max":0
},
"cardNum":{
/*optional, integer, number of collected cards*/
"@min":0,
"@max":0
},
"reqIDCardNum":{
/*optional, integer, number of ID cards to be collected*/
"@min":0,
"@max":0
},
"IDCardNum":{

265
Device Network SDK (Access Control on Card) Developer Guide

/*optional, integer, number of collected ID cards*/


"@min":0,
"@max":0
}
},
"DataOutput":{
"supportFunction":{
/*required, string, supported methods, actually supported methods will be returned*/
"@opt":["put", "get", "delete", "post"]
},
"password":{
/*required, string, password for exporting*/
"@min":0,
"@max":0
},
"type":{
/*optional, string, exporting method, the default method is "USB"*/
"@opt":"USB"
},
"progress":{
/*required, integer, exporting progress*/
"@min":0,
"@max":0
}
}
}
}

6.37 JSON_ResponseStatus
ResponseStatus message in JSON format.
{
"requestURL":"",
/*optional, string type, request URL*/
"statusCode": ,
/*required, integer type, status code*/
"statusString":"",
/*required, string type, status description*/
"subStatusCode":"",
/*required, string type, sub status code*/
"errorCode": ,
/*optional, integer type, error code, which corresponds to subStatusCode, this field is required when statusCode is
not 1*/
"errorMsg":"",
/*optional, string type, error details, this field is required when statusCode is not 1*/
"tryTimes":
/*optional, integer, number of retry attempts, it is returned when configuring card encryption*/
}

266
Device Network SDK (Access Control on Card) Developer Guide

Note
See ISAPI Response Codes for details about the status codes, sub status codes, error codes, and
error descriptions.

6.38 JSON_RFCardCfg
RFCardCfg message in JSON format
{
"RFCardCfg":[{
"cardType":"",
/*required, string, card type: "EMCard"-EM card, "M1Card"-M1 card, "CPUCard"-CPU card, "IDCard"-ID card*/
"enabled":
/*required, boolean, whether to enable RF card recognition: "true"-yes, "false"-no*/
}]
}

6.39 JSON_RFCardCfgCap
RFCardCfgCap capability message in JSON format
{
"RFCardCfgCap":{
"cardType":{
/*required, string, card type: "EMCard"-EM card, "M1Card"-M1 card, "CPUCard"-CPU card, "IDCard"-ID card*/
"@opt":["EMCard","M1Card","CPUCard","IDCard"]
},
"enabled":{
/*required, boolean, whether to enable RF card recognition: "true"-yes, "false"-no*/
"@opt":[true,false]
}
}
}

6.40 JSON_RuleInfo
RuleInfo message in JSON format
{
"RuleInfo":{
"reqAdminRights": ,
/*required, boolean, whether the administrator permission is required: "true"-yes, "false"-no*/
"enableCardNoLenAuto": ,
/*optional, boolean, whether to enable length self-adaption of the card serial No. The priority of this field is higher
than len*/

267
Device Network SDK (Access Control on Card) Developer Guide

"RuleList":[{
/*rule list, which contains rules for collecting different types of data*/
"dataType":"",
/*required, string, data type: "name", "employeeNo"-employee No., "IDCardNo"-ID card No., "IDCardSerialNo"-ID
card serial No., "IDCardDetails"-ID card details, "card", "fingprint"-fingerprint, "face"*/
"enable": ,
/*required, boolean, whether to collect and display: "true"-collect and display, "false"-not collect and display*/
"uniqueCheck": ,
/*dependency, boolean, whether to enable uniqueness verification: "true"-yes, "false" (default) or this field is not
returned-no. This field is valid when dataType is "name". For other data types, this field is the read-only optional
parameter*/
"len": ,
/*dependency, integer, data length, this field is valid when dataType is "name", "enployeeNo" or "card". The default
data length of name is 128. For other data types, this field is the read-only optional parameter. If it is not supported,
this field will not be returned*/
"num": ,
/*dependency, integer, number of collected data, this field is valid when dataType is "fingerprint" or "card"*/
"fingerprintIDs":
/*dependency, integer, ID list of fingerprints that need to be collected, this field is valid when dataType is
"fingerprint"*/
}]
}
}

6.41 JSON_SearchTaskCond
SearchTaskCond message in JSON format
{
"SearchTaskCond":{
"searchID":"",
/*required, string, search ID which is used to check whether the upper-layer clients are the same one*/
"searchResultPosition": ,
/*required, integer32, the start position of the search result in the result list. When there are multiple records and you
cannot get all search results at a time, you can search for the records after the specified position next time. If the
device returns the picture along with the response message, this field should be between 0 and totalMatches*/
"maxResults": ,
/*required, integer32, the maximum number of results that can be obtained by calling the URL at a time. If the device
returns the picture along with the response message, this field can only be set to 1*/
"captureNoList": ,
/*optional, integer, collection No. list. If the collection No. is not configured, it will search all data according to
searchResultPosition*/
"searchType":""
/*optional, search type: "new"-search and only return newly added data, "modified"-search and only return edited
data. By default all data will be searched*/
}
}

268
Device Network SDK (Access Control on Card) Developer Guide

6.42 JSON_SearchTaskResponse
SearchTaskResponse message in JSON format
{
"SearchTaskResponse":{
"searchID":"",
/*required, string, search ID which is used to check whether the upper-layer clients are the same one*/
"responseStatusStrg":"",
/*optional, string, searching status: "OK"-searching completed, "NO MATCH"-no matched results, "MORE"-searching
for more results*/
"numOfMatches": ,
/*optional, integer32, number of returned results this time*/
"totalMatches": ,
/*optional, integer32, total number of matched results*/
"DataCollections":[{
/*optional, array, searched matched data information*/
"lastCaptureNo": ,
/*required, integer, last collection No., it is used to check whether there is data lost*/
"captureNo": ,
/*required, integer, current collection No.*/
"name":"",
/*optional, string, name*/
"employeeNo":"",
/*optional, string, employee No.*/
"IDCardNo":"",
/*optional, string, ID card No.*/
"CardNoList":["", ""],
/*optional, string, card No. list*/
"FingerprintList":[{
"fingerprintID": ,
/*optional, integer, fingerprint No.*/
"fingerprint":""
/*optional, string, fingerprint information which is encoded using base64*/
}],
"FaceFeature":{
/*optional, feature information of face picture matting*/
"Region":{
/*required, area coordinates of face picture matting, it is a rectangle*/
"height": ,
/*required, float, height*/
"width": ,
/*required, float, width*/
"x": ,
/*required, float, X-coordinate of the left corner*/
"y":
/*required, float, Y-coordinate of the left corner*/
},
"LeftEyePoint":{
/*optional, coordinates of the left eye*/
"x": ,

269
Device Network SDK (Access Control on Card) Developer Guide

/*required, float, X-coordinate, it is between 0.000 and 1*/


"y":
/*required, float, Y-coordinate, it is between 0.000 and 1*/
},
"RightEyePoint":{
/*optional, coordiantes of the right eye*/
"x": ,
/*required, float, X-coordinate, it is between 0.000 and 1*/
"y":
/*required, float, Y-coordinate, it is between 0.000 and 1*/
},
"LeftMouthPoint":{
/*optional, coordinates of the left mouth corner*/
"x": ,
/*required, float, X-coordinate, it is between 0.000 and 1*/
"y":
/*required, float, Y-coordinate, it is between 0.000 and 1*/
},
"RightMouthPoint":{
/*optional, coordinates of the right mouth corner*/
"x": ,
/*required, float, X-coordinate, it is between 0.000 and 1*/
"y":
/*required, float, Y-coordinate, it is between 0.000 and 1*/
},
"NoseTipPoint":{
/*optional, coordinates of the nose*/
"x": ,
/*required, float, X-coordinate, it is between 0.000 and 1*/
"y":
/*required, float, Y-coordinate, it is between 0.000 and 1*/
}
},
"riskDataMark": ,
/*optional, boolean, whether to mark risk data: "true"-mark the data as the risk data and person and ID comparison
failed, "false" or this field is not returned-the data is normal*/
"dataType":""
/*optional, string, data type and status: "new"-newly added data, "modified"-edited data, "normal"-unchanged data*/
}]
}
}

6.43 JSON_SectionEncryption
JSON message about section encryption parameters
{
"SectionEncryption": {
"sectionNo": ,
/*required, integer, section No.*/

270
Device Network SDK (Access Control on Card) Developer Guide

"keyType": "",
/*required, string, key types: "private"-private key, "normal"-other valid keys*/
"password": ""
/*depend, string, a hexadecimal verification key, this field is valid only when the keyType is "normal"*/
"newKeyType": "",
/*required, string, new key types: "private"-private key, "normal"-other valid keys*/
"KeyA": "",
/*depend, string, a hexadecimal password of key A, this field is valid only when the keyType is "normal"*/
"KeyB": "",
/*depend, string, a hexadecimal password of key B, this field is valid only when the keyType is "normal"*/
"controlBits":
/*depend, a hexadecimal control bit, this field is valid only when the keyType is "normal"*/
}
}

6.44 JSON_Verification
JSON message about verification parameters of section password.
{
"Verification": {
"sectionNo": ,
/*requried, integer, section No.*/
"passwordType": "",
/*optional, string, password types: "KeyA" (default), "KeyB"*/
"password": ""
/*optional, string, a hexadecimal key, which depends on the password type*/
}
}

6.45 XML_AcsAbility
AcsAbility capability message in XML format
<AcsAbility version="2.0">
<channelControllerNo min="" max=""/>
<!--req, lane controller range-->
<doorNo min="" max=""/>
<!--req , door No. rang or floor No. range-->
<cardReaderNo min="" max=""/>
<!--req, card reader No. range-->
<maxCardNum></maxCardNum>
<!--req, supported card number-->
<caseSensorNo min="" max=""/>
<!--req, event trigger No.-->
<gateOpenDirectionNum opt="1,2"/>
<!--req, the number of door opening directions (e.g., for the flap barrier which has only one direction, the attribute
"opt" should be set to 1; for the swing barrier and the tripod turnstile which have two directions, the attribute "opt"
should be set to 2)-->

271
Device Network SDK (Access Control on Card) Developer Guide

<DoorRelateCardReaderList>
<!--opt, card reader No., which is linked with the door No. (it will be returned only when the card reader has linked
with card reader, otherwise it will not be returned)-->
<Action>
<doorNo>1</doorNo>
<cardReaderNo>1,2</cardReaderNo>
</Action>
</DoorRelateCardReaderList>
<DoorStatusPlan>
<!--req, door status schedule capability -->
<WeekPlan>
<!--req, weekly schedule capability -->
<weekPlanNo min="" max=""/>
<!--req, weekly schedule No. range -->
<maxDaySegment>8</maxDaySegment>
<!--req, supported daily time segment number -->
<status opt="invalid,sleep,alwaysopen,alwaysclose,normal"/>
<!--req, status value range -->
<verifyType
opt="invalid,sleep,swipecard,swipecardandpassword,swipecardorpasswd,fingerPrint,fingerPrintAndPasswd,fingerPrint
orCard,fingerPrintAndCard,fingerPrintAndCardAndPasswd,faceOrFpOrCardOrPw,faceAndFingerPrint,faceAndPassword,
faceAndCard,face,employeeNoAndPassword,fingerPrintOrPassword,employeeNoAndFp,employeeNoAndFpAndPw,fac
eAndFpAndCard,faceAndPwAndFp,employeeNoAndface,cardOrFace,cardOrFaceOrFp,cardOrFpOrPw"/>
<!--req, authentication method range -->
<TimeAccuracy>
<!--req, time accuracy -->
<hour>enable</hour>
<minute>enable</minute>
<second>enable</second>
</TimeAccuracy>
</WeekPlan>
<HolidayPlan>
<!--req, holiday schedule -->
<holidayPlanNo min="" max=""/>
<!--req, holiday schedule No. range -->
<maxDaySegment>8</maxDaySegment>
<!--req, supported daily time segment number -->
<TimeAccuracy>
<!--req, time accuracy-->
<hour>enable</hour>
<minute>enable</minute>
<second>enable</second>
</TimeAccuracy>
</HolidayPlan>
<HolidayGroup>
<!--req, holiday group capability-->
<holidayGroupNo min="" max=""/>
<!--req, holiday group No. range -->
<holidayGroupName min="" max=""/>
<!--req, holiday group name length -->
<maxHolidayPlanNum></maxHolidayPlanNum>
<!--req, max. holiday schedule number for the holiday group -->

272
Device Network SDK (Access Control on Card) Developer Guide

</HolidayGroup>
<PlanTemplate>
<!--req, schedule template capability -->
<templateNo min="" max=""/>
<!--opt, range of schedule template No.-->
<templateName min="" max=""/>
<!--req, schedule template name length -->
<maxHolidayGroupNum></maxHolidayGroupNum>
<!--req, max. holiday group number for the schedule template -->
</PlanTemplate>
<supportLocalController>enable</supportLocalController>
<!--req, support distributed access controller-->
</DoorStatusPlan>
<CardReaderVerifyTypePlan>
<!--req, card reader authentication schedule capability -->
<WeekPlan>
<!--req, weekly schedule capability -->
<weekPlanNo min="" max=""/>
<!--req, weekly schedule No. range -->
<maxDaySegment>8</maxDaySegment>
<!--req, supported daily time segment number -->
<status opt="invalid,sleep,alwaysopen,alwaysclose,normal"/>
<!--req, status value range -->
<verifyType
opt="invalid,sleep,swipecard,swipecardandpassword,swipecardorpasswd,fingerPrint,fingerPrintAndPasswd,fingerPrint
OrCard,fingerPrintAndCard,fingerPrintAndCardAndPasswd,fingerPrintorCard,fingerPrintAndCard,fingerPrintAndCardAn
dPasswd,faceOrFpOrCardOrPw,faceAndFingerPrint,
faceAndPassword,faceAndCard,face,employeeNoAndPassword,fingerPrintOrPassword,employeeNoAndFp,employeeN
oAndFpAndPw,faceAndFpAndCard,faceAndPwAndFp,employeeNoAndface,employeeNoAndFpAndPw,faceAndFpAndCa
rd,faceAndPwAndFp,employeeNoAndface,faceOrFaceAndCard,fingerPrintOrFace,swipecardOrFaceOrPw,cardOrFace,ca
rdOrFaceOrFp,cardOrFpOrPw"/>
<!--req,verification mode range: invalid, sleep, card, card and password, card or password, fingerprint, fingerprint
and password, fingerprint or card, fingerprint and card, fingerprint and card and password (no order), face or
fingerprint or card or password, face and fingerprint, face and password, face and card, face, employee No. and
password, fingerprint or password, employee No.and fingerprint, employee No. and fingerprint and password, face
and fingerprint and card, face and password and fingerprint, employee No. and face, employee No. and fingerprint
and password, face and fingerprint and card, face and password and fingerprint, employee No. and face, face or face
and card, fingerprint or face, card or face or password, card or face, card or face or fingerprint-->
<purePwdVerifyEnable><!--optional, boolean, whether the device supports opening the door only by password:
true-yes, this node is not returned-no--></purePwdVerifyEnable>
<!--For opening the door only by password: 1. The password in "XXX or password" in the authentication mode
refers to the person's password (the value of the node password in JSON_UserInfo); 2. The device will not check the
duplication of the password, and the upper platform should ensure that the password is unique; 3. The password
cannot be added, deleted, edited, or searched for on the device locally-->
<TimeAccuracy>
<!--req, time accuracy -->
<hour>enable</hour>
<minute>enable</minute>
<second>enable</second>
</TimeAccuracy>
</WeekPlan>
<HolidayPlan>

273
Device Network SDK (Access Control on Card) Developer Guide

<!--req, holiday schedule -->


<holidayPlanNo min="" max=""/>
<!--req, holiday schedule No. range -->
<maxDaySegment>8</maxDaySegment>
<!--req, supported daily time segment number -->
<TimeAccuracy>
<!--req, time accuracy -->
<hour>enable</hour>
<minute>enable</minute>
<second>enable</second>
</TimeAccuracy>
</HolidayPlan>
<HolidayGroup>
<!--req, holiday group capability -->
<holidayGroupNo min="" max=""/>
<!--req, holiday group No. range -->
<holidayGroupName min="" max=""/>
<!--req, holiday group name length -->
<maxHolidayPlanNum></maxHolidayPlanNum>
<!--req, max. holiday schedule number for holiday group -->
</HolidayGroup>
<PlanTemplate>
<!--req, schedule template capability -->
<templateNo min="" max=""/>
<!--opt, range of schedule template No.-->
<templateName min="" max=""/>
<!--req, schedule template name lenghth -->
<maxHolidayGroupNum></maxHolidayGroupNum>
<!--req, max. holiday group number for schedule template -->
</PlanTemplate>
<supportLocalController>enable</supportLocalController>
<!--req, support distributed access controller-->
</CardReaderVerifyTypePlan>
<CardRightPlan>
<!--req, card permission schedule capability -->
<WeekPlan>
<!--req, weekly schedule capability -->
<weekPlanNo min="" max=""/>
<!--req, weekly schedule No. range -->
<maxDaySegment>8</maxDaySegment>
<!--req, supported daily time segment number -->
<status opt="invalid,sleep,alwaysopen,alwaysclose,normal"/>
<!--req, status value range -->
<verifyType opt="invalid,sleep,swipecard,swipecardandpassword"/>
<!--req, authentication method range -->
<TimeAccuracy>
<!--req, time accuracy -->
<hour>enable</hour>
<minute>enable</minute>
<second>enable</second>
</TimeAccuracy>
</WeekPlan>

274
Device Network SDK (Access Control on Card) Developer Guide

<HolidayPlan><!--req, holiday schedule -->


<holidayPlanNo min="" max=""/><!--req, holiday schedule No. range -->
<maxDaySegment>8</maxDaySegment>
<!--req, supported daily time segment number -->
<TimeAccuracy>
<!--req, time accuracy -->
<hour>enable</hour>
<minute>enable</minute>
<second>enable</second>
</TimeAccuracy>
</HolidayPlan>
<HolidayGroup>
<!--req, holiday group capability-->
<holidayGroupNo min="" max=""/>
<!--req, holiday group No. range -->
<holidayGroupName min="" max=""/>
<!--req, holiday group name length -->
<maxHolidayPlanNum></maxHolidayPlanNum>
<!--req, max. holiday schedule number for holiday group -->
</HolidayGroup>
<PlanTemplate>
<!--req, schedule template capability -->
<templateNo min="" max=""/>
<!--opt, range of schedule template No.-->
<templateName min="" max=""/>
<!--req, schedule template name length -->
<maxHolidayGroupNum></maxHolidayGroupNum>
<!--req, max. holiday group number for schedule template -->
</PlanTemplate>
<supportLocalController>enable</supportLocalController>
<!--req, support distributed access controller-->
</CardRightPlan>
<Door>
<!--req, door parameters capaility -->
<doorName min="" max=""/>
<!--req, door name length -->
<magneticMode opt="alwaysclose,alwaysopen"/>
<!--req, door magnetic type -->
<openButtonMode opt="alwaysclose,alwaysopen"/>
<!--req, exit button type-->
<openDuration min="" max=""/>
<!--req, door opening duration range, unit: second -->
<disabledOpenDuration min="" max=""/>
<!--req, disabled card opening door duration range, unit: second)-->
<magneticAlarmTimeout min="" max=""/>
<!--req, magnetic detection overtime alarm time, unit: second, 0 indicates not to alarm. -->
<doorLock>enable</doorLock>
<!--req,whether support locking door when door closed. -->
<leaderCard>enable</leaderCard>
<!--req, whether to enable first card opening door -->
<stressPassword min="" max=""/>
<!--req, duress password length -->

275
Device Network SDK (Access Control on Card) Developer Guide

<superPassword min="" max=""/>


<!--req, super password length -->
<unlockPassword min="" max=""/>
<!--opt, unlocking password length -->
<leaderCardMode opt="close,alwaysopen,authorized"/>
<!--req, first card mode-->
<useLocalController>enable</useLocalController>
<!--req, whether the door is connected to distributed access controller-->
<localControllerID min="" max=""/>
<!--req, distributed access controller No.-->
<localControllerDoorNumber min="" max=""/>
<!--req, distributed access controller door No.-->
<localControllerStatus opt="offline,netOnline,authorized"/>
<!--req, distributed access controller online status-->
<lockInputCheck>enable</lockInputCheck>
<!--req, whether to enable door lock input check (1 byte, 0- disbale, 1- enable, default to disable)-->
<lockInputType opt="NormallyClose,NormallyOpen"/>
<!--req, door lock input type (1 byte, 0- normally closed, 1- normally open, default to normally closed)-->
<doorTerminalMode opt="PreventCutShort,Normal"/>
<!--req, door related terminal operating mode (1 byte, 0- anti-cut & short-circuit, 1- normal, default to anti-cut &
short-circuit)-->
<openButton>enable</openButton>
<!--req, whether to enable door button (1 byte, 0- yes, 1- no, default to yes)-->
</Door>
<DoorStatusPlan>
<!--req, door status schedule parameters -->
<enable>true</enable>
</DoorStatusPlan>
<Group>
<!--req, group parameters capability -->
<ValidCfg>
<!--req, validate capability -->
<TimeAccuracy>
<!--req, time accuracy -->
<year>enable</year>
<month>enable</month>
<day>enable</day>
<hour>enable</hour>
<minute>enable</minute>
<second>enable</second>
</TimeAccuracy>
<timeType opt="local,UTC"/>
<!--opt, time type: "local"-device local time (default), "UTC"-UTC time>
</ValidCfg>
<groupName min="" max=""/>
<!--req, group name length -->
<groupNo min="" max=""/><!--req, group No. range. If this node cannot be parsed or is not returned, it will be set
to the default value-->
</Group>
<MultiCard>
<!--req, multi-card capability -->
<swipeIntervalTimeout min="" max=""/>

276
Device Network SDK (Access Control on Card) Developer Guide

<!--req, multi-card swiping interval overtime, unit: second -->


<maxMultiCardGroupNum, min="1", max="20"></maxMultiCardGroupNum>
<!--req, max. multi-card group number >
<maxGroupCombinationNum></maxGroupCombinationNum>
<!--req, max. group number for a multi-card group -->
<remoteOpenDoor>enable</remoteOpenDoor>
<!--req, supports remote door opening authentication method -->
<offlineVerifyMode>enable</offlineVerifyMode>
<!--req, supported offline control panel authentication mode (super password replaces remote door opening
control) -->
</MultiCard>
<Card>
<!--req, card parameters capability -->
<cardNo min="" max=""/>
<!--req, card No. length -->
<modifyParamType opt="cardvalid,validtime,cardtype,doorright,leadercard,swipenum,group,password, rightplan,
swipednum, employeeno, name, departmentNo, schedulePlanNo,
schedulePlanType,roomNo,simNo,floorNo,userType"/>
<!--req,edit separately --> opt="cardvalid- card valid or not, validtime- expiry date, cardtype- card type, doorright-
door permission,
leadercard- first card, swipenum- max. card swiping times, group- group, password- card password,,rightplan- card
permission schedule,
swipednum- card swiped times, employeeno- employee No., name-Name, departmentNo-Apartment No.,
schedulePlanNo-Schedule No., schedulePlanType-Schedule Type-->
<cardValid>enable</cardValid>
<timeRangeBegin>
<!--opt, start time that can be configured by beginTime and endTime. If this node is not returned by the capability,
the start time that can be configured is 1970-01-01T00:00:00 by default-->
</timeRangeBegin>
<timeRangeEnd>
<!--opt, end time that can be configured by beginTime and endTime. If this node is not returned by the capability,
the end time that can be configured is 2037-12-31T23:59:59 by default-->
</timeRangeEnd>
<cardValidUnit opt="day,hour,minute,second">
<!--req, accuracy of card expiry date (if device supports correcting to minute, opt="minute"), if this node is not
returned, the default accuracy is day (opt="day")>
</cardValidUnit>
<!--req, whether the card is valid-->
<!--req, card type-->
<cardType opt="normalcard,disabledcard,blacklistcard,nightwatchcard,
stresscard,supercard,guestcard,mastercard,staffcard,normalopencard,cleancard,standbycard, unlockcard"/>
<doorRight>enable</doorRight>
<!--req, door permission-->
<leaderCard>enable</leaderCard>
<!--req, whether to enable the first card? -->
<swipeNum min="" max=""/>
<!--req, max. card swiping number, o indicates no limit-->
<maxBelongGroup></maxBelongGroup>
<!--req, max. group number belonged to -->
<cardPassword min="" max=""/>
<!--req, card password-->
<doorRightPlanNum></doorRightPlanNum>

277
Device Network SDK (Access Control on Card) Developer Guide

<!--req, max. schedule template number for a single door -->


<swipeTime>enabled</swipeTime>
<!--req, swiping times -->
<onlyPasswdOpen opt="true,false"/>
<!--opt, whether to support password opening door, invalid currently -->
<roomNumber min="" max=""/>
<!--opt, Room No.-->
<floorNumber min="" max=""/>
<!--opt,Floor number-->
<employeeNo min="" max=""/>
<!--opt, employee No.-->
<name min="" max=""></name>
<!--req, name (if device returns this node, you can get and set the linked user name of the card by calling card
parameter API directly, so there is no need to API NET_DVR_SET_CARD_USERINFO_CFG and
NET_DVR_GET_CARD_USERINFO_CFG)-->
<departmentNo min="" max=""/>
<!--opt, department No.-->
<schedulePlanNo min="" max=""/>
<!--opt, shift schedule-->
<schedulePlanType opt="personal,department"/>
<!--opt, shift schedule type-->
<lockID min="" max=""/>
<!--req, lock ID-->
<roomCode min="" max=""/>
<!--req, room code-->
<cardRight opt="lowPowerAlarm,openDoorSound,customCardLimit,normalOpen,openLockedDoor,keepWatch"/>
<!--req, card permission-->
<supportLocalController>enable</supportLocalController>
<!--req, support distributed access controller-->
<roomNumber min="" max=""></roomNumber><!--req, room No.>
<floorNumber min="" max=""></floorNumber><!--req, floor No.>
<SIMNum min="" max=""></SIMNum><!--req, mobile phone number>
<isSupportCardModify>true</isSupportCardModify>
<!--req, support downloading when card parameters changed (for video intercom device only, by default, this
function is supported by all access control devices)>
</Card>
<AntiSneak>
<!--req, anti-passback capability-->
<startCardReaderNo>enable</startCardReaderNo>
<!--req, anti-passback card reader No. configuration -->
<maxSneakPath></maxSneakPath>
<!--req, max. anti-passback follow-up card reader number-->
</AntiSneak>
<MultiDoorInterlock>
<!--req, multi-door interlocking parameters -->
<maxMultiDoorInterlockGroup></maxMultiDoorInterlockGroup>
<!--req, max. multi-door interlocking group number -->
<maxInterlockDoorNum></maxInterlockDoorNum>
<!--req, max. interlocked door number for one multi-door interlocking group -->
</MultiDoorInterlock>
<AcsWorkStatus>
<!--req, access controller working status parameters -->

278
Device Network SDK (Access Control on Card) Developer Guide

<doorLogicalStatus>enable</doorLogicalStatus>
<!--req, door logic status -->
<doorStatus opt="alwaysopen,alwaysclose,normal"/>
<!--req, door status parameters -->
<magneticStatus>enable</magneticStatus>
<!--req, door magnetic status parameters -->
<relayStatus>enable</relayStatus>
<!--req, relay status-->
<caseSensorStatus>enable</caseSensorStatus>
<!--req, case trigger status-->
<BatteryVoltage>enable</BatteryVoltage>
<!--req, battery voltage value -->
<BatteryLowVoltage>enable</BatteryLowVoltage>
<!--req, battery low voltage detection -->
<PowerSupplyStatus>enable</PowerSupplyStatus>
<!--req, device power supply status-->
<multiDoorInterlockStatus>enable</multiDoorInterlockStatus>
<!--req, multi-door interlocking status parameters-->
<antiSneakStatus>enable</antiSneakStatus>
<!--req, anti-passback status parameters-->
<hostAntiDismantleStatus>enable</hostAntiDismantleStatus>
<!--req, control ler tamper ?proof status-->
<indicatorLightStatus>enable</indicatorLightStatus>
<!--req, Supports indicator status-->
<cardReaderOnlineStatus>enable</cardReaderOnlineStatus>
<!--req, card reader connection status -->
<cardReaderAntiDismantleStatus>enable</cardReaderAntiDismantleStatus>
<!--req, card reader tamper-proof status -->
<cardReaderVerifyMode opt="invalid,sleep,swipecard,swipecardandpassword, swipecardorpasswd,
fingerPrint,fingerPrintAndPasswd,fingerPrintor
Card,fingerPrintAndCard,fingerPrintAndCardAndPasswd,faceOrFpOrCardOrPw,
faceAndFingerPrint,faceAndPassword,faceAndCard,face,employeeNoAndPassword,fingerPrintOrPassword,employeeN
oAndFp,
employeeNoAndFpAndPw,faceAndFpAndCard,faceAndPwAndFp,employeeNoAndface,faceOrfaceAndCard,fingerPrintO
rFace,swipecardOrFaceOrPw,"/>
<!--req, supported card reader authentication modes: 0-invalid, 1-card, 2-card+password, 3-card, 4-card/password,
5-fingerprint, 6-fingerprint+password, 7-fingerprint/card, 8-fingerprint_card, 9-fingerprint_card+password, 10-face/
fingerprint/card/password, 11-face+fingerprint, 12-face+password, 13-face+card, 14-face, 15-employee No.
+password, 16-fingerprint/password, 17-employee No.+fingerprint, 18-employee No.+fingerprint+password, 19-face
+fingerprint+card, 20-face+password+fingerprint, 21-employee No.+face, 22-face/face+card, 23-fingerprint/face, 24-
card/face/password-->
<setupAlarmStatus>enable</setupAlarmStatus>
<!--req, zone arming status -->
<alarmInStatus>enable</alarmInStatus>
<!--req, alarm input status -->
<alarmOutStatus>enable</alarmOutStatus>
<!--req, alarm output status -->
<cardNum>enable</cardNum>
<!--req, added card number -->
<fireAlarmStatus opt="normal,shortCircuit,break"/>
<!--req, support fire alarm status-->
<supportLocalController>enable</supportLocalController>

279
Device Network SDK (Access Control on Card) Developer Guide

<!--req, support distributed access controller-->


<batteryChargeStatus opt="InCharge,NotCharge"/>
<!--req, battery status: InCharge-Charging, NotCharge-Uncharged>
<masterChannelControllerStatus>enable</masterChannelControllerStatus>
<!--req, supports online status of main lane controller-->
<slaveChannelControllerStatus>enable</slaveChannelControllerStatus>
<!--req, supports online status of slave lane controller-->
<antiSneakServerStatus opt="disable,normal,disconnect"/>
<!--opt, anti-passing back server status: "disable"-disabled, "normal"-normal, "disconnect"-disconnected-->
<whiteFaceNum>enable</whitefaceNum>
<!--req, supports the parameters of face picture quantity in whitelist-->
<blackFaceNum>enable</blackfaceNum>
<!--req, supports the parameters of face picture quantity in blacklist-->
</AcsWorkStatus>
<CaseSensor>
<!--req, event trigger parameters capability -->
<triggerHostBuzzer>enable</triggerHostBuzzer>
<!--req, trigger controller buzzer -->
<triggerCardReaderBuzzer>enable</triggerCardReaderBuzzer>
<!--req, trigger card reader buzzer -->
<triggerAlarmOut>enable</triggerAlarmOut>
<!--req, trigger alarm output -->
<triggerDoorOpen>enable</triggerDoorOpen>
<!--req, support triggered open door by ID-->
<triggerAlarmOutClose>enable</triggerAlarmOutClose>
<!--req, support disable triggered alarm input-->
<triggerAlarmInSetup>enable</triggerAlarmInSetup>
<!--req, support triggered arming region arming-->
<triggerAlarmInClose>enable</triggerAlarmInClose>
<!--req, support triggered arming region disarming-->
</CaseSensor>
<CardReaderCfg>
<!--req, reader parameters capability-->
<!--req, supported reader type-->
<cardReaderType opt="DS-K110XM/MK/C/CK,DS-K192AM/AMP,DS-K192BM/BMP,DS-K182AM/AMP,DS-K182BM/
BMP,DS-K182AMF/ACF,
Wiegand or RS485 offline,DS-K1101M/MK,DS-K1101C/CK,DS-K1102M/MK/M-A,DS-K1102C/CK,DS-K1103M/
MK,
DS-K1103C/CK,DS-K1104M/MK,DS-K1104C/CK,DS-K1102S/SK/S-A,DS-K1102G/GK,DS-K1100S-B,DS-
K1102EM/EMK,
DS-K1102E/EK,DS-K1200EF,DS-K1200MF,DS-K1200CF,DS-K1300EF,DS-K1300MF,DS-K1300CF,DS-K1105E,
DS-K1105M,DS-K1105C,DS-K182AMF,DS-K196AMF,DS-K194AMP, DS-K1T200EF/EF-C/MF-MF-C/CF/CF-C,
DS-K1T300EF/EF-C/MF-MF-C/CF/CF-C"/>
<okLedPolarity op="cathode,anode"/>
<!--req,OK LED polarity-->
<errorLedPolarity op="cathode,anode"/>
<!--req,ERROR LED polarity-->
<buzzerLedPolarity op="cathode,anode"/>
<!--req, buzzer polarity -->
<swipeInterval min="" max=""/>
<!--req, time interval of duplicated authentication, unit: second -->
<pressTimeout min="" max=""/>

280
Device Network SDK (Access Control on Card) Developer Guide

<!--req, key pressing overtime, unit: second -->


<enableFailAlarm>enable</enableFailAlarm>
<!--req, whether to enable authentication failure over times alarm configuration-->
<maxReadCardFailNum min="" max=""/>
<!--req, max. times of authentication failure -->
<enableTamperCheck>enable</enableTamperCheck>
<!--opt, whether to support anti-tamper check-->
<offlineCheckTime min="" max=""/>
<!--opt, offline check time, unit:s-->
<fingerPrintCheckLevel
opt="1/10,1/100,1/1000,1/10000,1/100000,1/1000000,1/10000000,1/100000000,3/100,3/1000,
3/10000,3/100000,3/1000000,3/10000000,3/100000000,Automatic Normal,Automatic
Secure,Automatic More Secure"/>
<!--opt, fingerprint recognition level-->
<useLocalController>enable</useLocalController>
<!--req, whether door is connected to distributed access controller-->
<localControllerID min="" max=""/>
<!--opt, distributed access controller No.-->
<localControllerReaderID min="" max=""/>
<!--opt, ID of distributed access controller card reader-->
<cardReaderChannel opt="Wiegand/Offline,RS485A,RS485B"/>
<!--opt card reader communication channel No.-->
<fingerPrintImageQuality min="1" max="8"/>
<!--opt,fingerprint picture quality-->
<fingerPrintContrastTimeOut min="0" max="20"/>
<!--opt,fingerprint comparison overtime, 0 - infinite, that is 0xff-->
<fingerPrintRecogizeInterval min="0" max="10"/>
<!--opt,time interval of fingerprint continuous recognition, 0- no delay, that is 0xff-->
<fingerPrintMatchFastMode min="0" max="5"/>
<!--opt,fingerprint fast matching mode, 0- auto, that is 0xff-->
<fingerPrintModuleSensitive min="1" max="8"/>
<!--opt,fingerprint module sensitivity-->
<fingerPrintModuleLightCondition opt="outdoor,indoor"/>
<!--opt,light condition of fingerprint module-->
<faceMatchThresholdN min="0" max="100"/>
<!--opt,face 1:N matching threshold-->
<faceQuality min="0" max="100"/>
<!--opt,face picture quality-->
<faceRecogizeTimeOut min="0" max="20"/>
<!--opt,face recognition overtime, 0 - infinite, that is 0xff-->
<faceRecogizeInterval min="0" max="10"/>
<!--opt,time interval of face continuous recognition, 0- no delay, that is 0xff-->
<cardReaderFunction opt="fingerPrint,face,fingerVein"/>
<!--opt,card reader types-->
<cardReaderDescription min="1" max="32"/>
<!--opt,card reader description-->
<faceImageSensitometryl min="0" max="65535"/>
<!--opt, face picture exposure-->
<livingBodyDetect opt="disable,enable"/>
<!--opt, face detection-->
<faceMatchThreshold1 min="0" max="100"/>
<!--opt,Face 1:1 matching threshold-->

281
Device Network SDK (Access Control on Card) Developer Guide

<buzzerTime min="0" max="5999"/>


<!--opt, buzzing time-->
<faceMatch1SecurityLevel opt="normal, more secure, extremely secure"/>
<!--opt, face picture 1:1 security level: 1-normal, 2-high, 3-higher-->
<faceMatchNSecurityLevel opt="0,1,2"/>
<!--opt, face picture 1:N security level: 1-normal, 2-high, 3-higher-->
<envirMode opt="normal, more secure, extremely secure"/>
<!--opt, face recognition environment mode: 0-invalid, 1-indoor, 2-other -->
<liveDetLevelSet opt="0,1,2,3"/>
<!--opt, set live face detection threshold level: 0-invalid, 1-low, 2-medium, 3-high-->
<liveDetAntiAttackCntLimit min="0"max="255"/>
<!--opt, max. live face detection failed attempts-->
<enableLiveDetAntiAttack opt="0,1,2"/>
<!--opt, whether enable locking face: 0-invalid, 1-disabled, 2-enabled-->
<fingerPrintCapacity min="" max=""/>
<!--ro, opt, xs:integer, fingerprint capacity-->
<fingerPrintNum min="" max=""/>
<!--ro, opt, xs:integer, the number of existed fingerprints-->
<enableFingerPrintNum opt="true"/>
<!--ro, opt, xs:boolean, enable fingerprint capacity or not (when it is "true", fingerPrintCapacity and fingerPrintNum
are valid)-->
<envirMode opt="0,1,2"></envirMode>
<!--opt, environment mode of face recognition, 0-invalid, 1-indoor, 2-other->
<liveDetLevelSet opt="0,1,2,3"></liveDetLevelSet>
<!--opt, set live face detection security level, 0-invalid, 1-normal, 2-high, 3-higher-->
<liveDetAntiAttackCntLimit min="0"max="255">/liveDetAntiAttackCntLimit>
<!--opt, maximum failed attempts-->
<enableLiveDetAntiAttack opt="0,1,2">
<!--opt, enable locking face, 0-invalid, 1-disable, 2-enable-->
</enableLiveDetAntiAttack>
<faceContrastMotionDetLevel opt="low,middle,high"/><!--opt, motion detection level during face picture
comparison: low, middle, high-->
<dayFaceMatchThresholdN min="0" max="100"/><!--opt, 1:N face picture comparison threshold in day-->
<nightFaceMatchThresholdN min="0" max="100"/><!--opt, 1:N face picture comparison threshold at night-->
<faceRecogizeEnable opt="true,false,multi"/><!-opt, whether to enable facial recognition: "true"-yes (one
face),"false"-no, "multi"-yes (multiple faces)-->
<supportDelFPByID opt="true"/>
<!--ro, opt, xs:boolean, whether the fingerprint module supports deleting fingerprint by fingerprint ID: "true"-yes,
"false"-no-->
<defaultVerifyMode opt="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27"/>
<!--ro, opt, card reader authentication mode (factory default): 1-sleeping mode, 2-card swiping + password, 3-card
swiping, 4-card swiping or password, 5-fingerprint, 6-fingerprint + password, 7-fingerprint or card swiping, 8-
fingerprint + card swiping, 9-fingerprint + card swiping + password, 10-face or fingerprint or card swiping or password,
11-face + fingerprint, 12-face + password, 13-face + card swiping, 14-face, 15-employee ID + password, 16-fingerprint
or password, 17-employee ID + fingerprint, 18-employee ID + fingerprint + password, 19-face + fingerprint + card
swiping, 20-face + password + fingerprint, 21-employee ID + face, 22-face or face + card swiping, 23-fingerprint or
face, 24-card swiping or face or password, 25-card or face, 26-card or face or fingerprint, 27-card or fingerprint or
password-->
<fingerPrintCapacity min="" max=""/><!--ro, opt, xs: integer, fingerprint capacity, this node is valid only when
enableFingerPrintNum is "true"-->
<fingerPrintNum min="" max=""/><!--ro, opt, xs: integer, number of exiting fingerprints, this node is valid only when
enableFingerPrintNum is "true"-->

282
Device Network SDK (Access Control on Card) Developer Guide

<enableFingerPrintNum opt="true"/><!--ro, opt, xs: boolean, whether to enable fingerprint capacity-->


<blackFaceMatchThreshold min="0" max="100"/><!--opt, face picture comparison threshold in blacklist-->
</CardReaderCfg>
<AcsUpgrade><!--req, upgrade capability of access control device-->
<hostUpgrade>
<!--req, whether to support upgrading main module-->
</hostUpgrade>
<cardReaderUpgrade>
<!--req, whether to support upgrading card reader-->
</cardReaderUpgrade>
<localControllerUpgrade>
<!--req, whether to support upgrading distributed access controller-->
</localControllerUpgrade>
<channelControllerUpgrade>
<!--req,whether to support upgrading lane access controller-- >
</channelControllerUpgrade>
<extensionModuleUpgrade>
<!--req, whether to support upgrading extension module-->
</extensionModuleUpgrade>
<smartLockUpgrade>
<!--req, whether to support upgrading smart lock-->
</smartLockUpgrade>
<cardReaderFPAlgorithmUpgrade>
<!--req, whether to support upgrading fingerprint algorithm program of fingerprint module-->
</cardReaderFPAlgorithmUpgrade>
<outdoorModules>
<!--opt, whether to support upgrading the modules of door station, if not support, this node will not be returned-->
</outdoorModules>
<modules opt="keybord,display,button,card,signal"/>
<!--opt,supported module type, “keybord”-keypad module, “display”-display module,”button”-nametag module.
“card”-card reader, “signal”-indicator module, if not support, this node will not be returned-->
</AcsUpgrade>
<clearAcsParam
opt="doorstatusweekplan,cardreaderverifyweek,cardrightweekplan,doorstatusholidayplan,cardreaderverifyholidaypla
n,cardrightholidayplan,doorstatusholidayplan,doorstatusholidaygroup,cardreaderverifyholidaygroup,cardrightplantem
plate,doorstatusplantemolate,cardreaderverifyplantemplate,card,group,antisneak,eventandCardLinkage,cardPasswdO
pendoor,personStatistics, blackListPicture, IDBlackList"/>
<!--req, supported parameters clearing option -->
<ACSClearParam>
<!--req, extend clear access control host parameter node-->
<localControllerID min="" max=""/>
<!--opt, distributed access controller No.-->
</ACSClearParam>
<MultiHostAntiSneak>
<!--req, over-controllers anti-passback -->
<startAntiSnealHost opt="true,false"/>
<!--opt, whether to enable anti-passback controller -->
<antiSnealHostNum min="" max=""/>
<!--req, controller number for anti-passback controller group -->
<ReadersCfg>
<!--req, over-controllers anti-passback card reader parameters -->
<maxRouteGroupNum></maxRouteGroupNum>

283
Device Network SDK (Access Control on Card) Developer Guide

<!--req, max. path number -->


<oneRouteReadersNum min="" max=""/>
<!--req, follow-up card reader number for each path -->
</ReadersCfg>
</MultiHostAntiSneak>

<AcsHostCfg>
<!--opt, access control settings capability -->
<enableRS485Backup opt="true,false"/>
<!--req, whether to support downstream RS485 communication backup -->
<showCapPic opt="true,false"/>
<!--opt,whether to support displaying captured picture on LCD screen-->
<showCardNo opt="true,false"/>
<!--opt,whether to support displaying card No. on LCD screen-->
<showUserInfo opt="true,false"/>
<!--opt,whether to support displaying user information on LCD screen-->
<overlayUserInfo opt="true,false"/>
<!--opt,Whether to overlay user information on the captured picture-->
<voicePrompt opt="true,false"/>
<!--opt,Whether to support sound prompt-->
<uploadCapPic opt="true,false"/>
<!--opt, Whether to support uploading picture after capturing-->
<saveCapPic opt="true,false"/>
<!--opt,Whether to support saving captured picture-->
<inputCardNo opt="true,false"/>
<!--opt, whether supports inputting card No. by button-->
<wifiDetect opt="true,false"/>
<!--opt, whether supports enabling Wi-Fi probe-->
<enable3G4G opt="true,false"/>
<!--opt, enable 3G/4G-->
<protocol opt="Private,OSDP"/>
<!--opt, card reader communication protocol type: "Private"-private protocol (default), "OSDP"-OSDP protocol-->
</AcsHostCfg>

<EventLinkage>
<!--req, event card linkage-->
<maxEventNum></maxEventNum>
<!--req, max. event linkage number supported by the device -->
<supportMode opt="Event,CardNo,MAC,EmployeeNo"/>
<!--req, supported linkage method, "Event"-event linkage, "CardNo"-Card No. linkage, "MAC"-MAC address linkage,
"EmployeeNo"-Employee No. (person ID)-->
<isSupportRecordVideo opt="true,false"/>
<!--req, whether supports recording linkage-->
<supportLocalController>enable</supportLocalController>
<!--req, support distributed access controller-->
<isSupportAlarmOutClose opt="true,false"/>
<!--req, whether supports disabling linked alarm output-->
<isSupportAlarmInSetup opt="true,false"/>
<!--req, whether supports arming linked zone-->
<isSupportAlarmInClose opt="true,false"/>
<!--req, whether supports disarming linked zone-->
<isSupportMainDevStopBuzzer opt="true,false"/>

284
Device Network SDK (Access Control on Card) Developer Guide

<!--req, whether supports stopping buzzing by access controller-->


<isSupportReaderStopBuzzer opt="true,false"/>
<!--req, whether supports stopping buzzing by linked card reader-->
<audioDisplayMode opt="Close,SinglePlay,CyclePlay"/>
<!--required, linked audio prompt mode: "Close"-disable, "SinglePlay"-play once, "CyclePlay"-loop playing-->
<audioDisplayID min="1" max="32"/>
<!--required, linked audio prompt mode: "Close"-disable, "SinglePlay"-play once, "CyclePlay"-loop playing-->
<isNotSupportOpenDoor>
<!--opt, whether the opening door linkage is not supported-->
</isNotSupportOpenDoor>
<isNotSupportCloseDoor>
<!--opt, whether the closing door linkage is not supported-->
</isNotSupportCloseDoor>
<isNotSupportNormalOpen>
<!--opt, whether the remaining door open is not supported-->
</isNotSupportNormalOpen>
<isNotSupportNormalClose>
<!--opt, whether the remaining door closed is not supported-->
</isNotSupportNormalClose>
<isNotSupportAlarmout>
<!--opt, whether the alarm output linkage is not supported-->
</isNotSupportAlarmout>
<isNotSupportCapturePic>
<!--opt, whether the capture linkage is not supported-->
</isNotSupportCapturePic>
<isNotSupportMainDevBuzzer>
<!--opt, whether not supports buzzing linkage of access controller, if supports, this node will not return-->
</isNotSupportMainDevBuzzer>
<isNotSupportReaderBuzzer>
<!--opt, whether not supports buzzing linkage of card reader, if supports, this node will not returned-->
</isNotSupportReaderBuzzer>
<purePwdVerifyEnable><!--optional, boolean, whether the device supports opening the door only by password:
true-yes, this node is not returned-no--></purePwdVerifyEnable>
<!--For opening the door only by password: 1. The password in "XXX or password" in the authentication mode refers
to the person's password (the value of the node password in JSON_UserInfo); 2. The device will not check the
duplication of the password, and the upper platform should ensure that the password is unique; 3. The password
cannot be added, deleted, edited, or searched for on the device locally-->
<EventList>
<EventEntry>
<Index>0</Index>
<mainEventName>DevEvent</mainEventName>
<SubEventNameList>
<subEventName>hostAntiDismantle</subEventName>
<!--req, controller tampering alarm -->
<subEventName>OfflineEcentNearlyFull</subEventName>
<!--req, alarm for offline event exceeding 90% -->
<subEventName>NetBroken</subEventName>
<!--req, network disconnected -->
<subEventName>NetRume</subEventName>
<!--req, network recovery -->
<subEventName>LowBattery</subEventName>
<!--req, battery low voltage -->

285
Device Network SDK (Access Control on Card) Developer Guide

<subEventName>BatteryReume</subEventName>
<!--req, battery voltage recovered -->
<subEventName>ACOff</subEventName>
<!--req, AC power off -->
<subEventName>ACResume</subEventName>
<!--req, AC power recovery-->
<subEventName>SDCardFull</subEventName>
<!--req,SD card full alarm-->
<subEventName>LinkageCapturePic</subEventName>
<!--req,Linked capture event alarm-->
<subEventName>ImageQualityLow</subEventName>
<!--req,low face picture quality-->
<subEventName>FingerPrintQualityLow</subEventName>
<!--req,low fingerprint picture quality-->
<subEventName>BatteryElectricLow</subEventName>
<!--req,low battery voltage (for face device only)-->
<subEventName>BatteryElectricResume</subEventName>
<!--req,battery voltage recovery (for face device only)-->
<subEventName>FireImportShortCircuit</subEventName>
<!--req fire input short-circuit alarm-->
<subEventName>FireImportBrokenCircuit</subEventName>
<!--req fire input broken-circuit alarm-->
<subEventName>FireImportResume</subEventName>
<!--req fire input recovery-->
<subEventName>MasterRS485LoopnodeBroken</subEventName>
<!--req master controller RS485 loop node disconnection-->
<subEventName>MasterRS485LoopnodeResume</subEventName>
<!--req master controller RS485 loop node connection recovery-->
<subEventName>DistractControllerOnLine</subEventName>
<!--req,Distributed controller online-->
<subEventName>DistractControllerOffLine</subEventName>
<!--req,Distributed controller offline-->
<subEventName>FireButtonTrigger</subEventName>
<!--req,Fire button triggered-->
<subEventName>FireButtonResume</subEventName>
<!--req,Fire button recovered-->
<subEventName>MaintenanceButtonTrigger</subEventName>
<!--req,Maintenance button triggered-->
<subEventName>MaintenanceButtonResume</subEventName>
<!--req,Maintenance button recovered-->
<subEventName>EmergencyButtonTrigger</subEventName>
<!--req,Emergency button triggered-->
<subEventName>EmergencyButtonResume</subEventName>
<!--req,Emergency button recovered-->
<subEventName>LocalControlOffline</subEventName>
<!--req distributed access controller offline-->
<subEventName>LocalControlResume</subEventName>
<!--req, distributed access controller connection recovered-->
<subEventName>LocalDownsideRS485LoopNodeBroken</subEventName>
<!--req, distributed access controller downlink RS485 loop disconnection-->
<subEventName>LocalDownsideRS485LoopNodeResume</subEventName>
<!--req, distributed access controller downlink RS485 loop connection recovered-->

286
Device Network SDK (Access Control on Card) Developer Guide

<subEventName>SubmarinebackCommBreak</subEventName>
<!--req, disconnected with anti-passing back server-->
<subEventName>SubmarinebackCommResume</subEventName>
<!--req, resume connection with anti-passing back server-->
<subEventName>RemoteActualGuard</subEventName>
<!--req, remote real-time arming-->
<subEventName>RemoteActualUnguard</subEventName>
<!--req, remote real-time disarming-->
<subEventName>MotorSensorException</subEventName>
<!--req, motor or sensor exception-->
<subEventName>CanBusException</subEventName>
<!--req, CAN bus exception-->
<subEventName>CanBusResume</subEventName>
<!--req, CAN bus restored-->
<subEventName>GateTemperatureOverrun</subEventName>
<!--req, too high pedestal temperature-->
<subEventName>IREmitterException</subEventName>
<!--req, active infrared intrusion detector exception-->
<subEventName>IREmitterResume</subEventName>
<!--req, active infrared intrusion detector restorted-->
<subEventName>LampBoardCommException</subEventName>
<!--req, communication with light board failed-->
<subEventName>LampBoardCommResume</subEventName>
<!--req, communication with light board restored-->
<subEventName>IRAdaptorBoardCommException</subEventName>
<!--req, communicated with IR adaptor exception-->
<subEventName>IRAdaptorBoardCommResume</subEventName>
<!--req, communication with IR adaptor restored-->
<subEventName>ChannelControllerDesmantleAlarm</subEventName>
<!--req, lane controller tampering alarm-->
<subEventName>ChannelControllerDesmantleResume</subEventName>
<!--req, lane controller tampering alarm restored-->
<subEventName>ChannelControllerFireImportAlarm</subEventName>
<!--req, lane controller fire input alarm-->
<subEventName>ChannelControllerFireImportResume</subEventName>
<!--req, lane controller fire input alarm restored-->
<subEventName>StayEvent</subEventName>
<!--opt, loitering event-->
<subEventName>LegalEventNearlyFull</subEventName>
<!--opt, alarm of no memory for legal offline event storage-->
</SubEventNameList>
</EventEntry>
<EventEntry>
<Index>1</Index>
<mainEventName>AlarmEvent</mainEventName>
<SubEventNameList>
<subEventName>AlarminShortCircuit</subEventName>
<!--req, zone short circuit alarm-->
<subEventName>AlarminBrokenCircuit</subEventName>
<!--req, zone open circuit alarm -->
<subEventName>AlarminException</subEventName>
<!--req, zone exception alarm -->

287
Device Network SDK (Access Control on Card) Developer Guide

<subEventName>AlarmResume</subEventName>
<!--req, zone alarm recovery -->
<subEventName>CaseSensorAlarm</subEventName>
<!--req, event input alarm -->
<subEventName>CaseSensorResume</subEventName>
<!--req, event input recovery -->
</SubEventNameList>
</EventEntry>
<EventEntry>
<Index>2</Index>
<mainEventName>DoorEvent</mainEventName>
<SubEventNameList>
<subEventName>LeaderCardOpenBegin</subEventName>
<!--req, first card opening door starts -->
<subEventName>LeaderCardOpenStop</subEventName>
<!--req, first card open status door ends -->
<subEventName>AlwaysOpenBegin</subEventName>
<!--req, remained open status starts -->
<subEventName>AlwaysOpenStop</subEventName>
<!--req, remained open status ends -->
<subEventName>AlwaysCloseBegin</subEventName>
<!--req, remained closed status ends -->
<subEventName>AlwaysCloseStop</subEventName>
<!--req, remaining closed status ends-->
<subEventName>LockOpen</subEventName>
<!--req, open the door lock -->
<subEventName>LockClose</subEventName>
<!--req, close the lock -->
<subEventName>DoorButtonPress</subEventName>
<!--req, exit button pressed -->
<subEventName>DoorButtonRelease</subEventName>
<!--req, exit button released -->
<subEventName>DoorOpenNormal</subEventName>
<!--req, normally open the door (door magnetic) -->
<subEventName>DoorCloseNormal</subEventName>
<!--req, normally close the door (door magnetic) -->
<subEventName>DoorOpenAbnormal</subEventName>
<!--req, door opening exception (door magnetic )-->
<subEventName>DoorOpenTimeout</subEventName>
<!--req, door opening timeout (door magnetic )-->
<subEventName>RemoteOpenDoor</subEventName>
<!--req, remotely open the door-->
<subEventName>RemoteCloseDoor</subEventName>
<!--req, remotely closed the door-->
<subEventName>RemoteAlwaysOpen</subEventName>
<!--req, remotely remain open -->
<subEventName>RemoteAlwaysClose</subEventName>
<!--req, remotely remain closed -->
<subEventName>NotBelongMultiCard</subEventName>
<!--req, the card is not associated to the multi-authentication group-->
<subEventName>InvalidMultiVerifyPeriod</subEventName>
<!--req, the card is not in the multi-authentication time period -->

288
Device Network SDK (Access Control on Card) Developer Guide

<subEventName>MultiVerifySuperRightFail</subEventName>
<!--req, super password authentication failed -->
<subEventName>MultiVerifyRemoteRightFail</subEventName>
<!--req, remote authentication failed -->
<subEventName>MultiVerifySuccess</subEventName>
<!--req, successfully multi -authentication -->
<subEventName>MultiVerifyNeedRemoteOpen</subEventName>
<!--req, multi-authentication needs remote opening door -->
<subEventName>MultiVerifySuperRightSuccess</subEventName>
<!--req, successfully super password -->
<subEventName>MultiVerifyRepeatFail</subEventName>
<!--req, repeat authentication failed -->
<subEventName>MultiVerifyTimeout</subEventName>
<!--req, multi-authentication timeout -->
<subEventName>RemoteCapturePic</subEventName>
<!--req,remote capture-->
<subEventName>DoorBellRing</subEventName>
<!--req,door bell ringing-->
<subEventName>CallCenter</subEventName>
<!--req, call center-->
<subEventName>FirstCardAuthorizeBegin</subEventName>
<!--req,first card authorization started-->
<subEventName>FirstCardAuthorizeEnd</subEventName>
<!--req,first card authorization ended-->
<subEventName>FirstCardOpenWithoutAuthorize</subEventName>
<!--req,open door with unauthorized first card failed.-->
<subEventName>SecurityMoudleDesmantleAlarm</subEventName>
<!--req, door control security module anti-tamper alarm-->
<subEventName>FirstCardAuthorizeBegin</subEventName>
<!--req first card authorization start-->
<subEventName>FirstCardAuthorizeEnd</subEventName>
<!--req first card authorization end-->
<subEventName>DoorLockInputShortCircuit</subEventName>
<!--req door lock input short-circuit alarm-->
<subEventName>DoorLockInputBrokenCircuit</subEventName>
<!--req door lock input broken-circuit alarm-->
<subEventName>DoorLockInputException</subEventName>
<!--req door lock input exception alarm-->
<subEventName>DoorContactInputShortCircuit</subEventName>
<!--req magnet input short-circuit alarm-->
<subEventName>DoorContactInputBrokenCircuit</subEventName>
<!--req magnet input broken-circuit alarm-->
<subEventName>DoorContactInputException</subEventName>
<!--req magnet input exception alarm-->
<subEventName>OpenButtonInputShortCircuit</subEventName>
<!--req door button input short-circuit alarm-->
<subEventName>OpenButtonInputBrokenCircuit</subEventName>
<!--req door button input broken-circuit alarm-->
<subEventName>OpenButtonInputException</subEventName>
<!--req door button input exception alarm-->
<subEventName>DoorLockOpenException</subEventName>
<!--req door lock open exception-->

289
Device Network SDK (Access Control on Card) Developer Guide

<subEventName>DoorLockOpenTimeout</subEventName>
<!--req door lock open timeout-->
<subEventName>FirstCardOpenWithoutAuthorize</subEventName>
<!--req first card failed to open door without authorization-->
<subEventName>CallLadderRelayBreak</subEventName>
<!--req,Elevator relay disconnected-->
<subEventName>CallLadderRelayClose</subEventName>
<!--req,Elevator relay connected-->
<subEventName>AutoKeyRelayBreak</subEventName>
<!--req,Auto-button relay disconnected-->
<subEventName>AutoKeyRelayClose</subEventName>
<!--req,Auto-button relay connected-->
<subEventName>KeyControlRelayBreak</subEventName>
<!--req,Button relay disconnected-->
<subEventName>KeyControlRelayClose</subEventName>
<!--req,Button relay connected-->
<subEventName>RemoteVisitorCallLadder</subEventName>
<!--req,Visitor called elevator-->
<subEventName>RemoteHouseholdCallLadder</subEventName>
<!--req,Resident called elevator-->
<subEventName>LegalMessage</subEventName>
<!--req, valid message-->
<subEventName>IllegalMessage</subEventName>
<!--req, invalid message-->
<subEventName>Trailing</subEventName>
<!--req, tailgating-->
<subEventName>ReverseAccess</subEventName>
<!--req, reserve passing-->
<subEventName>ForceAccess</subEventName>
<!--req, force accessing-->
<subEventName>ClimbingOverGate</subEventName>
<!--req, climbing over barrier-->
<subEventName>PassingTimeout</subEventName>
<!--req, passing timed out-->
<subEventName>IntrusionAlarm</subEventName>
<!--req, intrusion alarm-->
<subEventName>FreeGatePassNotAuth</subEventName>
<!--req, authentication failed when free passing the turnstile-->
<subEventName>DropArmBlock</subEventName>
<!--req, barrier obstructed-->
<subEventName>DropArmBlockResume</subEventName>
<!--req, barrier obstruction restored-->
<subEventName>RemoteControlCloseDoor</subEventName>
<!--req, close door via keyfob-->
<subEventName>RemoteControlOpenDoor</subEventName>
<!--req, open door via keyfob-->
<subEventName>RemoteControlAlwaysOpenDoor</subEventName>
<!--req, remain door open via keyfob-->
</SubEventNameList>
</EventEntry>
<EventEntry>
<Index>3</Index>

290
Device Network SDK (Access Control on Card) Developer Guide

<mainEventName>ReaderEvent</mainEventName>
<SubEventNameList>
<subEventName>StressAlarm</subEventName>
<!--req, duress alarm-->
<subEventName>ReaderDesmantleAlarm</subEventName>
<!--req, card reader tamper-proof alarm-->
<subEventName>LegalCardPass</subEventName>
<!--req, valid card successfully authenticated -->
<subEventName>CardAndPasswdPass</subEventName>
<!--req, card and password successfully authenticated -->
<subEventName>CardAndPasswdFail</subEventName>
<!--req, card and password authentication failed -->
<subEventName>CardAndPasswdTimeout</subEventName>
<!--req, card and password authentication timeout -->
<subEventName>CardMaxAuthenticateFail</subEventName>
<!--req, card reader authentication over times -->
<subEventName>CardNoRight</subEventName>
<!--req, no permission for the card -->
<subEventName>CardInvalidPeriod</subEventName>
<!--req, invalid time segment -->
<subEventName>CardOutofDate</subEventName>
<!--req, card exceeds the validate -->
<subEventName>InvalidCard</subEventName>
<!--req, invalid card No. -->
<subEventName>AntiSneakFail</subEventName>
<!--req, anti-passback authentication failed -->
<subEventName>InterlockDoorNotClose</subEventName>
<!--req, interlocking door not closed -->
<subEventName>FingerprintComparePass</subEventName>
<!--req, Fingerprint Recognition Passed-->
<subEventName>FingerprintCompareFail</subEventName>
<!--req, Fingerprint Recognition Failed-->
<subEventName>CardFingerprintVerifyPass</subEventName>
<!--req, Card + Fingerprint Authentication Passed-->
<subEventName>CardFingerprintVerifyFail</subEventName>
<!--req,Card + Fingerprint Authentication Failed-->
<subEventName>CardFingerprintVerifyTimeout</subEventName>
<!--req,Card + Fingerprint Authentication Timeout-->
<subEventName>CardFingerprintPasswdVerifyPass</subEventName>
<!--req, Card + Fingerprint + Password Authentication Passed-->
<subEventName>CardFingerprintPasswdVerifyFail</subEventName>
<!--req, Card + Fingerprint + Password Authentication Failed-->
<subEventName>CardFingerprintPasswdVerifyTimeout</subEventName>
<!--req, Card + Fingerprint + Password Authentication Timeout-->
<subEventName>FingerprintPasswdVerifyPass</subEventName>
<!--req, Fingerprint + Password Authentication Passed-->
<subEventName>FingerprintPasswdVerifyFail</subEventName>
<!--req, Fingerprint + Password Authentication Failed-->
<subEventName>FingerprintPasswdVerifyTimeout</subEventName>
<!--req, Fingerprint + Password Authentication Timeout-->
<subEventName>FingerprintInexistence</subEventName>
<!--req, No Fingerprint-->

291
Device Network SDK (Access Control on Card) Developer Guide

<subEventName>FaceVerifyPass</subEventName>
<!--req, Face Authentication Passed-->
<subEventName>FaceVerifyFail</subEventName>
<!--req, Face Authentication Failed-->
<subEventName>FaceAndFpVerifyPass</subEventName>
<!--req, Face + Fingerprint Authentication Passed-->
<subEventName>FaceAndFpVerifyFail</subEventName>
<!--req,Face + Fingerprint Authentication Failed-->
<subEventName>FaceAndFpVerifyTimeout</subEventName>
<!--req, Face + Fingerprint Authentication Timeout-->
<subEventName>FaceAndPwVerifyPass</subEventName>
<!--req, Face + Password Authentication Passed-->
<subEventName>FaceAndPwVerifyFail</subEventName>
<!--req, Face + Password Authentication Failed-->
<subEventName>FaceAndPwVerifyTimeout</subEventName>
<!--req, Face + Password Authentication Timeout-->
<subEventName>FaceAndCardVerifyPass</subEventName>
<!--req, Face + Card Authentication Passed-->
<subEventName>FaceAndCardVerifyFail</subEventName>
<!--req, Face + Card Authentication Failed-->
<subEventName>FaceAndCardVerifyTimeout</subEventName>
<!--req,Face + Card Authentication Timeout-->
<subEventName>FaceAndPwAndFpVerifyPass</subEventName>
<!--req,Face + Password + Fingerprint Authentication Passed-->
<subEventName>FaceAndPwAndFpVerifyFail</subEventName>
<!--req,Face + Password + Fingerprint Authentication Failed-->
<subEventName>FaceAndPwAndFpVerifyTimeout</subEventName>
<!--req,Face + Password + Fingerprint Authentication Timeout-->
<subEventName>FaceAndCardAndFpVerifyPass</subEventName>
<!--req,Face + Card + Fingerprint Authentication Passed-->
<subEventName>FaceAndCardAndFpVerifyFail</subEventName>
<!--req,Face + Card + Fingerprint Authentication Failed-->
<subEventName>FaceAndCardAndFpVerifyTimeout</subEventName>
<!--req,Face + Card + Fingerprint Authentication Timeout-->
<subEventName>EmployeeAndFpVerifyPass</subEventName>
<!--req,Employee No. + Fingerprint Authentication Passed-->
<subEventName>EmployeeAndFpVerifyFail</subEventName>
<!--req,Employee No. + Fingerprint Authentication Failed-->
<subEventName>EmployeeAndFpVerifyTimeout</subEventName>
<!--req,Employee No. + Fingerprint Authentication Timeout-->
<subEventName>EmployeeAndFpAndPwVerifyPass</subEventName>
<!--req,Employee No. + Fingerprint + Password Authentication Passed-->
<subEventName>EmployeeAndFpAndPwVerifyFail</subEventName>
<!--req,Employee No. + Fingerprint + Password Authentication Failed-->
<subEventName>EmployeeAndFpAndPwVerifyTimeout</subEventName>
<!--req,Employee No. + Fingerprint + Password Authentication Timeout-->
<subEventName>EmployeeAndFaceVerifyPass</subEventName>
<!--req,Employee No. + Face Authentication Passed-->
<subEventName>EmployeeAndFaceVerifyFail</subEventName>
<!--req,Employee No. + Face Authentication Failed-->
<subEventName>EmployeeAndFaceVerifyTimeout</subEventName>
<!--req,Employee No. + Face Authentication Timeout-->

292
Device Network SDK (Access Control on Card) Developer Guide

<subEventName>FaceRecognizeFail</subEventName>
<!--req, Face picture recognization failed-->
<subEventName>EmployeeAndPwVerifyPass</subEventName>
<!--req,Employee No. + Password Authentication Passed-->
<subEventName>EmployeeAndPwVerifyFail</subEventName>
<!--req,Employee No. + Password Authentication Failed-->
<subEventName>EmployeeAndPwVerifyTimeout</subEventName>
<!--req,Employee No. + Password Authentication Timeout-->
<subEventName>DoorOpenOrDormantFail</subEventName>
<!--req,door remains closed or sleepy status authentication failed.-->
<subEventName>AuthPlanDormantFail</subEventName>
<!--req,authentication of sleepy mode in the schedule failed.-->
<subEventName>CardEncryptVerifyFail</subEventName>
<!--req,authentication of card encryption failed.-->
<subEventName>SubmarinebackReplyFail</subEventName>
<!--req,response of anti-passing back server failed.-->
<subEventName>PasswordMismatch</subEventName>
<!--opt, password mismatched.-->
<subEventName>EmployeeNoNotExist</subEventName>
<!--req, the employee ID does not exist.-->
<subEventName>CombinedVerifyPass</subEventName>
<!--req, authenticated .-->
<subEventName>CombinedVerifyTimeout</subEventName>
<!--req, authentication timed out.-->
<subEventName>VerifyModeMismatch</subEventName>
<!--req, authentication mode mismatched.-->
<subEventName>PasswordVerifyPass</subEventName>
<!--optional, password authenticated-->
<subEventName>HumanDetectFail</subEventName>
<!--req,human detection failed.-->
<subEventName>PeopleAndIdCardComparePass</subEventName>
<!--req, face and ID card authenticated-->
<subEventName>PeopleAndIdCardCompareFail</subEventName>
<!--req, face and ID card authentication failed-->
<subEventName>InformalMifareCardVerifyFail</subEventName>
<!--opt, authentication failed: invalid Mifare card-->
<subEventName>CPUCardEncryptVerifyFail</subEventName>
<!--opt, verifying CPU card encryption failed-->
<subEventName>NFCDisableVerifyFail</subEventName>
<!--opt, disabling NFC verification failed-->
<subEventName>EMCardRecognizeNotEnabled</subEventName>
<!--opt, EM card recognition is disabled-->
<subEventName>M1CardRecognizeNotEnabled</subEventName>
<!--opt, M1 card recognition is disabled-->
<subEventName>CPUCardRecognizeNotEnabled</subEventName>
<!--opt, CPU card recognition is disabled-->
<subEventName>IDCardRecognizeNotEnabled</subEventName>
<!--opt, ID card recognition is disabled-->
<subEventName>CardSetSecretKeyFail</subEventName>
<!--opt, importing key to the card failed-->
</SubEventNameList>
</EventEntry>

293
Device Network SDK (Access Control on Card) Developer Guide

</EventList>
</EventLinkage>

<FingerPrint>
<!--req, fingerprint parameters -->
<enable opt="true,false"/>
<!--req, whether to support fingerprint settings -->
<cardNo min="" max=""/>
<!--req, card No. length -->
<fingerPrintLen min="" max=""/>
<!--req, fingerprint data length-->
<EnableCardReader min="" max=""/>
<!--req, supported card reader No.-->
<fingerType opt="Normal,Stress,patrolFP,superFP,dismissingFP"/>
<!--req, "Normal"-normal fingerprint, "Stress"-duress fingerprint, "patrolFP"-patrol fingerprint, "superFP"-super
fingerprint, "dismissingFP"-dismiss fingerprint-->
<fingerPrintID min="" max=""/>
<!--req, finger ID-->
<callbackMode opt="allRetrun,partReturn"/>
<!--req, callback mode, allRetrun-block (return after all the card readers are offline), partReturn-non-block (return
after a part of card readers are offline)-->
<isSupportFingerNo/>
<!--opt, boolean, whether the device supports setting finger ID: "true"-yes-->
<recvStatus opt="0,1,2,3,4,5,6,7,8,9,10"/>
<!--opt, error status: 0-success, 1-incorrect finger ID, 2-incorrect fingerprint type, 3-invalid card No. (the card No.
does not meet the device requirements), 4-the fingerprint is not linked with employee No. or card No. (the employee
No. or the card No. is NULL), 5-the employee No. does not exist, 6-the fingerprint data length is 0, 7-invalid card
reader No., 8-invalid employee No., 9-invalid first-time authentication value, 10-other parameters error-->
<employeeNo min="" max=""/>
<!--opt, employee No. (person ID)-->
<leaderFP opt="true"/>
<!--opt, whether the fingerprint supports first-time authentication: "true"-yes, "false" or this node is not returned-
no-->
<isSupportFingerCover>
<!--opt, xs:boolean, whether to overwrite the old fingerprint information when applying a new fingerprint
information linked to the same employee No. (person ID): "true"-yes, this node is not returned-no-->
</isSupportFingerCover>
</FingerPrint>
<DelFingerPrint>
<!--req, delete fingerprint parameter, which corresponds to the command NET_DVR_DEL_FINGERPRINT_CFG_V50.
This node will not be returned if device does not support this function. After calling the API
NET_DVR_StartRemoteConfig with command NET_DVR_DEL_FINGERPRINT_CFG_V50, if this node is returned, you
should wait for the return of callback function to get the actual deleting result; if this node is not returned, the return
of API NET_DVR_StartRemoteConfig already indicates the deleting result-->
<delFingerPrintMode opt="byCard,byReader"/>
<!--req, deleting fingerprint mode: byCard-by card No., byReader- by card reader-->
<FingerPrintStatus>
<!--req, delete fingerprint status-->
<cardReaderNo min="" max=""/>
<!--req, fingerprint recorder No.-->
<status min="0" max="3"/>
<!--req, status: 0-invalid, 1-handling, 2-deleting failed, 3-completed-->

294
Device Network SDK (Access Control on Card) Developer Guide

</FingerPrintStatus>
<employeeNo min="" max=""/>
<!--req, employee No. (person ID)-->
</DelFingerPrint>

<SMS>
<enable opt="true,false"/>
<!--req, whether to support SMS funtion -->
<PhoneLinkageDoor>
<!--req, mobile phone links with door -->
<openRight opt="true,false"/>
<!--req, door opening permission -->
<closeRight opt="true,false"/>
<!--req, door closing permission -->
<NormalOpenRight opt="true,false"/>
<!--req, door remained opening permission -->
<NormalCloseRight opt="true,false"/>
<!--req, door remained closing permission -->
<armRight opt="true,false"/>
<!--req, arming permission -->
<DisarmRight opt="true,false"/>
<!--req, disarming permission -->
</PhoneLinkageDoor>
<whiteListNum min="1" max="32"/>
<!--req, whitelist number-->
</SMS>
<RealteUserInfo>
<!--req, NET_DVR_CARD_CFG_SEND_DATA and NET_DVR_CARD_USER_INFO_CFG-->
<enabled opt="true,false"/>
<!--req, whether to support card No. being linked to user information-->
<userNameLen min="" max=""/>
<!--req, user name length-->
</RealteUserInfo>
<ContinuousShootCfg>
<!--req,NET_DVR_SNAPCFG-->
<enabled opt="true,false"/>
<!--req,whether to support triggering capture parameters configuration-->
<relatedDriveWay min="" max=""/>
<!--req, IO related vehicle lane No.-->
<snapTimes min="" max=""/>
<!--req, coil capture times:, 0-5-->
<snapWaitTime min="" max=""/>
<!--req, capture waiting time, unit:ms, value range[0,60000]-->
<IntervalTimeList size="4">
<intervalTime min="" max=""/>
<!--req,interval of continuous capture, unit:ms-->
</IntervalTimeList>
<JpegParam>
<picSize
opt="CIF,QCIF,D1,UXGA,SVGA,HD720P,VGA,XVGA,HD900p,HD1080,2560*1920,1600*304,2048*1536,2448*2048,2448
*1200,
2448*800,XGA,SXGA,WD1,1080i,

295
Device Network SDK (Access Control on Card) Developer Guide

576*576,1536*1536,1920*1920,320*240,720*720,1024*768,1280*1280,1600*600,

2048*768,160*120,336*256,384*256,384*216,320*256,320*192,512*384,480*272,512*272,288*320,144*176,
480*640,240*320,120*160,576*720,720*1280,576*960, 180*240, 360*480, 540*720, 720*960, 960*1280,
1080*1440, Auto"/>
<!-- opt,image size-->
<picQuality opt="best,good,general" />
<!-- opt,image quality: 0-Best, 1- Better, 2- Good-->
</JpegParam>
</ContinuousShootCfg>
<PictureCfg>
<!--req,reuse some fields of NET_DVR_PICTURECFG-->
<enableUp opt="true,false"/>
<!--req, whether to support background picture uploading-->
<enableDel opt="true,false"/>
<!--req, whether to support deleting background picture-->
<useType min="" max=""/>
<!--req,picture type, 1- background picture, 2-GIF picture, 3-CAD picture-->
<sequence min="" max=""/>
<!--req, sequence No.-->
<BasemapCfg>
<sourWidth min="" max=""/>
<!--req, initial picture width-->
<sourHeight min="" max=""/>
<!--req, initial picture height-->
</BasemapCfg>
</PictureCfg>
<ExternalDevCfg>

<!--req,NET_DVR_ACS_EXTERNAL_DEV_CFG-->
<IDCardUpMode opt="number,all"/>
<!--req, ID information report, number: upload 18-digit ID number; all: upload all information-->
<cardVerifyMode opt="remoteCenter,clientPlatform"/>
<!--req, card verification mode, remoteCenter: remote center verification; clientPlatform: client platform
verification-->
<ACSDevType
opt="IDCardReader,ICReader,QRCodeReader,fingerPrintReader,QRCodeReaderandScreen,recycleCard,screen,fingerPrin
tModule,voiceModule,peopleAndIdCard"/>
<!--req, device model: 1- ID card reader, 2- IC card reader, 3- QR code reader, 4- Fingerprint reader, 5- Screen + QR
code reader, 6- Card collector, 7- Screen, 8- Fingerprint scanner, 9- Voice module, 10-person and ID card device-->
<doorMode opt="inDoor,outDoor"/>
<!--req, door in/out type, inDoor: enter, outDoor: exit-->
<DevDetailType>
<IDCardReaderType opt="iDR210,IDM10,HikIDCardReader"/>
<!--req, ID card reader model-->
<screenType opt="DC48270RS043_01T,DC80480B070_03T"/>
<!--req,LCD model-->
</DevDetailType>
</ExternalDevCfg>
<PersonnelChannelCfg>
<!--req,NET_DVR_PERSONNEL_CHANNEL_CFG-->
<inMode opt="controlled,forbid,freedom"/>

296
Device Network SDK (Access Control on Card) Developer Guide

<!--req, enter mode, 0- controlled; 1- denied; 2- free-->


<outMode opt="controlled,forbid,freedom"/>
<!--req, exit mode, 0- controlled; 1- denied; 2- free-->
<workMode opt="urgent,repair,normalClose,normalOpen"/>
<!--req, operating mode, 0- emergency, 1- maintenance, 2- normally closed, 3- normally open-->
</PersonnelChannelCfg>
<PlatformVerifyCfg>
<!--req,NET_DVR_PLATFORM_VERIFY_CFG-->
<doorNo min="" max=""/>
<!--req, door No.-->
<resultType opt="legal,illegal"/>
<!--req, verification result type, legal: illegal, illegal: legal-->
<screenDisplay min="" max=""/>
<!--req,LED display character length-->
</PlatformVerifyCfg>
<PersonStatisticsCfg>
<!--req,NET_DVR_PERSON_STATISTICS_CFG-->
<enableStatistics opt="true,false"/>
<!--req, whether to enable people counting-->
<enableOfflineStatistics opt="true,false"/>
<!--req, whether to enable offline people counting-->
<countSignalStatisticalStandard opt="IRDetectPass,AuthQuantity"/>
<!--req, people counting type: IRDetectPass- by IR detection, AuthQuantity- by authentication number-->
</PersonStatisticsCfg>
<ScreenDisplayCfg>
<!--req,NET_DVR_SCREEN_DISPLAY_CFG-->
<FontSize min="" max=""/>
<!--req, font size-->
<rowSpacing min="" max=""/>
<!--req, row space-->
<columnSpacing min="" max=""/>
<!--req, column space-->
<firstRowPosition opt="0,1/8,2/8,3/8,4/8,5/8,6/8,7/8"/>
<!--req, first row position-->
<degree opt="0,90"/>
<!--req, character display direction abgle, unit: degree-->
<screenType opt="DC48270RS043_01T,DC80480B070_03T"/>
<!--req, screen type-->
</ScreenDisplayCfg>
<GateTimeCfg>
<!--req,NET_DVR_GATE_TIME_CFG-->
<holdOnALarmTime min="" max=""/>
<!--req, extend alarm buzzer time, unit: ms -->
<holdOnGateOpenTime min="" max=""/>
<!--req, door open time before receiving close command, unit: ms-->
<postponeIntrusionAlarmTime min="" max=""/>
<!--req, delay trigger intrusion alarm time, unit: ms-->
<noLaneAccessTimeLimitTime min="" max=""/>
<!--req, timeout alarm time for no people passing after channel received valid passing verification signal, unit: s-->
<safetyZoneStayTime min="" max=""/>
<!--req, timeout alarm time for people staying in the channel when reached safety region after the channel received
valid passing verification signal, unit:s-->

297
Device Network SDK (Access Control on Card) Developer Guide

<IRTriggerTimeoutTime min="0" max="255"/>


<!--req, IR triggering timeout, unit: s-->
</GateTimeCfg>
<LocalControllerStatus>enable</LocalControllerStatus>
<!--req, support getting distributed access controller status-->
<searchLocalController>enable</searchLocalController>
<!--req, support searching distributed access controller-->
<showDeviceType opt="Floor"/>
<!--opt,Display device type (by default, display the door parameters if there is no this field),Floor- Displayed floor-->

<FaceParam>
<!--req,Face parameter-->
<enable opt="true"/>
<!--req,whether to support face parameter configuration-->
<cardNo min="" max=""/>
<!--req,Card No. length-->
<faceLen min="" max=""/>
<!--req,Face data length-->
<enableCardReader min="" max=""/>
<!--req,Supported card reader No.-->
<faceID min="" max=""/>
<!--req,Face No.-->
<faceDataType opt="module,picture"/>
<!--req,Face data type (the default type is template if there is no this node)-->
<isSupportFaceCover>
<!--opt, whether supports covering existed data when applying face picture data-->
</isSupportFaceCover>
</FaceParam>
<isSupportGetDeviceEvent opt="true,false"/>
<!--opt, whether to support getting device event: "true"-yes, "false" or this node is not returned-no-->
<isSupportDeployType min="0" max="1"/>
<!--opt, supported arming type: 0-arm via client software, 1-real-time arming>
<UploadRightControllerAudio>
<!--req, uploading audio file of main controller-->
<audioID min="2" max="32"/>
<!--req, audio file ID. 0xffffffff indicates uploading all audio files, and currently the device only supports uploading
all audio files instead of uploading a single audio file by ID-->
</UploadRightControllerAudio>
<DownloadRightControllerAudio>
<!--req, downloading audio file of main controller-->
<audioID min="2" max="32"/>
<!--req, audio file ID. 0xffffffff indicates downloading all audio files, and currently the device only supports
downloading all audio files instead of downloading a single audio file by ID-->
</DownloadRightControllerAudio>
<BlackListPictureParam>
<!--req, parameter of picture in blacklist (NET_DVR_BULK_UPLOAD_BLACK_LIST_PICTURE)-->
<BlackListPictureCond>
<!--req, blacklist picture condition-->
<pictureNum min="" max=""/>
<!--req, picture quantity-->
</BlackListPictureCond>
<cardNo min="" max=""/>

298
Device Network SDK (Access Control on Card) Developer Guide

<!--req, card No.-->


<name min="" max=""/>
<!--req, name-->
<sex opt="male,female"/>
<!--req, gender: male- Male, female- Female-->
<pictureValid opt="invalid,valid"/>
<!--req, whether blacklist picture is valid: invalid- Invalid,valid? Valid-->
<pictureLen min="" max=""/>
<!--req, blacklist picture size-->
<BlackListPictureStatus>
<!--req, blacklist picture status-->
<cardNo min="" max=""/>
<!--req, card No.-->
<status opt=" processing,failed,success"/>
<!--req, status: processing- Processing, failed- Failed,success- Succeeded-->
</BlackListPictureStatus>
</BlackListPictureParam>
<IDBlackListParam>
<!--ID blacklist parameter (NET_DVR_BULK_UPLOAD_ID_BLACK_LIST)-->
<IDBlackListCond>
<!--req, ID blacklist condition-->
<blackListNum min="" max=""/>
<!--req, blacklist quantity-->
</IDBlackListCond>
<blackListValid opt="invalid,valid"/>
<!--req, whether ID card blacklist is valid or not-->
<IDBlackListStatus>
<!--req, ID card blacklist status-->
<IDNum min="" max=""/>
<!--req, ID number-->
<status opt=" processing,failed,success"/>
<!--req, status: processing- Processing, failed- Failed, success- Succeeded-->
</IDBlackListStatus>
</IDBlackListParam>
<CaptureFingerPrint>
<!--opt, xs:boolean, collect fingerprint information-->
<pictureType opt="full,quarter">
<!--req, xs:string, fingerprint picture type-->
</pictureType>
<fingerNo min="1" max="10">
<!--req, xs:integer, fingerprint No.-->
</fingerNo>
<isSupportFingerData opt="true,false">
<!--req, xs:boolen, fingerprint data-->
</isSupportFingerData>
<isSupportFingerPicture opt="true,false">
<!--req, xs:boolen, fingerprint picture-->
</isSupportFingerPicture>
<fingerPrintQuality min="1" max="100">
<!--req, xs:integer, fingerprint quality-->
</fingerPrintQuality>
</CaptureFingerPrint>

299
Device Network SDK (Access Control on Card) Developer Guide

<CaptureFace>
<!--opt, xs:boolean, collect face information-->
<isSupportFaceTemplate1 opt="true,false">
<!--req, xs:boolen, face template data 1-->
</isSupportFaceTemplate1>
<isSupportFaceTemplate2 opt="true,false">
<!--req, xs:boolen, face template data 2-->
</isSupportFaceTemplate2>
<isSupportFacePic opt="true,false">
<!--req, xs:boolen, face picture data-->
</isSupportFacePic>
<faceQuality min="1" max="100">
<!--req, xs:integer, face quality-->
</faceQuality>
<captureProgress opt="0,100">
<!--req, xs:integer, collection progress-->
</captureProgress>
<isSupportInfraredFacePic opt="true,false"><!--req, xs:boolen, whether to support infrared face picture data></
isSupportInfraredFacePic>
</CaptureFace>
<isSupportUploadCertificateBlackList>
<!--opt, xs:boolean, Whether to support uploading ID Card blacklist-->
</isSupportUploadCertificateBlackList>
<isSupportGetRegisterInfo>
<!--opt, xs:boolean, Whether supports getting registered information-->
</isSupportGetRegisterInfo>
<isSupportDownloadCertificateBlackListTemplet>
<!--opt, xs:boolean, Whether to support downloading template of ID card blacklist-->
</isSupportDownloadCertificateBlackListTemplet>
<ScheduleInfo>
<!-- opt, xs:boolean, shift schedule information-->
<command opt="personal,everyone">
<!--req, xs:string, Search condition-->
</command>
<employeeNo min="" max="">
<!--req, xs:integer, Employee No.-->
</employeeNo>
<name min="1" max="32">
<!--req, xs:string, Name-->
</name>
<departmentName min="1" max="32">
<!--req, xs:string, Department name-->
</departmentName>
<schedulePlanNo min="" max="">
<!--req, xs:integer, Shift schedule No.-->
</schedulePlanNo>
<schedulePlanType opt="personal,department">
<!--req, xs:string, Shift schedule type-->
</schedulePlanType>
<enabled opt="true,false">
<!--req, xs:boolen, Enable-->
</enabled>

300
Device Network SDK (Access Control on Card) Developer Guide

<scheduleType opt="noSchedule,ordinaryClass,workingClass">
<!--req, xs:string, Shift type-->
</scheduleType>
<scheduleNo min="" max="">
<!--req, xs:integer, Shift No.-->
</scheduleNo>
<scheduleStartTime>
<!--req, xs:time, ISO8601 time, "2016-01-01", Start time-->
</scheduleStartTime>
<scheduleEndTime>
<!--req, xs:time, ISO8601 time, "2016-02-17", End time-->
</scheduleEndTime>
<holidayNo min="" max="">
<!--req, xs:integer, Holiday group No.-->
</holidayNo>
</ScheduleInfo>
<AttendanceSummaryInfo>
<!-- opt, xs:boolean, Time and attendance information overview-->
<command opt="personal,everyone">
<!--req, xs:string, Search condition-->
</command>
<employeeNo min="" max="">
<!--req, xs:integer, Employee No.-->
</employeeNo>
<name min="1" max="32">
<!--req, xs:string, Name-->
</name>
<departmentName min="1" max="32">
<!--req, xs:string, Department name-->
</departmentName>
<workStandard min="" max="">
<!--req, xs:integer, Standard working time (minutes)-->
</workStandard>
<workActual min="" max="">
<!--req, xs:integer, Actual working time (minutes)-->
</workActual>
<lateTimes min="" max="">
<!--req, xs:integer, Late times-->
</lateTimes>
<lateMinutes min="" max="">
<!--req, xs:integer, Total late time (minutes)-->
</lateMinutes>
<leaveEarlyTimes min="" max="">
<!--req, xs:integer, Early Leave Times-->
</leaveEarlyTimes>
<leaveEarlyMinutes min="" max="">
<!--req, xs:integer, Total eearly leave time (minutes)-->
</leaveEarlyMinutes>
<overtimeStandard min="" max="">
<!--req, xs:integer, Standard Overtime (minutes)-->
</overtimeStandard>
<overtimeActual min="" max="">

301
Device Network SDK (Access Control on Card) Developer Guide

<!--req, xs:integer, Actual Overtime (minutes)-->


</overtimeActual>
<attendanceStandard min="" max="">
<!--req, xs:integer, Standard Attendance (day)-->
</attendanceStandard>
<attendanceActual min="" max="">
<!--req, xs:integer, Actual Attendance (Day)-->
</attendanceActual>
<absentDays min="" max="">
<!--req, xs:integer, Absent (Day)-->
</absentDays>
</AttendanceSummaryInfo>
<AttendanceRecordInfo>
<!--opt, xs:boolean, Time and Attendance Records-->
<command opt="personal,everyone">
<!--req, xs:string, Search Condition-->
</command>
<employeeNo min="" max="">
<!--req, xs:integer, Employee No.-->
</employeeNo>
<name min="1" max="32">
<!--req, xs:string, Name-->
</name>
<departmentName min="1" max="32">
<!--req, xs:string, Department Name-->
</departmentName>
<attendanceTime>
<!--req, xs:time, ISO8601 time, "2016-02-17T17:30:08+08:00", Attendance Time-->
</attendanceTime>
</AttendanceRecordInfo>
<AbnormalInfo>
<!-- opt, xs:boolean, Exception Statistics Information-->
<command opt="personal,everyone">
<!--req, xs:string, Search Condition-->
</command>
<employeeNo min="" max="">
<!--req, xs:integer, Employee No.-->
</employeeNo>
<name min="1" max="32">
<!--req, xs:string, Name-->
</name>
<departmentName min="1" max="32">
<!--req, xs:string, Department Name-->
</departmentName>
<onDutyTime>
<!--req, xs:time, ISO8601 time, "2016-02-17T08:30:08+08:00", Start-Work Time-->
</onDutyTime>
<offDutyTime>
<!--req, xs:time, ISO8601 time, "2016-02-17T17:30:08+08:00", End-Work Time-->
</offDutyTime>
<lateMinutes min="" max="">
<!--req, xs:integer, Late Duration (minutes)-->

302
Device Network SDK (Access Control on Card) Developer Guide

</lateMinutes>
<leaveEarlyMinutes min="" max="">
<!--req, xs:integer, Early Leave Duration (minutes)-->
</leaveEarlyMinutes>
<absenceMinutes min="" max="">
<!--req, xs:integer, Absent Duration (minutes)-->
</absenceMinutes>
<totalMinutes min="" max="">
<!--req, xs:integer, Total Duration (minutes)-->
</totalMinutes>
</AbnormalInfo>
<CheckFacePicture>
<!-- opt, xs:boolean, authenticate identity via 1:N face picture matching-->
<pictureNum min="" max="">
<!--req, xs:integer, picture number>
</pictureNum>
<checkStatus opt="1,2,3,4,5,6,7,8,9,10,11">
<!--req, xs:integer, matching result: 1-modeling completed, 2-modeling failed, 3-the communication with the face
picture module failed, 4-no face in the picture, 5-the face is too close to the top picture border, 6-the face is too close
to the bottom picture border, 7-the face is too close to the left picture border, 8-the face is too close to the right
picture border, 9-the face picture is clockwise, 10-the face picture is anticlockwise, 11-the proportion of the pupillary
distance is small, 12-face picture matches the template, 13-face picture mismatches the template>
</checkStatus>
<checkTemplate opt="0,1">
<!--opt, xs:integer, 0-picture verification, 1-picture and modeling data matching verification>
</checkTemplate>
</CheckFacePicture>
<supplementLightNo min="" max=""/>
<!--opt, supplement light number>
<maxWhiteFaceNum/>
<!--opt, the maximum number of face picture in whitelist>
<maxBlackFaceNum/>
<!--opt, the maximum number of face picture in blacklist>
<isSupportGetFailedFaceInfo>
<!--opt, xs:boolean, whether supports getting the information of face modeling failure after upgrading-->
</isSupportGetFailedFaceInfo>
<FailedFaceInfoParam>
<!--opt, xs:boolean, get the information of face modeling failure after upgrading-->
<FailedFaceInfoCond/>
<FailedFaceInfo>
<!--req, face modeling failure information-->
<cardNo min="" max=""/>
<!--req, card number-->
<errorCode min="" max=""/>
<!--req, face modeling failure error code-->
</FailedFaceInfo>
<isSupportFaceAndTemplate>
<!--opt, xs:boolean, whether supports configuring face picture and modeling data-->
</isSupportFaceAndTemplate>
<FaceAndTemplateParam>
<!--opt, face picture and modeling data configuration-->
<cardNo min="" max=""/>

303
Device Network SDK (Access Control on Card) Developer Guide

<!--req, card number-->


<faceLen min="" max=""/>
<!--req, face picture size-->
<faceTemplateLen min="" max=""/>
<!--req, face picture template data size-->
</FaceAndTemplateParam>
</AcsAbility>

6.46 XML_Cap_AccessControl
AccessControl capability message in XML format
<AccessControl version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<isSupportWiegandCfg>
<!--opt, xs:boolean, whether it supports Wiegand configuration-->
</isSupportWiegandCfg>
<isSupportModuleStatus>
<!--opt, xs:boolean, whether it supports getting the status of secure door control unit-->
</isSupportModuleStatus>
<isSupportSNAPConfig>
<!--opt, xs:boolean, whether it supports getting capture linkage parameters-->
</isSupportSNAPConfig>
<LocalController><!--opt-->
<isSupportLocalControllerManage>
<!--opt, xs:boolean, whether it supports distributed access controller management-->
</isSupportLocalControllerManage>
<isSupportLocalControllerControl>
<!--opt, xs:boolean, whether it supports distributed access controller control-->
</isSupportLocalControllerControl>
</LocalController>
<isSupportUSBManage>
<!--opt, xs:boolean, whether it supports USB management of access control device-->
</isSupportUSBManage>
<isSupportIdentityTerminal>
<!--opt, xs:boolean, whether it supports face recognition terminal configuration-->
</isSupportIdentityTerminal>
<isSupportDepartmentParam>
<!--opt, xs:boolean, whether it supports setting department parameters-->
</isSupportDepartmentParam>
<isSupportSchedulePlan>
<!--opt, xs:boolean, whether it supports setting shift schedule-->
</isSupportSchedulePlan>
<isSupportAttendanceRule>
<!--opt, xs:boolean, whether it supports setting time and attendance rule-->
</isSupportAttendanceRule>
<isSupportOrdinaryClass>
<!--opt, xs:boolean, whether it supports setting normal shift parameters-->
</isSupportOrdinaryClass>
<isSupportWorkingClass>
<!--opt, xs:boolean, whether it supports setting man-hour shift parameters-->

304
Device Network SDK (Access Control on Card) Developer Guide

</isSupportWorkingClass>
<isSupportAttendanceHolidayGroup>
<!--opt, xs:boolean, whether it supports setting holiday group for time and attendance-->
</isSupportAttendanceHolidayGroup>
<isSupportAttendanceHolidayPlan>
<!--opt, xs:boolean, whether it supports setting holiday schedule for time and attendance-->
</isSupportAttendanceHolidayPlan>
<isSupportLadderControlRelay>
<!--opt, xs:boolean, whether it supports setting elevator controller relay-->
</isSupportLadderControlRelay>
<isSupportWiegandRuleCfg>
<!--opt, xs:boolean, whether it supports setting Wiegand rule-->
</isSupportWiegandRuleCfg>
<isSupportM1CardEncryptCfg>
<!--opt, xs:boolean, whether it supports M1 card encryption authentication-->
</isSupportM1CardEncryptCfg>
<isSupportDeployInfo>
<!--opt, xs:boolean, whether it supports getting arming information-->
</isSupportDeployInfo>
<isSupportSubmarineBack>
<!--opt, xs:boolean, whether it supports specifying anti-passing back server-->
</isSupportSubmarineBack>
<isSupportSubmarineBackHostInfo>
<!--opt, xs:boolean, whether it supports setting access controllers with anti-passing back enabled-->
</isSupportSubmarineBackHostInfo>
<isSupportStartReaderInfo>
<!--opt, xs:boolean, whether it supports setting first card reader-->
</isSupportStartReaderInfo>
<isSupportSubmarineBackReader>
<!--opt, xs:boolean, whether it supports setting anti-passing back card reader-->
</isSupportSubmarineBackReader>
<isSupportServerDevice>
<!--opt, xs:boolean, whether it supports setting anti-passing back server information-->
</isSupportServerDevice>
<isSupportReaderAcrossHost>
<!--opt, xs:boolean, whether it supports enabling cross-controller anti-passing back function of card reader-->
</isSupportReaderAcrossHost>
<isSupportClearCardRecord>
<!--opt, xs:boolean, whether it supports clearing card swiping records in anti-passing back server-->
</isSupportClearCardRecord>
<isSupportSubmarineBackMode>
<!--opt, xs:boolean, whether it supports setting anti-passing back mode-->
</isSupportSubmarineBackMode>
<isSupportClearSubmarineBack>
<!--opt, xs:boolean, whether it supports clearing cross-controller anti-passing back information-->
</isSupportClearSubmarineBack>
<isSupportRemoteControlDoor>
<!--opt, xs:boolean, whether it supports remote door, elevator, and lock control: "true"-yes, this node is not
returned-no-->
</isSupportRemoteControlDoor>
<isSupportUserInfo><!--opt, xs:boolean, whether it supports person management based on person--></
isSupportUserInfo>

305
Device Network SDK (Access Control on Card) Developer Guide

<EmployeeNoInfo><!--dep, employee No. (person ID) information, this node is valid only when the
isSupportUserInfo is "true"-->
<employeeNo min="" max=""><!--opt, employee No. (person ID)--></employeeNo>
<characterType opt="any,number">
<!--opt, employee No. (person) ID type: "any"-any characters (default), "number"-digits (from 0 to 9), only one
value can be returned-->
</characterType>
<isSupportCompress>
<!--opt, xs:boolean, whether it supports compressing employee No. (person) ID for storage: "true"-yes, this node is
not returned-no-->
</isSupportCompress>
</EmployeeNoInfo>
<isSupportCardInfo><!--opt, xs:boolean, whether it supports card management based on person: "true"-yes, this
node is not returned-no--></isSupportCardInfo>
<isSupportUserInfoDetailDelete><!--opt, xs:boolean, whether it supports deleting person information and
permission: "true"-yes, this node is not returned-no--></isSupportUserInfoDetailDelete>
<isSupportAuthCodeInfo>
<!--opt, xs:boolean, whether it supports authentication password management: "true"-yes, this node is not
returned-no-->
</isSupportAuthCodeInfo>
<isSupportFingerPrintCfg>
<!--opt, xs:boolean, whether it supports configuring fingerprint parameters: "true"-yes, this node is not returned-
no-->
</isSupportFingerPrintCfg>
<isSupportFingerPrintDelete>
<!--opt, xs:boolean, whether it supports deleting fingerprint: "true"-yes, this node is not returned-no-->
</isSupportFingerPrintDelete>
<isSupportCaptureFingerPrint>
<!--opt, xs:boolean, whether it supports collecting fingerprint information: "true"-yes, this node is not returned-no--
>
</isSupportCaptureFingerPrint>
<isSupportDoorStatusWeekPlanCfg>
<!--opt, xs:boolean, whether it supports configuring door control week schedule: "true"-yes, this node is not
returned-no-->
</isSupportDoorStatusWeekPlanCfg>
<isSupportVerifyWeekPlanCfg>
<!--opt, xs:boolean, whether it supports configuring week schedule of the card reader authentication mode: "true"-
yes, this node is not returned-no-->
</isSupportVerifyWeekPlanCfg>
<isSupportCardRightWeekPlanCfg>
<!--opt, xs:boolean, whether it supports configuring week schedule of the access permission control: "true"-yes, this
node is not returned-no-->
</isSupportCardRightWeekPlanCfg>
<isSupportDoorStatusHolidayPlanCfg>
<!--opt, xs:boolean, whether it supports configuring door control holiday schedule: "true"-yes, this node is not
returned-no-->
</isSupportDoorStatusHolidayPlanCfg>
<isSupportVerifyHolidayPlanCfg>
<!--opt, xs:boolean, whether it supports configuring holiday schedule of the card reader authentication mode:
"true"-yes, this node is not returned-no-->
</isSupportVerifyHolidayPlanCfg>
<isSupportCardRightHolidayPlanCfg>

306
Device Network SDK (Access Control on Card) Developer Guide

<!--opt, xs:boolean, whether it supports configuring holiday schedule of the access permission control: "true"-yes,
this node is not returned-no-->
</isSupportCardRightHolidayPlanCfg>
<isSupportDoorStatusHolidayGroupCfg>
<!--opt, xs:boolean, whether it supports configuring holiday group of the door control schedule: "true"-yes, this
node is not returned-no-->
</isSupportDoorStatusHolidayGroupCfg>
<isSupportVerifyHolidayGroupCfg>
<!--opt, xs:boolean, whether it supports configuring holiday group of the control schedule of the card reader
authentication mode: "true"-yes, this node is not returned-no-->
</isSupportVerifyHolidayGroupCfg>
<isSupportUserRightHolidayGroupCfg>
<!--opt, xs:boolean, whether it supports configuring holiday group of the access permission control schedule: "true"-
yes, this node is not returned-no-->
</isSupportUserRightHolidayGroupCfg>
<isSupportDoorStatusPlanTemplate>
<!--opt, xs:boolean, whether it supports configuring door control schedule template: "true"-yes, this node is not
returned-no-->
</isSupportDoorStatusPlanTemplate>
<isSupportVerifyPlanTemplate>
<!--opt, xs:boolean, whether it supports configuring schedule template of the card reader authentication mode:
"true"-yes, this node is not returned-no-->
</isSupportVerifyPlanTemplate>
<isSupportUserRightPlanTemplate>
<!--opt, xs:boolean, whether it supports configuring schedule template of the access permission control: "true"-yes,
this node is not returned-no-->
</isSupportUserRightPlanTemplate>
<isSupportDoorStatusPlan>
<!--opt, xs:boolean, whether it supports configuring door control schedule: "true"-yes, this node is not returned-no--
>
</isSupportDoorStatusPlan>
<isSupportCardReaderPlan>
<!--opt, xs:boolean, whether it supports configuring control schedule of the card reader authentication mode:
"true"-yes, this node is not returned-no-->
</isSupportCardReaderPlan>
<isSupportClearPlansCfg>
<!--opt, xs:boolean, whether it supports clearing the access control schedule parameters: "true"-yes, this node is
not returned-no-->
</isSupportClearPlansCfg>
<isSupportRemoteControlBuzzer>
<!--opt, xs:boolean, whether it supports remotely controlling the buzzer of the card reader: "true"-yes, this node is
not returned-no-->
</isSupportRemoteControlBuzzer>
<isSupportEventCardNoList>
<!--opt, xs:boolean, whether it supports getting the list of event and card linkage ID: "true"-yes, this node is not
returned-no-->
</isSupportEventCardNoList>
<isSupportEventCardLinkageCfg>
<!--opt, xs:boolean, whether it supports configuring event and card linkage parameters: "true"-yes, this node is not
returned-no-->
</isSupportEventCardLinkageCfg>
<isSupportClearEventCardLinkageCfg>

307
Device Network SDK (Access Control on Card) Developer Guide

<!--opt, xs:boolean, whether it supports clearing event and card linkage parameters: "true"-yes, this node is not
returned-no-->
</isSupportClearEventCardLinkageCfg>
<isSupportAcsEvent>
<!--opt, xs:boolean, whether it supports searching for access control events: "true"-yes, this node is not returned-
no-->
</isSupportAcsEvent>
<isSupportAcsEventTotalNum>
<!--opt, xs:boolean, whether it supports getting total number of access control events by specific conditions: "true"-
yes, this node is not returned-no-->
</isSupportAcsEventTotalNum>
<isSupportDeployInfo>
<!--opt, xs:boolean, whether it supports getting the arming information: "true"-yes, this node is not returned-no-->
</isSupportDeployInfo>
<isSupportEventOptimizationCfg>
<!--opt, xs:boolean, whether it supports configuring event optimization: "true"-yes, this node is not returned-no-->
</isSupportEventOptimizationCfg>
<isSupportAcsWorkStatus>
<!--opt, xs:boolean, whether it supports getting working status of the access control device: "true"-yes, this node is
not returned-no-->
</isSupportAcsWorkStatus>
<isSupportDoorCfg>
<!--opt, xs:boolean, whether it supports configuring door parameters: "true"-yes, this node is not returned-no-->
</isSupportDoorCfg>
<isSupportCardReaderCfg>
<!--opt, xs:boolean, whether it supports configuring card reader parameters: "true"-yes, this node is not returned-
no-->
</isSupportCardReaderCfg>
<isSupportAcsCfg>
<!--opt, xs:boolean, whether it supports configuring parameters of access control device: "true"-yes, this node is not
returned-no-->
</isSupportAcsCfg>
<isSupportGroupCfg>
<!--opt, xs:boolean, whether it supports configuring group parameters: "true"-yes, this node is not returned-no-->
</isSupportGroupCfg>
<isSupportClearGroupCfg>
<!--opt, xs:boolean, whether it supports clearing group parameters: "true"-yes, this node is not returned-no-->
</isSupportClearGroupCfg>
<isSupportMultiCardCfg>
<!--opt, xs:boolean, whether it supports configuring multiple authentication mode: "true"-yes, this node is not
returned-no-->
</isSupportMultiCardCfg>
<isSupportMultiDoorInterLockCfg>
<!--opt, xs:boolean, whether it supports configuring multi-door interlocking parameters: "true"-yes, this node is not
returned-no-->
</isSupportMultiDoorInterLockCfg>
<isSupportAntiSneakCfg>
<!--opt, xs:boolean, whether it supports configuring anti-passing back parameters in the device: "true"-yes, this
node is not returned-no-->
</isSupportAntiSneakCfg>
<isSupportCardReaderAntiSneakCfg>
<!--opt, xs:boolean, whether it supports configuring anti-passing back parameters for the card reader in the device:

308
Device Network SDK (Access Control on Card) Developer Guide

"true"-yes, this node is not returned-no-->


</isSupportCardReaderAntiSneakCfg>
<isSupportClearAntiSneakCfg>
<!--opt, xs:boolean, whether it supports clearing anti-passing back parameters: "true"-yes, this node is not returned-
no-->
</isSupportClearAntiSneakCfg>
<isSupportClearAntiSneak>
<!--opt, xs:boolean, whether it supports clearing anti-passing back records in the device: "true"-yes, this node is not
returned-no-->
</isSupportClearAntiSneak>
<isSupportSmsRelativeParam>
<!--opt, xs:boolean, whether it supports configuring message function: "true"-yes, this node is not returned-no-->
</isSupportSmsRelativeParam>
<isSupportPhoneDoorRightCfg>
<!--opt, xs:boolean, whether it supports configuring the door permission linked to the mobile phone number:
"true"-yes, this node is not returned-no-->
</isSupportPhoneDoorRightCfg>
<isSupportOSDPStatus>
<!--opt, xs:boolean, whether it supports searching for OSDP card reader status: "true"-yes, this node is not returned-
no-->
</isSupportOSDPStatus>
<isSupportOSDPModify>
<!--opt, xs:boolean, whether it supports editing OSDP card reader ID: "true"-yes, this node is not returned-no-->
</isSupportOSDPModify>
<isSupportLogModeCfg>
<!--opt, xs:boolean, whether it supports configuring log mode: "true"-yes, this node is not returned-no-->
</isSupportLogModeCfg>
<FactoryReset>
<isSupportFactoryReset><!--opt, xs: boolean, whether it supports restoring to default settings by condition--></
isSupportFactoryReset>
<mode opt="full,basic,part"><!--opt, xs: string, conditions for restoring to default settings--></mode>
</FactoryReset>
<isSupportNFCCfg><!--opt, xs:boolean,whether it supports enabling or disabling NFC function: "true"-yes, this node
is not returned-no--></isSupportNFCCfg>
<isSupportRFCardCfg><!--opt, xs:boolean,whether it supports enabling or disabling RF card recognition: "true"-yes,
this node is not returned-no--></isSupportRFCardCfg>
<isSupportCaptureFace>
<!--opt, xs:boolean, whether it supports collecting face pictures: "true"-yes, this node is not returned-no-->
</isSupportCaptureFace>
<isSupportCaptureInfraredFace>
<!--opt, xs:boolean, whether it supports collecting infrared face pictures: "true"-yes, this node is not returned-no-->
</isSupportCaptureInfraredFace>
<isSupportFaceRecognizeMode>
<!--opt, xs:boolean, whether it supports configuring facial recognition mode: "true"-yes, this node is not returned-
no-->
</isSupportFaceRecognizeMode>
<isSupportRemoteControlPWChcek>
<!--opt, xs:boolean, whether it supports verifying the password for remote door control: "true"-yes, this node is not
returned-no-->
</isSupportRemoteControlPWChcek>
<isSupportRemoteControlPWCfg>
<!--opt, xs:boolean, whether it supports configuring the password for remote door control: "true"-yes, this node is

309
Device Network SDK (Access Control on Card) Developer Guide

not returned-no-->
</isSupportRemoteControlPWCfg>
<isSupportAttendanceStatusModeCfg>
<!--opt, xs:boolean, whether it supports configuring attendance mode: "true"-yes, this node is not returned-no-->
</isSupportAttendanceStatusModeCfg>
<isSupportAttendanceStatusRuleCfg>
<!--opt, xs:boolean, whether it supports configuring attendance status and rule: "true"-yes, this node is not
returned-no-->
</isSupportAttendanceStatusRuleCfg>
<isSupportCaptureCardInfo>
<!--opt, xs:boolean, whether it supports collecting card information: "true"-yes, this node is not returned-no-->
</isSupportCaptureCardInfo>
<isSupportCaptureIDInfo>
<!--opt, xs:boolean, whether it supports collecting ID card information: "true"-yes, this node is not returned-no-->
</isSupportCaptureIDInfo>
<isSupportCaptureRule>
<!--opt, xs:boolean, whether it supports configuring online collection rules: "true"-yes, this node is not returned-no--
>
</isSupportCaptureRule>
<isSupportCapturePresetParam>
<!--opt, xs:boolean, whether it supports configuring preset parameters of online collection: "true"-yes, this node is
not returned-no-->
</isSupportCapturePresetParam>
<isSupportOfflineCapture>
<!--opt, xs:boolean, whether it supports offline collection: "true"-yes, this node is not returned-no-->
</isSupportOfflineCapture>
<isSupportCardOperations>
<!--opt, xs:boolean, whether it supports card operation: "true"-yes, this node is not returned-no-->
</isSupportCardOperations>
<isSupportRightControllerAudio>
<!--optional, xs:boolean, whether it supports configuring audio file parameters of the main controller-->
</isSupportRightControllerAudio>
<isSupportChannelControllerCfg>
<!--optional, xs:boolean, whether it supports configuring lane controller-->
</isSupportChannelControllerCfg>
<isSupportGateDialAndInfo>
<!--optional, xs:boolean, whether it supports getting local DIP and information of the turnstile-->
</isSupportGateDialAndInfo>
<isSupportGateStatus>
<!--optional, xs:boolean, whether it supports getting turnstile status-->
</isSupportGateStatus>
<isSupportGateIRStatus>
<!--optional, xs:boolean, whether it supports getting the status of the active infrared intrusion detector of the
turnstile-->
</isSupportGateIRStatus>
<isSupportGateRelatedPartsStatus>
<!--optional, xs:boolean, whether it supports getting related components' status of the turnstile-->
</isSupportGateRelatedPartsStatus>
<isSupportChannelControllerAlarmLinkage>
<!--optional, xs:boolean, whether it supports configuring alarm linkage of the lane controller-->
</isSupportChannelControllerAlarmLinkage>
<isSupportChannelControllerAlarmOut>

310
Device Network SDK (Access Control on Card) Developer Guide

<!--optional, xs:boolean, whether it supports configuring alarm output of the lane controller-->
</isSupportChannelControllerAlarmOut>
<isSupportChannelControllerAlarmOutControl>
<!--optional, xs:boolean, whether it supports controlling alarm output of the lane controller-->
</isSupportChannelControllerAlarmOutControl>
<isSupportChannelControllerTypeCfg>
<!--optional, xs:boolean, whether it supports configuring device type of the lane controller-->
</isSupportChannelControllerTypeCfg>
<isSupportTTSText><!--optional, xs:boolean, whether it supports configuring the text of the audio prompt: true-yes.
If this function is not supported, this node will be not returned--></isSupportTTSText>
<isSupportIDBlackListCfg><!--optional, xs:boolean, whether it supports applying ID card blacklist: true-yes. If this
function is not supported, this node will be not returned--></isSupportIDBlackListCfg>
<isSupportUserDataImport><!--optional, xs:boolean, whether it supports importing person permission data: true-
yes. If this function is not supported, this node will be not returned--></isSupportUserDataImport>
<isSupportUserDataExport><!--optional, xs:boolean, whether it supports exporting person permission data: true-yes.
If this function is not supported, this node will be not returned--></isSupportUserDataExport>
<isSupportMaintenanceDataExport><!--optional, xs:boolean, whether it supports exporting maintenance data: true-
yes. If this function is not supported, this node will be not returned--></isSupportMaintenanceDataExport>
<isSupportLockTypeCfg><!--optional, xs:boolean, whether it supports configuring door lock status when the device is
powered off: true-yes. If this function is not supported, this node will be not returned--></isSupportLockTypeCfg>
</AccessControl>

6.47 XML_Cap_ChannelControllerAlarmLinkage
ChannelControllerAlarmLinkage capability message in XML format
<ChannelControllerAlarmLinkage version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<Trailing><!--required, tailgating-->
<masterAlarmOut min="1" max="4" ><!--required, xs:string, local alarm output ID linked to the master lane
controller, it is between 1 and 4--></masterAlarmOut>
<slaveAlarmOut min="1" max="4" ><!--required, xs:string, local alarm output ID linked to the slave lane controller, it
is between 1 and 4--></slaveAlarmOut>
</Trailing>
<ReverseAccess><!--required, reverse passing-->
<masterAlarmOut min="1" max="4" ><!--required, xs:string, local alarm output ID linked to the master lane
controller, it is between 1 and 4--></masterAlarmOut>
<slaveAlarmOut min="1" max="4" ><!--required, xs:string, local alarm output ID linked to the slave lane controller, it
is between 1 and 4--></slaveAlarmOut>
</ReverseAccess>
<ForceAccess><!--required, force accessing-->
<masterAlarmOut min="1" max="4" ><!--required, xs:string, local alarm output ID linked to the master lane
controller, it is between 1 and 4--></masterAlarmOut>
<slaveAlarmOut min="1" max="4" ><!--required, xs:string, local alarm output ID linked to the slave lane controller, it
is between 1 and 4--></slaveAlarmOut>
</ForceAccess>
<ClimbingOverGate><!--required, climbing over barrier-->
<masterAlarmOut min="1" max="4" ><!--required, xs:string, local alarm output ID linked to the master lane
controller, it is between 1 and 4--></masterAlarmOut>
<slaveAlarmOut min="1" max="4" ><!--required, xs:string, local alarm output ID linked to the slave lane controller, it
is between 1 and 4--></slaveAlarmOut>

311
Device Network SDK (Access Control on Card) Developer Guide

</ClimbingOverGate>
<PassingTimeout><!--required, passing timeout-->
<masterAlarmOut min="1" max="4" ><!--required, xs:string, local alarm output ID linked to the master lane
controller, it is between 1 and 4--></masterAlarmOut>
<slaveAlarmOut min="1" max="4" ><!--required, xs:string, local alarm output ID linked to the slave lane controller, it
is between 1 and 4--></slaveAlarmOut>
</PassingTimeout>
<IntrusionAlarm><!--required, intrusion alarm-->
<masterAlarmOut min="1" max="4" ><!--required, xs:string, local alarm output ID linked to the master lane
controller, it is between 1 and 4--></masterAlarmOut>
<slaveAlarmOut min="1" max="4" ><!--required, xs:string, local alarm output ID linked to the slave lane controller, it
is between 1 and 4--></slaveAlarmOut>
</IntrusionAlarm>
</ChannelControllerAlarmLinkage>

6.48 XML_Cap_ChannelControllerAlarmOut
ChannelControllerAlarmOut capability message in XML format
<ChannelControllerAlarmOut version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<controllerType opt="Master,Slave"><!--required, xs:string, lane controller type: "Master"-master lane controller,
"Slave"-slave lane controller--></controllerType>
<alarmOutNo min="1" max="4"><!--required, xs:integer, alarm output No., it is between 1 and 4--></alarmOutNo>
<delay min="0" max="5999"><!--required, xs:integer, alarm output duration, it is between 0 and 5999, and 0 refers
to continuous output, unit: second--></delay>
</ChannelControllerAlarmOut>

6.49 XML_Cap_ChannelControllerAlarmOutControl
ChannelControllerAlarmOutControl capability message in XML format
<ChannelControllerAlarmOutControl version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<controllerType opt="Master,Slave" >
<!--required, xs:string, lane controller type: "Master"-master lane controller, "Slave"-slave lane controller-->
</controllerType>
<alarmOutNo min="1" max="4" >
<!--optional, xs:integer, alarm output No., which is between 1 and 4. If this node is not transmitted, it refers to all
alarm outputs-->
</alarmOutNo>
<alarmOutControl opt="Start,Stop" >
<!--optional, xs:string, control alarm output: "Start"-start alarm output, "Stop"-stop alarm output-->
</alarmOutControl>
</ChannelControllerAlarmOutControl>

312
Device Network SDK (Access Control on Card) Developer Guide

6.50 XML_Cap_ChannelControllerCfg
ChannelControllerCfg capability message in XML format
<ChannelControllerCfg version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<gatePassingMode opt="ByChannelController,ByRightController"><!--required, xs:string, gate passing mode:
"ByChannelController"-according to the lane controller's local DIP settings, "ByRightController"-according to the main
controller's settings--></gatePassingMode>
<freePassAuthEnabled opt="enable,disable"><!--required, xs:string, whether authentication is required for free
passing: "enable"-yes, "disable"-no--></freePassAuthEnabled>
<openAndCloseSpeed min="1" max="10"><!--required, xs:integer, barrier's opening and closing speed, it is between
1 and 10 which represent speed from 10% to 100%--></openAndCloseSpeed>
<alarmSoundTime min="0" max="599"><!--required, xs:integer, alarm prompt sound duration, unit: second. The
value is between 0 and 599, and 0 refers to continuously playing alarm prompt sound--></alarmSoundTime>
<tempUnit opt="Centigrade,Fahrenheit"><!--required, xs:string, temperature unit to be displayed: "Centigrade"-
Celsius (°C), "Fahrenheit"-Fahrenheit (°F)--></tempUnit>
<alarmAreaNoAuth opt="true,false"><!--optional, xs:boolean, whether opening door is prohibited in the alarm area--
></alarmAreaNoAuth>
<gateWingMaterial opt="Acrylic,StellPipe,SinglePUGate,DoublePUGate"><!--optional, xs:string, barrier material:
"Acrylic"-acrylic, "StellPipe"-steel tube, "SinglePUGate"-single PU gate, "DoublePUGate"-double PU gate--></
gateWingMaterial>
<channelLength min="550" max="1400"><!--optional, xs:integer, lane length, unit: mm--></channelLength>
<motorDirection opt="Clockwise,AntiClockwise"><!--optional, xs:string, motor rotation direction: "Clockwise",
"AntiClockwise"--></motorDirection>
<lampBoardLight min="" max=""><!--optional, xs:integer, lamp board brightness, it is between 0 and 100--></
lampBoardLight>
<openSpeed min="" max=""><!--optional, xs:string, barrier's opening speed, it is between 1 and 10 representing
speed from 10% to 100%, and the default speed is 50%. If openAndCloseSpeed and openSpeed are configured
simultaneously, the barrier's opening speed is determined by openSpeed--></openSpeed>
<closeSpeed min="1" max="10"><!--optional, xs:integer, barrier's closing speed, it is between 1 and 10 representing
speed from 10% to 100%, and the default speed is 40%. If openAndCloseSpeed and closeSpeed are configured
simultaneously, the barrier's closing speed is determined by closeSpeed--></closeSpeed>
</ChannelControllerCfg>

6.51 XML_Cap_FaceCompareCond
XML message about condition configuration capability of face picture comparison
<FaceCompareCond version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<faceWidthLowerLimit min="" max="">
<!--optional, xs:integer, face width threshold with highest priority, value range: [0, 100], when the detected face
width is larger than this threshold, the following conditions will be ignored and the face comparison will be executed--
>
</faceWidthLowerLimit>
<pitch min="" max=""><!--optional, xs:integer, face raising or bowing angle, value range: [0, 90], unit: degree, the
smaller the better--></pitch>
<yaw min="" max=""><!--optional, xs:integer, face siding left or right angle, value range: [0, 90], unit: degree, the
smaller the better--></yaw>
<width min="" max=""><!--optional, xs:integer, face width, value range: [0, 100]--></width>

313
Device Network SDK (Access Control on Card) Developer Guide

<height min="" max=""><!--optional, xs:integer, face height, value range: [0, 100]--></height>
<leftBorder min="" max=""><!--optional, xs:integer, left border of face, value range: [0, 100]--></leftBorder>
<rightBorder min="" max=""><!--optional, xs:integer, right border of face, value range: [0, 100]--></rightBorder>
<upBorder min="" max=""><!--optional, xs:integer, top border of face, value range: [0, 100]--></upBorder>
<bottomBorder min="" max=""><!--optional, xs:integer, bottom border of face, value range: [0, 100]--></
bottomBorder>
<interorbitalDistance min="" max=""><!--optional, xs:integer, pupil distance, value range: [0, 100]--></
interorbitalDistance>
<faceScore min="" max=""><!--optional, xs:integer, face score, value range: [0, 100], the valid face score must be
larger than this score--></faceScore>
<maxDistance opt="0.5,1,1.5,2,auto"><!--optional, xs:string, maximum recognition distance: "0.5,1,1.5,2,auto", unit:
m. This node has higher priority over <interorbitalDistance>--></maxDistance>
</FaceCompareCond>

6.52 XML_Cap_GateDialAndInfo
GateDialAndInfo capability message in XML format
<GateDialAndInfo version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<workMode opt="Normal,Origin,Debug" ><!--required, xs:string, working mode: "Normal"-normal mode, "Origin"-
closed position setting mode, "Debug"-test mode--></workMode>
<memoryModeEnabled opt="enable,disable" ><!--required, xs:string, whether to enable memory mode: "enable",
"disable"--></memoryModeEnabled>
<alarmAreaNoAuth opt="true,false" ><!--required, xs:boolean, whether opening barrier is prohibited in the alarm
area--></alarmAreaNoAuth>
<deviceType opt="DropGate,WingGate,ThreeRollerGate" ><!--required, xs:string, device type: "DropGate"-swing
barrier, "WingGate"-flap barrier, "ThreeRollerGate"-tripod turnstile--></deviceType>
<DialMode><!--local DIP communication mode-->
<InDoor opt="Controlled,Forbid,Free" ><!--required, xs:string, entrance: "Controlled"-controlled, "Forbid"-
prohibited, "Free"-free--></InDoor>
<OutDoor opt="Controlled,Forbid,Free" ><!--required, xs:string, exit: "Controlled"-controlled, "Forbid"-prohibited,
"Free"-free--></OutDoor>
</DialMode>
</GateDialAndInfo>

6.53 XML_Cap_GateIRStatus
GateIRStatus capability message in XML format
<GateIRStatus version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<IREmitter><!--status of active infrared intrusion detector-->
<triggered min="1" max="48" ><!--required, xs:string, triggering IR ID of the active infrared intrusion detector, it is
between 1 and 48--></triggered>
<triggeredTimeout min="1" max="48" ><!--required, xs:string, triggering timeout IR ID of the active infrared
intrusion detector, it is between 1 and 48--></triggeredTimeout>
<receiveBoardAbnormal min="1" max="48" ><!--required, xs:string, communication exception IR ID of the receiving
board, it is between 1 and 48--></receiveBoardAbnormal>
<sendBoardAbnormal min="1" max="48" ><!--required, xs:string, communication exception IR ID of the sending
board, it is between 1 and 48--></sendBoardAbnormal>

314
Device Network SDK (Access Control on Card) Developer Guide

<sendAndReceiveLocateAbnormal min="1" max="48" ><!--required, xs:string, sending and receiving position


exception ID, it is between 1 and 48--></sendAndReceiveLocateAbnormal>
</IREmitter>
<masterIRAdaptorCommFailed min="1" max="2" ><!--required, xs:string, ID of communication with IR adapter of the
master lane controller failed, it can be set to 1 or 2--></masterIRAdaptorCommFailed>
<slaveIRAdaptorCommFailed min="1" max="2" ><!--required, xs:string, ID of communication with IR adapter of the
slave lane controller failed, it can be set to 1 or 2--></slaveIRAdaptorCommFailed>
</GateIRStatus>

6.54 XML_Cap_GateRelatedPartsStatus
GateRelatedPartsStatus message in XML format
<GateRelatedPartsStatus version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<MasterChannelController><!--related components' status of master lane controller-->
<motorSensor opt="Normal,Abnormal"><!--required, xs:string, whether the motor or the sensor is normal:
"Normal"-normal, "Abnormal"-exception. This is used to detect the consistency between the motor encoder and the
hall sensor--></motorSensor>
<dropArmSensorAbnormal min="1" max="4"><!--required, xs:string, ID of barrier position sensor exception, it is
between 1 and 4. This is used to detect barrier open position switch--></dropArmSensorAbnormal>
<dropArm opt="Normal,Abnormal"><!--required, xs:string, barrier status: "Normal"-normal, "Abnormal"-exception
(obstructed or not rotate)--></dropArm>
<fireInput opt="Normal,Alarm"><!--required, xs:string, fire input status: "Normal"-normal, "Alarm"-alarm--></
fireInput>
<caseTemp min="-2000.0" max="3000.0"><!--required, xs:float, pedestal temperature, it is between -2000.0 and
3000.0 and it is accurate to one decimal place--></caseTemp>
<alarmInTriggered min="1" max="8"><!--required, xs:string, alarm input triggering ID, it is between 1 and 8--></
alarmInTriggered>
<alarmOutTriggered min="1" max="4"><!--required, xs:string, alarm output triggering ID, it is between 1 and 4--></
alarmOutTriggered>
<brakeStatus opt="NotBrake,Brake"><!--required, xs:string, brake status: "NotBrake"-disable, "Brake"-enable--></
brakeStatus>
<fanStatus opt="NotStart,Start"><!--required, xs:string, fan status: "NotStart"-disable, "Start"-enable--></fanStatus>
<lampBoardCommFailed min="1" max="4"><!--required, xs:string, ID of communication with light board failed, it is
between 1 and 4--></lampBoardCommFailed>
</MasterChannelController>
<SlaveChannelController><!--related components' status of slave lane controller-->
<motorSensor opt="Normal,Abnormal"><!--required, xs:string, whether the motor or the sensor is normal:
"Normal"-normal, "Abnormal"-exception. This is used to detect the consistency between the motor encoder and the
hall sensor--></motorSensor>
<dropArmSensorAbnormal min="1" max="4"><!--required, xs:string, ID of barrier position sensor exception, it is
between 1 and 4. This is used to detect barrier open position switch--></dropArmSensorAbnormal>
<dropArm opt="Normal,Abnormal"><!--required, xs:string, barrier status: "Normal"-normal, "Abnormal"-exception
(obstructed or not rotate)--></dropArm>
<fireInput opt="Normal,Alarm"><!--required, xs:string, fire input status: "Normal"-normal, "Alarm"-alarm--></
fireInput>
<caseTemp min="-2000.0" max="3000.0"><!--required, xs:float, pedestal temperature, it is between -2000.0 and
3000.0 and it is accurate to one decimal place--></caseTemp>
<alarmInTriggered min="1" max="8"><!--required, xs:string, alarm input triggering ID, it is between 1 and 8--></
alarmInTriggered>

315
Device Network SDK (Access Control on Card) Developer Guide

<alarmOutTriggered min="1" max="4"><!--required, xs:string, alarm output triggering ID, it is between 1 and 4--></
alarmOutTriggered>
<brakeStatus opt="NotBrake,Brake"><!--required, xs:string, brake status: "NotBrake"-disable, "Brake"-enable--></
brakeStatus>
<fanStatus opt="NotStart,Start"><!--required, xs:string, fan status: "NotStart"-disable, "Start"-enable--></fanStatus>
<lampBoardCommFailed min="1" max="4"><!--required, xs:string, ID of communication with light board failed, it is
between 1 and 4--></lampBoardCommFailed>
</SlaveChannelController>
</GateRelatedPartsStatus>

6.55 XML_Cap_GateStatus
GateStatus capability message in XML format
<GateStatus version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<busSync opt="Normal,DropArmPoorSyn,BusCommFailed" ><!--required, xs:string, BUS synchronization status:
"Normal"-normal, "DropArmPoorSyn"-poor barriers synchronization, "BusCommFailed"-BUS communication failed--
></busSync>
<inDoorPassCount min="0" max="0xffffffff" ><!--required, xs:integer, IR people counting (entrance), it is between 0
and 0xffffffff. If reaching 0xffffffff, it will count from 0 again--></inDoorPassCount>
<inDoorAuthCount min="0" max="0xffffffff" ><!--required, xs:integer, people counting by authenticated times
(entrance), it is between 0 and 0xffffffff. If reaching 0xffffffff, it will count from 0 again--></inDoorAuthCount>
<outDoorPassCount min="0" max="0xffffffff" ><!--required, xs:integer, IR people counting (exit), it is between 0 and
0xffffffff. If reaching 0xffffffff, it will count from 0 again--></outDoorPassCount>
<outDoorAuthCount min="0" max="0xffffffff" ><!--required, xs:integer, people counting by authenticated times (exit),
it is between 0 and 0xffffffff. If reaching 0xffffffff, it will count from 0 again--></outDoorAuthCount>
<remoteControlRecvModule opt="Normal,Abnormal" ><!--required, xs:string, keyfob receiving module status:
"Normal"-normal, "Abnormal"-communication failed or the module is not installed--></remoteControlRecvModule>
<caseTempUnit opt="Centigrade,Fahrenheit" ><!--required, xs:string, pedestal temperature unit to be displayed:
"Centigrade"-Centigrade (°C), "Fahrenheit"-Fahrenheit (°F)--></caseTempUnit>
<currentInDoorMode opt="Controlled,Forbid,Free" ><!--required, xs:string, current passing mode (entrance):
"Controlled"-controlled, "Forbid"-prohibited, "Free"-free--></currentInDoorMode>
<currentOutDoorMode opt="Controlled,Forbid,Free" ><!--required, xs:string, current passing mode (exit):
"Controlled"-controlled, "Forbid"-prohibited, "Free"-free--></currentOutDoorMode>
<powerSupplyMode opt="ACPower,Battery" ><!--required, xs:string, device power supply mode: "ACPower"-by AC
power supply, "Battery"-by storage battery power supply--></powerSupplyMode>
</GateStatus>

6.56 XML_Cap_GetAcsEvent
GetAcsEvent capability message in XML format
<GetAcsEvent version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<EventCond><!--req, event search conditions-->
<majorType></majorType><!--req, event major type, see details in Access Control Event Types-->
<minorType></minorType><!--req, event minor type, see details in Access Control Event Types-->
<startTime></startTime><!--req, start time-->
<endTime></endTime><!--req, end time-->
<localOrUTC></localOrUTC><!--opt, time type: "Local"-device local time (default), "UTC"-UTC time. If this node is

316
Device Network SDK (Access Control on Card) Developer Guide

not returned, the startTime and endTime will be used as the local time by default-->
<cardNo min="" max=""></cardNo><!--req, card No.-->
<name min="" max=""></name><!--req, cardholder name-->
<picEnable opt="true,false"></picEnable><!--req, whether contains picture-->
<beginSerialNo min="" max=""></beginSerialNo><!--req, start serial No.-->
<endSerialNo min="" max=""></endSerialNo><!--req, end serial No.-->
<employeeNo min="" max=""></employeeNo><!--opt, employee No. (person ID)-->
</EventCond>
<EventLog>
<majorType>0x1</majorType><!--req, alarm event-->
<MinorTypeList>
<minorType>0x400</minorType><!--req, Zone short circuit attempts alarm-->
<minorType>0x401</minorType><!--req, Zone open circuit attempts alarm-->
<!--See more minor types of alarm event in Access Control Event Types-->
<MinorTypeList>
</EventLog>
<EventLog>
<majorType>0x2</majorType><!--req, exception alarm-->
<MinorTypeList>
<minorType>0x27</minorType><!--req, Network disconnected-->
<minorType>0x3a</minorType><!--req, Connection exception-->
<!--See more minor types of exception event in Access Control Event Types-->
<MinorTypeList>
</EventLog>
<EventLog>
<majorType>0x3</majorType><!--req, operation event-->
<MinorTypeList>
<minorType>0x400</minorType><!--req, Remotely opened door-->
<minorType>0x401</minorType><!--req, remotely closed door-->
<!--See more minor types of operation event in Access Control Event Types-->
<MinorTypeList>
</EventLog>
<EventLog>
<majorType>0x5</majorType><!--req, other event-->
<MinorTypeList>
<minorType>0x01</minorType><!--req, Authenticated by valid card-->
<minorType>0x02</minorType><!--req, Authenticated by card and password-->
<!--See more minor types of other event in Access Control Event Types-->
<MinorTypeList>
</EventLog>
</GetAcsEvent>

See Also
Access Control Event Types

6.57 XML_Cap_IdentityTerminal
IdentityTerminal capability message in XML format

317
Device Network SDK (Access Control on Card) Developer Guide

<IdentityTerminal version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">


<terminalMode opt="authMode,registerMode">
<!--req, xs: string, terminal mode: "authMode"-authentication mode, "registerMode"-registration mode-->
</terminalMode>
<idCardReader opt="iDR210,DS-K1F110-I,DS-K1F1110-B,DS-K1F1110-AB, none">
<!--req, xs: string,ID card reader model-->
</idCardReader>
<camera opt="C270,DS-2CS5432B-S"><!--req, xs: string, camera--></camera>
<fingerPrintModule opt="ALIWARD,HikModule"><!--req, xs: string, fingerprint module--></fingerPrintModule>
<videoStorageTime min="0" max="10"><!--req, xs: integer, time for saving video (unit: second)--></
videoStorageTime>
<faceContrastThreshold min="0" max="100"><!--req, xs: integer, face picture comparison threshold--></
faceContrastThreshold>
<twoDimensionCode opt="enable,disable"><!--req, xs: string, whether to enable QR code recognition--></
twoDimensionCod>
<blackListCheck opt="enable,disable"><!--req, xs: string, whether to enable blacklist verification--></blackListCheck>
<idCardCheckCenter opt="local,server">
<!--req, xs: string, ID card comparison mode: local-compare with ID card of local storage, server-compare with ID
card of remote server storage-->
</idCardCheckCenter>
<faceAlgorithm opt="HIK-Z,HIK-H">
<!--req, xs: string, face picture algorithm: HIK-Z-Hikviison algorithm, HIK-H-third-party algorithm-->
</faceAlgorithm>
<comNo min="1" max="9"><!--req, xs: integer, COM No.--></comNo>
<memoryLearning opt="enable,disable"><!--req, xs: string, whether to enable learning and memory function--></
memoryLearning>
<saveCertifiedImage opt="enable,disable"><!--req, xs: string, whether to enable saving authenticated picture--></
saveCertifiedImage>
<MCUVersion min="" max=""><!--opt, xs: string, MCU version information--></MCUVersion>
<usbOutput opt="enable,disable"><!--req, xs: string, whether to enable USB output of ID card reader--></
usbOutput>
<serialOutput opt="enable,disable"><!--req, xs: string, whether to enable serial port output of ID card reader--></
serialOutput>
<readInfoOfCard opt="serialNo,file"><!--opt, xs: string, set content to be read from CPU card--></readInfoOfCard>
<workMode opt="passMode,accessControlMode"><!--opt, xs: string, authentication mode--></workMode>
<ecoMode>
<eco opt="enable,disable"><!--opt, xs: string, whether to enable ECO mode--></eco>
<faceMatchThreshold1 min="" max=""><!--req, xs: integer, 1V1 face picture comparison threshold of ECO mode,
which is between 0 and 100--></faceMatchThreshold1>
<faceMatchThresholdN min="" max=""><!--req, xs: integer, 1:N face picture comparison threshold of ECO mode,
which is between 0 and 100--></faceMatchThresholdN>
<changeThreshold min="" max=""><!--opt, xs: string, switching threshold of ECO mode, which is between 0 and 8--
></changeThreshold>
</ecoMode>
<readCardRule opt="wiegand26,wiegand34"><!--opt, xs: string, card No. setting rule: "wiegand26", "wiegand34"--></
readCardRule>
</IdentityTerminal>

318
Device Network SDK (Access Control on Card) Developer Guide

6.58 XML_Cap_RightControllerAudio
RightControllerAudio capability message in XML format
<RightControllerAudio version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<id min="2" max="32" ><!--required, xs:string, audio ID--></id>
<audioName min="1" max="32" ><!--required, xs:string, audio name--></audioName>
<playCondition opt="NotPlay,CompleteAuth,AuthFail,Alarm" >
<!--required, xs:string, playing condition: "NotPlay"-not play, "CompleteAuth"-completely authenticated, "AuthFail"-
authentication failed, "Alarm"-alarm-->
</playCondition>
</RightControllerAudio>

6.59 XML_ChannelControllerAlarmLinkage
ChannelControllerAlarmLinkage message in XML format
<ChannelControllerAlarmLinkage version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<Trailing><!--required, tailgating-->
<masterAlarmOut><!--required, xs:string, local alarm output ID linked to the master lane controller, it is between 1
and 4--></masterAlarmOut>
<slaveAlarmOut><!--required, xs:string, local alarm output ID linked to the slave lane controller, it is between 1 and
4--></slaveAlarmOut>
</Trailing>
<ReverseAccess><!--required, reverse passing-->
<masterAlarmOut><!--required, xs:string, local alarm output ID linked to the master lane controller, it is between 1
and 4--></masterAlarmOut>
<slaveAlarmOut><!--required, xs:string, local alarm output ID linked to the slave lane controller, it is between 1 and
4--></slaveAlarmOut>
</ReverseAccess>
<ForceAccess><!--required, force accessing-->
<masterAlarmOut><!--required, xs:string, local alarm output ID linked to the master lane controller, it is between 1
and 4--></masterAlarmOut>
<slaveAlarmOut><!--required, xs:string, local alarm output ID linked to the slave lane controller, it is between 1 and
4--></slaveAlarmOut>
</ForceAccess>
<ClimbingOverGate><!--required, climbing over barrier-->
<masterAlarmOut><!--required, xs:string, local alarm output ID linked to the master lane controller, it is between 1
and 4--></masterAlarmOut>
<slaveAlarmOut><!--required, xs:string, local alarm output ID linked to the slave lane controller, it is between 1 and
4--></slaveAlarmOut>
</ClimbingOverGate>
<PassingTimeout><!--required, passing timeout-->
<masterAlarmOut><!--required, xs:string, local alarm output ID linked to the master lane controller, it is between 1
and 4--></masterAlarmOut>
<slaveAlarmOut><!--required, xs:string, local alarm output ID linked to the slave lane controller, it is between 1 and
4--></slaveAlarmOut>
</PassingTimeout>
<IntrusionAlarm><!--required, intrusion alarm-->

319
Device Network SDK (Access Control on Card) Developer Guide

<masterAlarmOut><!--required, xs:string, local alarm output ID linked to the master lane controller, it is between 1
and 4--></masterAlarmOut>
<slaveAlarmOut><!--required, xs:string, local alarm output ID linked to the slave lane controller, it is between 1 and
4--></slaveAlarmOut>
</IntrusionAlarm>
</ChannelControllerAlarmLinkage>

6.60 XML_ChannelControllerAlarmOut
ChannelControllerAlarmOut message in XML format
<ChannelControllerAlarmOut version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<delay><!--required, xs:integer, alarm output duration, it is between 0 and 5999, and 0 refers to continuous output,
unit: second--></delay>
</ChannelControllerAlarmOut>

6.61 XML_ChannelControllerAlarmOutControl
ChannelControllerAlarmOutControl message in XML format
<ChannelControllerAlarmOutControl version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<controllerType>
<!--required, xs:string, lane controller type: "Master"-master lane controller, "Slave"-slave lane controller-->
</controllerType>
<alarmOutNo>
<!--optional, xs:integer, alarm output No., which is between 1 and 4. If this node is not transmitted, it refers to all
alarm outputs-->
</alarmOutNo>
<alarmOutControl>
<!--optional, xs:string, control alarm output: "Start"-start alarm output, "Stop"-stop alarm output-->
</alarmOutControl>
</ChannelControllerAlarmOutControl>

6.62 XML_ChannelControllerCfg
ChannelControllerCfg message in XML format
<ChannelControllerCfg version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<gatePassingMode><!--required, xs:string, gate passing mode: "ByChannelController"-according to the lane
controller's local DIP settings, "ByRightController"-according to the main controller's settings--></gatePassingMode>
<freePassAuthEnabled><!--required, xs:string, whether authentication is required for free passing: "enable"-yes,
"disable"-no--></freePassAuthEnabled>
<openAndCloseSpeed><!--required, xs:integer, barrier's opening and closing speed, it is between 1 and 10 which
represent speed from 10% to 100%--></openAndCloseSpeed>
<alarmSoundTime><!--required, xs:integer, alarm prompt sound duration, unit: second. The value is between 0 and
599, and 0 refers to continuously playing alarm prompt sound--></alarmSoundTime>
<tempUnit><!--required, xs:string, temperature unit to be displayed: "Centigrade"-Celsius (°C), "Fahrenheit"-

320
Device Network SDK (Access Control on Card) Developer Guide

Fahrenheit (°F)--></tempUnit>
<alarmAreaNoAuth><!--optional, xs:boolean, whether opening door is prohibited in the alarm area--></
alarmAreaNoAuth>
<gateWingMaterial><!--optional, xs:string, barrier material: "Acrylic"-acrylic, "StellPipe"-steel tube, "SinglePUGate"-
single PU gate, "DoublePUGate"-double PU gate--></gateWingMaterial>
<channelLength><!--optional, xs:integer, lane length, unit: mm--></channelLength>
<motorDirection><!--optional, xs:string, motor rotation direction: "Clockwise", "AntiClockwise"--></motorDirection>
<lampBoardLight><!--optional, xs:integer, lamp board brightness, it is between 0 and 100--></lampBoardLight>
<openSpeed><!--optional, xs:string, barrier's opening speed, it is between 1 and 10 which represent speed from 10%
to 100%, and the default speed is 50%. If openAndCloseSpeed and openSpeed are configured simultaneously, the
barrier's opening speed is determined by openSpeed--></openSpeed>
<closeSpeed><!--optional, xs:integer, barrier's closing speed, it is between 1 and 10 which represent speed from 10%
to 100%, and the default speed is 40%. If openAndCloseSpeed and closeSpeed are configured simultaneously, the
barrier's closing speed is determined by closeSpeed--></closeSpeed>
</ChannelControllerCfg>

6.63 XML_Desc_AcsAbility
Input description message for getting access control capability.
<AcsAbility version="2.0">
<!--opt, specify child nodes about access control capabilities to be returned-->
</AcsAbility>
.

6.64 XML_EventNotificationAlert_AlarmEventInfo
EventNotificationAlert message with alarm/event information in XML format.
<EventNotificationAlert version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<ipAddress><!--dep, xs:string, device IPv4 address--></ipAddress>
<ipv6Address><!--dep, xs:string, device IPv6 address--></ipv6Address>
<portNo><!--opt, xs:integer, device port number--></portNo>
<protocol><!--opt, xs:string, protocol type for uploading alarm/event information, "HTTP,HTTPS"--></protocol>
<macAddress><!--opt, xs:string, MAC address--></macAddress>
<channelID><!--dep, xs:string, device channel No., starts from 1--></channelID>
<dateTime><!--req, alarm/event triggered or occurred time, format: 2017-07-19T10:06:41+08:00--></dateTime>
<activePostCount><!--req, xs:integer, alarm/event frequency, starts from 1--></activePostCount>
<eventType><!--req, xs:string, alarm/event type, "peopleCounting, ANPR,..."--></eventType>
<eventState>
<!--req, xs:string, durative alarm/event status: "active"-valid, "inactive"-invalid, e.g., when a moving target is
detected,
the alarm/event information will be uploaded continuously unit the status is set to "inactive"-->
</eventState>
<eventDescription><!--req, xs:string, alarm/event description--></eventDescription>
<...><!--opt, for different alarm/event types, the nodes are different, see the message examples in different
applications--></...>
</EventNotificationAlert>

321
Device Network SDK (Access Control on Card) Developer Guide

6.65 XML_FaceCompareCond
XML message about condition parameters of face picture comparison
<FaceCompareCond version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<faceWidthLowerLimit>
<!--optional, xs:integer, face width threshold with highest priority, value range: [0, 100], when the detected face
width is larger than this threshold, the following conditions will be ignored and the face comparison will be executed--
>
</faceWidthLowerLimit>
<pitch>
<!--optional, xs:integer, face raising or bowing angle, value range: [0, 90], unit: degree, the smaller the better-->
</pitch>
<yaw><!--optional, xs:integer, face siding left or right angle, value range: [0, 90], unit: degree, the smaller the better--
></yaw>
<width><!--optional, xs:integer, face width, value range: [0, 100]--></width>
<height><!--optional, xs:integer, face height, value range: [0, 100]--></height>
<leftBorder><!--optional, xs:integer, left border of face, value range: [0, 100]--></leftBorder>
<rightBorder><!--optional, xs:integer, right border of face, value range: [0, 100]--></rightBorder>
<upBorder><!--optional, xs:integer, top border of face, value range: [0, 100]--></upBorder>
<bottomBorder><!--optional, xs:integer, bottom border of face, value range: [0, 100]--></bottomBorder>
<interorbitalDistance><!--optional, xs:integer, pupil distance, value range: [0, 100]--></interorbitalDistance>
<faceScore><!--optional, xs:integer, face score, value range: [0, 100], the valid face score must be larger than this
score--></faceScore>
<maxDistance><!--optional, xs:string, maximum recognition distance: "0.5,1,1.5,2,auto", unit: m. This node has
higher priority over <interorbitalDistance>--></maxDistance>
</FaceCompareCond>

6.66 XML_GateDialAndInfo
GateDialAndInfo message in XML format
<GateDialAndInfo version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<workMode><!--required, xs:string, working mode: "Normal"-normal mode, "Origin"-closed position setting mode,
"Debug"-test mode--></workMode>
<memoryModeEnabled><!--required, xs:string, whether to enable memory mode: "enable", "disable"--></
memoryModeEnabled>
<alarmAreaNoAuth><!--required, xs:boolean, whether opening barrier is prohibited in the alarm area--></
alarmAreaNoAuth>
<deviceType><!--required, xs:string, device type: "DropGate"-swing barrier, "WingGate"-flap barrier,
"ThreeRollerGate"-tripod turnstile--></deviceType>
<DialMode><!--local DIP communication mode-->
<InDoor><!--required, xs:string, entrance: "Controlled"-controlled, "Forbid"-prohibited, "Free"-free--></InDoor>
<OutDoor><!--required, xs:string, exit: "Controlled"-controlled, "Forbid"-prohibited, "Free"-free--></OutDoor>
</DialMode>
</GateDialAndInfo>

322
Device Network SDK (Access Control on Card) Developer Guide

6.67 XML_GateIRStatus
GateIRStatus message in XML format
<GateIRStatus version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<IREmitter><!--status of active infrared intrusion detector-->
<triggered><!--required, xs:string, triggering IR ID of the active infrared intrusion detector, it is between 1 and 48--
></triggered>
<triggeredTimeout><!--required, xs:string, triggering timeout IR ID of the active infrared intrusion detector, it is
between 1 and 48--></triggeredTimeout>
<receiveBoardAbnormal><!--required, xs:string, communication exception IR ID of the receiving board, it is between
1 and 48--></receiveBoardAbnormal>
<sendBoardAbnormal><!--required, xs:string, communication exception IR ID of the sending board, it is between 1
and 48--></sendBoardAbnormal>
<sendAndReceiveLocateAbnormal><!--required, xs:string, sending and receiving position exception ID, it is between
1 and 48--></sendAndReceiveLocateAbnormal>
</IREmitter>
<masterIRAdaptorCommFailed><!--required, xs:string, ID of communication with IR adapter of the master lane
controller failed, it can be set to 1 or 2--></masterIRAdaptorCommFailed>
<slaveIRAdaptorCommFailed><!--required, xs:string, ID of communication with IR adapter of the slave lane controller
failed, it can be set to 1 or 2--></slaveIRAdaptorCommFailed>
</GateIRStatus>

6.68 XML_GateRelatedPartsStatus
GateRelatedPartsStatus message in XML format
<GateRelatedPartsStatus version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<MasterChannelController><!--related components' status of master lane controller-->
<motorSensor><!--required, xs:string, whether the motor or the sensor is normal: "Normal"-normal, "Abnormal"-
exception. This is used to detect the consistency between the motor encoder and the hall sensor--></motorSensor>
<dropArmSensorAbnormal><!--required, xs:string, ID of barrier position sensor exception, it is between 1 and 4.
This is used to detect barrier open position switch--></dropArmSensorAbnormal>
<dropArm><!--required, xs:string, barrier status: "Normal"-normal, "Abnormal"-exception (obstructed or not
rotate)--></dropArm>
<fireInput><!--required, xs:string, fire input status: "Normal"-normal, "Alarm"-alarm--></fireInput>
<caseTemp><!--required, xs:float, pedestal temperature, it is between -2000.0 and 3000.0 and it is accurate to one
decimal place--></caseTemp>
<alarmInTriggered><!--required, xs:string, alarm input triggering ID, it is between 1 and 8--></alarmInTriggered>
<alarmOutTriggered><!--required, xs:string, alarm output triggering ID, it is between 1 and 4--></
alarmOutTriggered>
<brakeStatus><!--required, xs:string, brake status: "NotBrake"-disable, "Brake"-enable--></brakeStatus>
<fanStatus><!--required, xs:string, fan status: "NotStart"-disable, "Start"-enable--></fanStatus>
<lampBoardCommFailed><!--required, xs:string, ID of communication with light board failed, it is between 1 and 4--
></lampBoardCommFailed>
</MasterChannelController>
<SlaveChannelController><!--related components' status of slave lane controller-->
<motorSensor><!--required, xs:string, whether the motor or the sensor is normal: "Normal"-normal, "Abnormal"-
exception. This is used to detect the consistency between the motor encoder and the hall sensor--></motorSensor>

323
Device Network SDK (Access Control on Card) Developer Guide

<dropArmSensorAbnormal><!--required, xs:string, ID of barrier position sensor exception, it is between 1 and 4.


This is used to detect barrier open position switch--></dropArmSensorAbnormal>
<dropArm><!--required, xs:string, barrier status: "Normal"-normal, "Abnormal"-exception (obstructed or not
rotate)--></dropArm>
<fireInput><!--required, xs:string, fire input status: "Normal"-normal, "Alarm"-alarm--></fireInput>
<caseTemp><!--required, xs:float, pedestal temperature, it is between -2000.0 and 3000.0 and it is accurate to one
decimal place--></caseTemp>
<alarmInTriggered><!--required, xs:string, alarm input triggering ID, it is between 1 and 8--></alarmInTriggered>
<alarmOutTriggered><!--required, xs:string, alarm output triggering ID, it is between 1 and 4--></
alarmOutTriggered>
<brakeStatus><!--required, xs:string, brake status: "NotBrake"-disable, "Brake"-enable--></brakeStatus>
<fanStatus><!--required, xs:string, fan status: "NotStart"-disable, "Start"-enable--></fanStatus>
<lampBoardCommFailed><!--required, xs:string, ID of communication with light board failed, it is between 1 and 4--
></lampBoardCommFailed>
</SlaveChannelController>
</GateRelatedPartsStatus>

6.69 XML_GateStatus
GateStatus message in XML format
<GateStatus version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<busSync><!--required, xs:string, BUS synchronization status: "Normal"-normal, "DropArmPoorSyn"-poor barriers
synchronization, "BusCommFailed"-BUS communication failed--></busSync>
<inDoorPassCount><!--required, xs:integer, IR people counting (entrance), it is between 0 and 0xffffffff. If reaching
0xffffffff, it will count from 0 again--></inDoorPassCount>
<inDoorAuthCount><!--required, xs:integer, people counting by authenticated times (entrance), it is between 0 and
0xffffffff. If reaching 0xffffffff, it will count from 0 again--></inDoorAuthCount>
<outDoorPassCount><!--required, xs:integer, IR people counting (exit), it is between 0 and 0xffffffff. If reaching
0xffffffff, it will count from 0 again--></outDoorPassCount>
<outDoorAuthCount><!--required, xs:integer, people counting by authenticated times (exit), it is between 0 and
0xffffffff. If reaching 0xffffffff, it will count from 0 again--></outDoorAuthCount>
<remoteControlRecvModule><!--required, xs:string, keyfob receiving module status: "Normal"-normal, "Abnormal"-
communication failed or the module is not installed--></remoteControlRecvModule>
<caseTempUnit><!--required, xs:string, pedestal temperature unit to be displayed: "Centigrade"-Centigrade (°C),
"Fahrenheit"-Fahrenheit (°F)--></caseTempUnit>
<currentInDoorMode><!--required, xs:string, current passing mode (entrance): "Controlled"-controlled, "Forbid"-
prohibited, "Free"-free--></currentInDoorMode>
<currentOutDoorMode><!--required, xs:string, current passing mode (exit): "Controlled"-controlled, "Forbid"-
prohibited, "Free"-free--></currentOutDoorMode>
<powerSupplyMode><!--required, xs:string, device power supply mode: "ACPower"-by AC power supply, "Battery"-
by storage battery power supply--></powerSupplyMode>
</GateStatus>

6.70 XML_IdentityTerminal
IdentityTerminal message in XML format

324
Device Network SDK (Access Control on Card) Developer Guide

<IdentityTerminal version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">


<terminalMode>
<!--req, xs: string, terminal mode: "authMode"-authentication mode, "registerMode"-registration mode-->
</terminalMode>
<idCardReader>
<!--req, xs: string, ID card reader model: iDR210, DS-K1F110-I, DS-K1F1110-B, DS-K1F1110-AB, none, DS-K1F1001-
I(USB), DS-K1F1002-I(USB), none-->
</idCardReader>
<camera><!--req, xs: string, camera model: C270, DS-2CS5432B-S--></camera>
<fingerPrintModule><!--req, xs: string, fingerprint module type: ALIWARD, HikModule--></fingerPrintModule>
<videoStorageTime><!--req, xs: integer, time for saving video (unit: second), which is between 0 and 10--></
videoStorageTime>
<faceContrastThreshold><!--req, xs: integer, face picture comparison threshold, which is between 0 and 100--></
faceContrastThreshold>
<twoDimensionCode><!--req, xs: string, whether to enable QR code recognition: enable, disable--></
twoDimensionCod>
<blackListCheck><!--req, xs: string, whether to enable blacklist verification: enable, disable--></blackListCheck>
<idCardCheckCenter>
<!--req, xs: string, ID card comparison mode: local-compare with ID card of local storage, server-compare with ID
card of remote server storage-->
</idCardCheckCenter>
<faceAlgorithm>
<!--req, xs: string, face picture algorithm: HIK-Z-Hikviison algorithm, HIK-H-third-party algorithm-->
</faceAlgorithm>
<comNo><!--req, xs: integer, COM No., which is between 1 and 9--></comNo>
<memoryLearning><!--req, xs: string, whether to enable learning and memory function: enable, disable--></
memoryLearning>
<saveCertifiedImage><!--req, xs: string, whether to enable saving authenticated picture: enable, disable--></
saveCertifiedImage>
<MCUVersion><!--opt, xs: string, MCU version information, read-only--></MCUVersion>
<usbOutput><!--opt, xs: string, whether to enable USB output of ID card reader: enable, disable--></usbOutput>
<serialOutput><!--opt, xs: string, whether to enable serial port output of ID card reader: enable, disable--></
serialOutput>
<readInfoOfCard><!--opt, xs: string, set content to be read from CPU card: serialNo-read serial No., file-read file--></
readInfoOfCard>
<workMode><!--opt, xs: string, authentication mode: passMode, accessControlMode--></workMode>
<ecoMode>
<eco><!--opt, xs: string, whether to enable ECO mode: enable, disable--></eco>
<faceMatchThreshold1><!--req, xs: integer, 1V1 face picture comparison threshold of ECO mode, which is between
0 and 100--></faceMatchThreshold1>
<faceMatchThresholdN><!--req, xs: integer, 1:N face picture comparison threshold of ECO mode, which is between
0 and 100--></faceMatchThresholdN>
<changeThreshold><!--opt, xs: string, switching threshold of ECO mode, which is between 0 and 8--></
changeThreshold>
</ecoMode>
<readCardRule><!--opt, xs: string, card No. setting rule: "wiegand26", "wiegand34"--></readCardRule>
</IdentityTerminal>

325
Device Network SDK (Access Control on Card) Developer Guide

6.71 XML_ResponseStatus
ResponseStatus message in XML format
<ResponseStatus version="2.0" xmlns="http://www.std-cgi.org/ver20/XMLSchema">
<requestURL>
<!--req, ro, xs:string, request URL-->
</requestURL>
<statusCode>
<!--req, ro, xs:integer, status code: 0,1-OK, 2-Device Busy, 3-Device Error, 4-Invalid Operation, 5-Invalid XML Format,
6-Invalid XML Content, 7-Reboot Required, 9-Additional Error-->
</statusCode>
<statusString>
<!--req, ro, xs:string, status description: OK, Device Busy, Device Error, Invalid Operation, Invalid XML Format, Invalid
XML Content, Reboot, Additional Error-->
</statusString>
<id>
<!--opt, xs:integer, unique device ID created in POST operation-->
</id>
<subStatusCode>
<!--req, ro, xs:string, describe the error reason in detail-->
</subStatusCode>
<errorCode>
<!--opt, ro, xs:integer, error code, the returned value is the transformed decimal number-->
</errorCode>
<errorMsg>
<!--opt, ro, xs:string, error message-->
</errorMsg>
<AdditionalErr>
<!--dep, it is valid when statusCode is set to 9 (Additional Error). When setting or deleting in a batch failed, if the
error status of a specific device needs to be returned, statusCode should be set to 9 (Additional Error) and the node
<AdditionalError> should be returned-->
<StatusList>
<!--req-->
<Status>
<!--req-->
<id>
<!--opt, xs:string, device ID created in POST operation-->
</id>
<statusCode>
<!--req, ro, xs:integer, status code: 0,1-OK, 2-Device Busy, 3-Device Error, 4-Invalid Operation, 5-Invalid XML
Format, 6-Invalid XML Content, 7-Reboot Required-->
</statusCode>
<statusString>
<!--req, ro, xs:string, status description: OK, Device Busy, Device Error, Invalid Operation, Invalid XML Format,
Invalid XML Content, Reboot-->
</statusString>
<subStatusCode>
<!--req, ro, xs:string, describe the error reason in detail-->
</subStatusCode>
</Status>

326
Device Network SDK (Access Control on Card) Developer Guide

</StatusList>
</AdditionalErr>
</ResponseStatus>

Note
See ISAPI Response Codes for details about sub status codes and corresponding error codes.

6.72 XML_RightControllerAudio
RightControllerAudio message in XML format
<RightControllerAudio version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<audioName><!--required, xs:string, audio name--></audioName>
<playCondition>
<!--required, xs:string, playing condition: "NotPlay"-not play, "CompleteAuth"-completely authenticated, "AuthFail"-
authentication failed, "Alarm"-alarm-->
</playCondition>
</RightControllerAudio>

327
Device Network SDK (Access Control on Card) Developer Guide

Appendix A. Appendixes

A.1 Access Control Event Types


The access control events are classified as four major types, i.e., alarm events
(MAJOR_ALARM-0x1), exception events (MAJOR_EXCEPTION-0x2), operation events
(MAJOR_OPERATION-0x3), and other events (MAJOR_EVENT-0x5). Each major type corresponds to
multiple minor types, see details below.

MAJOR_ALARM

Event Minor Type Value Description


MINOR_ALARMIN_SHORT_ 0x400 Zone Short Circuit Attempts
CIRCUIT Alarm
MINOR_ALARMIN_BROKEN_ 0x401 Zone Disconnected Alarm
CIRCUIT
MINOR_ALARMIN_EXCEPTION 0x402 Zone Exception Alarm
MINOR_ALARMIN_RESUME 0x403 Zone Restored
MINOR_HOST_DESMANTLE_ 0x404 Zone Tampering Alarm
ALARM
MINOR_HOST_DESMANTLE_ 0x405 Zone Tampering Restored
RESUME
MINOR_CARD_READER_ 0x406 Card Reader Tampering Alarm
DESMANTLE_ALARM
MINOR_CARD_READER_ 0x407 Card Reader Tampering
DESMANTLE_RESUME Restored
MINOR_CASE_SENSOR_ALARM 0x408 Alarm Input Alarm Triggered
MINOR_CASE_SENSOR_ 0x409 Alarm Input Restored
RESUME
MINOR_STRESS_ALARM 0x40a Duress Alarm
MINOR_OFFLINE_ECENT_ 0x40b No Memory for Offline Event
NEARLY_FULL Storage Alarm
MINOR_CARD_MAX_ 0x40c Maximum Failed Card
AUTHENTICATE_FAIL Authentications Alarm
MINOR_SD_CARD_FULL 0x40d SD Card Full Alarm

328
Device Network SDK (Access Control on Card) Developer Guide

Event Minor Type Value Description


MINOR_LINKAGE_CAPTURE_ 0x40e Capture Linkage Alarm
PIC
MINOR_SECURITY_MODULE_ 0x40f Secure Door Control Unit
DESMANTLE_ALARM Tampering Alarm
MINOR_SECURITY_MODULE_ 0x410 Secure Door Control Unit
DESMANTLE_RESUME Tampering Restored
MINOR_FIRE_IMPORT_SHORT_ 0x415 Fire Input Short Circuit
CIRCUIT Attempts Alarm
MINOR_FIRE_IMPORT_ 0x416 Fire Input Open Circuit
BROKEN_CIRCUIT Attempts Alarm
MINOR_FIRE_IMPORT_ 0x417 Fire Input Restored
RESUME
MINOR_FIRE_BUTTON_ 0x418 Fire Button Triggered
TRIGGER
MINOR_FIRE_BUTTON_ 0x419 Fire Button Resumed
RESUME
MINOR_MAINTENANCE_ 0x41a Maintenance Button Triggered
BUTTON_TRIGGER
MINOR_MAINTENANCE_ 0x41b Maintenance Button Resumed
BUTTON_RESUME
MINOR_EMERGENCY_ 0x41c Panic Button Triggered
BUTTON_TRIGGER
MINOR_EMERGENCY_ 0x41d Panic Button Resumed
BUTTON_RESUME
MINOR_DISTRACT_ 0x41e Distributed Elevator Controller
CONTROLLER_ALARM Tampering Alarm
MINOR_DISTRACT_ 0x41f Distributed Elevator Controller
CONTROLLER_RESUME Tampering Restored
MINOR_CHANNEL_ 0x422 Lane Controller Tampering
CONTROLLER_DESMANTLE_ Alarm
ALARM
MINOR_CHANNEL_ 0x423 Lane Controller Tampering
CONTROLLER_DESMANTLE_ Alarm Restored
RESUME

329
Device Network SDK (Access Control on Card) Developer Guide

Event Minor Type Value Description


MINOR_CHANNEL_ 0x424 Lane Controller Fire Input
CONTROLLER_FIRE_IMPORT_ Alarm
ALARM
MINOR_CHANNEL_ 0x425 Lane Controller Fire Input
CONTROLLER_FIRE_IMPORT_ Alarm Restored
RESUME
MINOR_PRINTER_OUT_OF_ 0x440 No Paper in Printer Alarm
PAPER
MINOR_LEGAL_EVENT_ 0x442 No Memory Alarm for Valid
NEARLY_FULL Offline Event Storage
MINOR_ALARM_CUSTOM1 to 0x900 to 0x93f Access Control: Custom Alarm
MINOR_ALARM_CUSTOM64 Event 1 to Custom Alarm Event
64

MAJOR_EXCEPTION

Event Minor Type Value Description


MINOR_NET_BROKEN 0x27 Network Disconnected
MINOR_RS485_DEVICE_ 0x3a RS485 Connection Exception
ABNORMAL
MINOR_RS485_DEVICE_ 0x3b RS485 Connection Restored
REVERT
MINOR_DEV_POWER_ON 0x400 Power on
MINOR_DEV_POWER_OFF 0x401 Power off
MINOR_WATCH_DOG_RESET 0x402 Watchdog Reset
MINOR_LOW_BATTERY 0x403 Low Battery Voltage
MINOR_BATTERY_RESUME 0x404 Battery Voltage Restored
MINOR_AC_OFF 0x405 AC Power Disconnected
MINOR_AC_RESUME 0x406 AC Power Restored
MINOR_NET_RESUME 0x407 Network Restored
MINOR_FLASH_ABNORMAL 0x408 Flash Reading and Writing
Exception
MINOR_CARD_READER_ 0x409 Card Reader Offline
OFFLINE

330
Device Network SDK (Access Control on Card) Developer Guide

Event Minor Type Value Description


MINOR_CAED_READER_ 0x40a Card Reader Online
RESUME
MINOR_INDICATOR_LIGHT_ 0x40b Indicator Turns off
OFF
MINOR_INDICATOR_LIGHT_ 0x40c Indicator Resumed
RESUME
MINOR_CHANNEL_ 0x40d Lane Controller Offline
CONTROLLER_OFF
MINOR_CHANNEL_ 0x40e Lane Controller Online
CONTROLLER_RESUME
MINOR_SECURITY_MODULE_ 0x40f Secure Door Control Unit
OFF Offline
MINOR_SECURITY_MODULE_ 0x410 Secure Door Control Unit
RESUME Online
MINOR_BATTERY_ELECTRIC_ 0x411 Low Battery Voltage (Only for
LOW Face Recognition Terminal)
MINOR_BATTERY_ELECTRIC_ 0x412 Battery Voltage Recovered
RESUME (Only for Face Recognition
Terminal)
MINOR_LOCAL_CONTROL_ 0x413 Network of Distributed Access
NET_BROKEN Controller Disconnected
MINOR_LOCAL_CONTROL_ 0x414 Network of Distributed Access
NET_RSUME Controller Restored
MINOR_MASTER_RS485_ 0x415 RS485 Loop of Master Access
LOOPNODE_BROKEN Controller Disconnected
MINOR_MASTER_RS485_ 0x416 RS485 Loop of Master Access
LOOPNODE_RESUME Controller Connected
MINOR_LOCAL_CONTROL_ 0x417 Distributed Access Controller
OFFLINE Offline
MINOR_LOCAL_CONTROL_ 0x418 Distributed Access Controller
RESUME Online
MINOR_LOCAL_DOWNSIDE_ 0x419 Downstream RS485 Loop of
RS485_LOOPNODE_BROKEN Distributed Access Control
Disconnected

331
Device Network SDK (Access Control on Card) Developer Guide

Event Minor Type Value Description


MINOR_LOCAL_DOWNSIDE_ 0x41a Downstream RS485 Loop of
RS485_LOOPNODE_RESUME Distributed Access Control
Connected
MINOR_DISTRACT_ 0x41b Distributed Elevator Controller
CONTROLLER_ONLINE Online
MINOR_DISTRACT_ 0x41c Distributed Elevator Controller
CONTROLLER_OFFLINE Offline
MINOR_ID_CARD_READER_ 0x41d ID Card Reader Disconnected
NOT_CONNECT
MINOR_ID_CARD_READER_ 0x41e ID Card Reader Connected
RESUME
MINOR_FINGER_PRINT_ 0x41f Fingerprint Module
MODULE_NOT_CONNECT Disconnected
MINOR_FINGER_PRINT_ 0x420 Fingerprint Module Connected
MODULE_RESUME
MINOR_CAMERA_NOT_ 0x421 Camera Disconnected
CONNECT
MINOR_CAMERA_RESUME 0x422 Camera Connected
MINOR_COM_NOT_CONNECT 0x423 COM Port Disconnected
MINOR_COM_RESUME 0x424 COM Port Connected
MINOR_DEVICE_NOT_ 0x425 Device Unauthorized
AUTHORIZE
MINOR_PEOPLE_AND_ID_ 0x426 Face Recognition Terminal
CARD_DEVICE_ONLINE Online
MINOR_PEOPLE_AND_ID_ 0x427 Face Recognition Terminal
CARD_DEVICE_OFFLINE Offline
MINOR_LOCAL_LOGIN_LOCK 0x428 Local Login Lock
MINOR_LOCAL_LOGIN_ 0x429 Local Login Unlock
UNLOCK
MINOR_SUBMARINEBACK_ 0x42a Communication with Anti-
COMM_BREAK passing Back Server Failed
MINOR_SUBMARINEBACK_ 0x42b Communication with Anti-
COMM_RESUME passing Back Server Restored

332
Device Network SDK (Access Control on Card) Developer Guide

Event Minor Type Value Description


MINOR_MOTOR_SENSOR_ 0x42c Motor or Sensor Exception
EXCEPTION
MINOR_CAN_BUS_EXCEPTION 0x42d CAN Bus Exception
MINOR_CAN_BUS_RESUME 0x42e CAN Bus Exception Restored
MINOR_GATE_TEMPERATURE_ 0x42f Too High Pedestal Temperature
OVERRUN
MINOR_IR_EMITTER_ 0x430 Active Infrared Intrusion
EXCEPTION Detector Exception
MINOR_IR_EMITTER_RESUME 0x431 Active Infrared Intrusion
Detector Restored
MINOR_LAMP_BOARD_ 0x432 Communication with Light
COMM_EXCEPTION Board Failed
MINOR_LAMP_BOARD_ 0x433 Communication with Light
COMM_RESUME Board Restored
MINOR_IR_ADAPTOR_COMM_ 0x434 Communication with IR
EXCEPTION Adaptor Failed
MINOR_IR_ADAPTOR_COMM_ 0x435 Communication with IR
RESUME Adaptor Restored
MINOR_PRINTER_ONLINE 0x436 Printer Online
MINOR_PRINTER_OFFLINE 0x437 Printer Offline
MINOR_4G_MOUDLE_ONLINE 0x438 4G Module Online
MINOR_4G_MOUDLE_OFFLINE 0x439 4G Module Offline
MINOR_AUXILIARY_BOARD_ 0x43c Auxiliary Board Disconnected
OFFLINE
MINOR_AUXILIARY_BOARD_ 0x43d Auxiliary Board Connected
RESUME
MINOR_IDCARD_SECURITY_ 0x43e Secure ID Card Unit Exception
MOUDLE_EXCEPTION
MINOR_IDCARD_SECURITY_ 0x43f Secure ID Card Unit Restored
MOUDLE_RESUME
MINOR_FP_PERIPHERAL_ 0x440 Fingerprint Collection
EXCEPTION Peripheral Exception

333
Device Network SDK (Access Control on Card) Developer Guide

Event Minor Type Value Description


MINOR_FP_PERIPHERAL_ 0x441 Fingerprint Collection
RESUME Peripheral Restored
MINOR_EXCEPTION_CUSTOM1 0x900 to 0x93f Access Control: Custom
to MINOR_EXCEPTION_ Exception Event 1 to Custom
CUSTOM64 Exception Event 64

MAJOR_OPERATION

Alarm Minor Types Value Description


MINOR_LOCAL_LOGIN 0x50 Local Login
MINOR_LOCAL_LOGOUT 0x51 Local Logout
MINOR_LOCAL_UPGRADE 0x5a Local Upgrade
MINOR_REMOTE_LOGIN 0x70 Remote Login
MINOR_REMOTE_LOGOUT 0x71 Remote Logout
MINOR_REMOTE_ARM 0x79 Remote Arming
MINOR_REMOTE_DISARM 0x7a Remote Disarming
MINOR_REMOTE_REBOOT 0x7b Remote Reboot
MINOR_REMOTE_UPGRADE 0x7e Remote Upgrade
MINOR_REMOTE_CFGFILE_ 0x86 Remote Operation: Export
OUTPUT Configuration File
MINOR_REMOTE_CFGFILE_ 0x87 Remote Operation: Import
INTPUT Configuration File
MINOR_REMOTE_ALARMOUT_ 0xd6 Remote Operation: Enable
OPEN_MAN Alarm Output Manually
MINOR_REMOTE_ALARMOUT_ 0xd7 Remote Operation: Disable
CLOSE_MAN Alarm Output Manually
MINOR_REMOTE_OPEN_DOOR 0x400 Door Remotely Open
MINOR_REMOTE_CLOSE_ 0x401 Door Remotely Closed
DOOR
MINOR_REMOTE_ALWAYS_ 0x402 Remain Open Remotely
OPEN
MINOR_REMOTE_ALWAYS_ 0x403 Remain Closed Remotely
CLOSE

334
Device Network SDK (Access Control on Card) Developer Guide

Alarm Minor Types Value Description


MINOR_REMOTE_CHECK_TIME 0x404 Remote: Manual Time Sync
MINOR_NTP_CHECK_TIME 0x405 Network Time Protocol
Synchronization
MINOR_REMOTE_CLEAR_CARD 0x406 Remote Operation: Clear All
Card No.
MINOR_REMOTE_RESTORE_ 0x407 Remote Operation: Restore
CFG Defaults
MINOR_ALARMIN_ARM 0x408 Zone Arming
MINOR_ALARMIN_DISARM 0x409 Zone Disarming
MINOR_LOCAL_RESTORE_CFG 0x40a Local Operation: Restore
Defaults
MINOR_REMOTE_CAPTURE_ 0x40b Remote Operation: Capture
PIC
MINOR_MOD_NET_REPORT_ 0x40c Edit Network Parameters
CFG
MINOR_MOD_GPRS_REPORT_ 0x40d Edit GPRS Parameters
PARAM
MINOR_MOD_REPORT_ 0x40e Edit Control Center Parameters
GROUP_PARAM
MINOR_UNLOCK_PASSWORD_ 0x40f Enter Dismiss Code
OPEN_DOOR
MINOR_AUTO_RENUMBER 0x410 Auto Renumber
MINOR_AUTO_COMPLEMENT_ 0x411 Auto Supplement Number
NUMBER
MINOR_NORMAL_CFGFILE_ 0x412 Import Configuration File
INPUT
MINOR_NORMAL_CFGFILE_ 0x413 Export Configuration File
OUTTPUT
MINOR_CARD_RIGHT_INPUT 0x414 Import Card Permission
Parameters
MINOR_CARD_RIGHT_ 0x415 Export Card Permission
OUTTPUT Parameters

335
Device Network SDK (Access Control on Card) Developer Guide

Alarm Minor Types Value Description


MINOR_LOCAL_USB_UPGRADE 0x416 Upgrade Device via USB flash
Drive
MINOR_REMOTE_VISITOR_ 0x417 Visitor Calling Elevator
CALL_LADDER
MINOR_REMOTE_ 0x418 Resident Calling Elevator
HOUSEHOLD_CALL_LADDER
MINOR_REMOTE_ACTUAL_ 0x419 Remotely Arming
GUARD
MINOR_REMOTE_ACTUAL_ 0x41a Remotely Disarming
UNGUARD
MINOR_REMOTE_CONTROL_ 0x41b Operation Failed: Keyfob Not
NOT_CODE_OPER_FAILED Pairing
MINOR_REMOTE_CONTROL_ 0x41c Keyfob Operation: Close Door
CLOSE_DOOR
MINOR_REMOTE_CONTROL_ 0x41d Keyfob Operation: Open Door
OPEN_DOOR
MINOR_REMOTE_CONTROL_ 0x41e Keyfob Operation: Remain
ALWAYS_OPEN_DOOR Door Open
MINOR_M1_CARD_ENCRYPT_ 0x41f M1 Card Encryption
VERIFY_OPEN Verification Enabled
MINOR_M1_CARD_ENCRYPT_ 0x420 M1 Card Encryption
VERIFY_CLOSE Verification Disabled
MINOR_NFC_FUNCTION_OPEN 0X421 Opening Door with NFC Card
Enabled
MINOR_NFC_FUNCTION_ 0X422 Opening Door with NFC Card
CLOSE Disabled
MINOR_OFFLINE_DATA_ 0x423 Export Offline Collected Data
OUTPUT
MINOR_CREATE_SSH_LINK 0x42d Establish SSH Connection
MINOR_CLOSE_SSH_LINK 0x42e Disconnect SSH Connection
MINOR_OPERATION_CUSTOM1 0x900-0x93f Access Control: Custom
to MINOR_OPERATION_ Operation Event 1 to Custom
CUSTOM64 Operation Event 64

336
Device Network SDK (Access Control on Card) Developer Guide

MAJOR_EVENT

Event Minor Types Value Description


MINOR_LEGAL_CARD_PASS 0x01 Valid Card Authentication
Completed
MINOR_CARD_AND_PSW_PASS 0x02 Card and Password
Authentication Completed
MINOR_CARD_AND_PSW_FAIL 0x03 Card and Password
Authentication Failed
MINOR_CARD_AND_PSW_ 0x04 Card and Password
TIMEOUT Authentication Timed Out
MINOR_CARD_AND_PSW_ 0x05 Card and Password
OVER_TIME Authentication Timed Out
MINOR_CARD_NO_RIGHT 0x06 No Permission
MINOR_CARD_INVALID_ 0x07 Invalid Card Swiping Time
PERIOD Period
MINOR_CARD_OUT_OF_DATE 0x08 Expired Card
MINOR_INVALID_CARD 0x09 Card No. Not Exist
MINOR_ANTI_SNEAK_FAIL 0x0a Anti-​passing Back
Authentication Failed
MINOR_INTERLOCK_DOOR_ 0x0b Interlocking Door Not Closed
NOT_CLOSE
MINOR_NOT_BELONG_MULTI_ 0x0c Card Not in Multiple
GROUP Authentication Group
MINOR_INVALID_MULTI_ 0x0d Card Not in Multiple
VERIFY_PERIOD Authentication Duration
MINOR_MULTI_VERIFY_ 0x0e Multiple Authentications:
SUPER_RIGHT_FAIL Super Password Authentication
Failed
MINOR_MULTI_VERIFY_ 0x0f Multiple Authentication
REMOTE_RIGHT_FAIL Completed
MINOR_MULTI_VERIFY_ 0x10 Multiple Authenticated
SUCCESS
MINOR_LEADER_CARD_OPEN_ 0x11 Open Door with First Card
BEGIN Started

337
Device Network SDK (Access Control on Card) Developer Guide

Event Minor Types Value Description


MINOR_LEADER_CARD_OPEN_ 0x12 Open Door with First Card
END Stopped
MINOR_ALWAYS_OPEN_BEGIN 0x13 Remain Open Started
MINOR_ALWAYS_OPEN_END 0x14 Remain Open Stopped
MINOR_LOCK_OPEN 0x15 Door Unlocked
MINOR_LOCK_CLOSE 0x16 Door Locked
MINOR_DOOR_BUTTON_PRESS 0x17 Exit Button Pressed
MINOR_DOOR_BUTTON_ 0x18 Exit Button Released
RELEASE
MINOR_DOOR_OPEN_ 0x19 Door Open (Contact)
NORMAL
MINOR_DOOR_CLOSE_ 0x1a Door Closed (Contact)
NORMAL
MINOR_DOOR_OPEN_ 0x1b Door Abnormally Open
ABNORMAL (Contact)
MINOR_DOOR_OPEN_ 0x1c Door Open Timed Out
TIMEOUT (Contact)
MINOR_ALARMOUT_ON 0x1d Alarm Output Enabled
MINOR_ALARMOUT_OFF 0x1e Alarm Output Disabled
MINOR_ALWAYS_CLOSE_BEGIN 0x1f Remain Closed Started
MINOR_ALWAYS_CLOSE_END 0x20 Remain Closed Stopped
MINOR_MULTI_VERIFY_NEED_ 0x21 Multiple Authentications:
REMOTE_OPEN Remotely Open Door
MINOR_MULTI_VERIFY_ 0x22 Multiple Authentications:
SUPERPASSWD_VERIFY_ Super Password Authentication
SUCCESS Completed
MINOR_MULTI_VERIFY_ 0x23 Multiple Authentications:
REPEAT_VERIFY Repeated Authentication
MINOR_MULTI_VERIFY_ 0x24 Multiple Authentications Timed
TIMEOUT Out
MINOR_DOORBELL_RINGING 0x25 Doorbell Ring

338
Device Network SDK (Access Control on Card) Developer Guide

Event Minor Types Value Description


MINOR_FINGERPRINT_ 0x26 Fingerprint Matched
COMPARE_PASS
MINOR_FINGERPRINT_ 0x27 Fingerprint Mismatched
COMPARE_FAIL
MINOR_CARD_FINGERPRINT_ 0x28 Card and Fingerprint
VERIFY_PASS Authentication Completed
MINOR_CARD_FINGERPRINT_ 0x29 Card and Fingerprint
VERIFY_FAIL Authentication Failed
MINOR_CARD_FINGERPRINT_ 0x2a Card and Fingerprint
VERIFY_TIMEOUT Authentication Timed Out
MINOR_CARD_FINGERPRINT_ 0x2b Card and Fingerprint and
PASSWD_VERIFY_PASS Password Authentication
Completed
MINOR_CARD_FINGERPRINT_ 0x2c Card and Fingerprint and
PASSWD_VERIFY_FAIL Password Authentication Failed
MINOR_CARD_FINGERPRINT_ 0x2d Card and Fingerprint and
PASSWD_VERIFY_TIMEOUT Password Authentication
Timed Out
MINOR_FINGERPRINT_ 0x2e Fingerprint and Password
PASSWD_VERIFY_PASS Authentication Completed
MINOR_FINGERPRINT_ 0x2f Fingerprint and Password
PASSWD_VERIFY_FAIL Authentication Failed
MINOR_FINGERPRINT_ 0x30 Fingerprint and Password
PASSWD_VERIFY_TIMEOUT Authentication Timed Out
MINOR_FINGERPRINT_ 0x31 Fingerprint Not Exists
INEXISTENCE
MINOR_CARD_PLATFORM_ 0x32 Card Platform Authentication
VERIFY
MINOR_CALL_CENTER 0x33 Call Center
MINOR_FIRE_RELAY_TURN_ 0x34 Fire Relay Closed: Door
ON_DOOR_ALWAYS_OPEN Remains Open
MINOR_FIRE_RELAY_ 0x35 Fire Relay Opened: Door
RECOVER_DOOR_RECOVER_ Remains Closed
NORMAL

339
Device Network SDK (Access Control on Card) Developer Guide

Event Minor Types Value Description


MINOR_EMPLOYEENO_AND_ 0x45 Employee ID and Fingerprint
FP_VERIFY_PASS Authentication Completed
MINOR_EMPLOYEENO_AND_ 0x46 Employee ID and Fingerprint
FP_VERIFY_FAIL Authentication Failed
MINOR_EMPLOYEENO_AND_ 0x47 Employee ID and Fingerprint
FP_VERIFY_TIMEOUT Authentication Timed Out
MINOR_EMPLOYEENO_AND_ 0x48 Employee ID and Fingerprint
FP_AND_PW_VERIFY_PASS and Password Authentication
Completed
MINOR_EMPLOYEENO_AND_ 0x49 Employee ID and Fingerprint
FP_AND_PW_VERIFY_FAIL and Password Authentication
Failed
MINOR_EMPLOYEENO_AND_ 0x4a Employee ID and Fingerprint
FP_AND_PW_VERIFY_ and Password Authentication
TIMEOUT Timed Out
MINOR_FACE_VERIFY_PASS 0x4b Face Authentication Completed
MINOR_FACE_VERIFY_FAIL 0x4c Face Authentication Failed
MINOR_EMPLOYEENO_AND_ 0x4d Employee ID and Face
FACE_VERIFY_PASS Authentication Completed
MINOR_EMPLOYEENO_AND_ 0x4e Employee ID and Face
FACE_VERIFY_FAIL Authentication Failed
MINOR_EMPLOYEENO_AND_ 0x4f Employee ID and Face
FACE_VERIFY_TIMEOUT Authentication Timed Out
MINOR_FACE_RECOGNIZE_FAIL 0x50 Face Recognition Failed
MINOR_FIRSTCARD_ 0x51 First Card Authorization Started
AUTHORIZE_BEGIN
MINOR_FIRSTCARD_ 0x52 First Card Authorization Ended
AUTHORIZE_END
MINOR_DOORLOCK_INPUT_ 0x53 Lock Input Short Circuit
SHORT_CIRCUIT Attempts Alarm
MINOR_DOORLOCK_INPUT_ 0x54 Lock Input Open Circuit
BROKEN_CIRCUIT Attempts Alarm
MINOR_DOORLOCK_INPUT_ 0x55 Lock Input Exception Alarm
EXCEPTION

340
Device Network SDK (Access Control on Card) Developer Guide

Event Minor Types Value Description


MINOR_DOORCONTACT_ 0x56 Contact Input Short Circuit
INPUT_SHORT_CIRCUIT Attempts Alarm
MINOR_DOORCONTACT_ 0x57 Contact Input Open Circuit
INPUT_BROKEN_CIRCUIT Attempts Alarm
MINOR_DOORCONTACT_ 0x58 Contact Input Exception Alarm
INPUT_EXCEPTION
MINOR_OPENBUTTON_INPUT_ 0x59 Exit Button Input Short Circuit
SHORT_CIRCUIT Attempts Alarm
MINOR_OPENBUTTON_INPUT_ 0x5a Exit Button Input Open Circuit
BROKEN_CIRCUIT Attempts Alarm
MINOR_OPENBUTTON_INPUT_ 0x5b Exit Button Input Exception
EXCEPTION Alarm
MINOR_DOORLOCK_OPEN_ 0x5c Unlocking Exception
EXCEPTION
MINOR_DOORLOCK_OPEN_ 0x5d Unlocking Timed Out
TIMEOUT
MINOR_FIRSTCARD_OPEN_ 0x5e Unauthorized First Card
WITHOUT_AUTHORIZE Opening Failed
MINOR_CALL_LADDER_RELAY_ 0x5f Call Elevator Relay Open
BREAK
MINOR_CALL_LADDER_RELAY_ 0x60 Call Elevator Relay Closed
CLOSE
MINOR_AUTO_KEY_RELAY_ 0x61 Auto Button Relay Open
BREAK
MINOR_AUTO_KEY_RELAY_ 0x62 Auto Button Relay Closed
CLOSE
MINOR_KEY_CONTROL_RELAY_ 0x63 Button Relay Open
BREAK
MINOR_KEY_CONTROL_RELAY_ 0x64 Button Relay Closed
CLOSE
MINOR_EMPLOYEENO_AND_ 0x65 Employee ID and Password
PW_PASS Authentication Completed
MINOR_EMPLOYEENO_AND_ 0x66 Employee ID and Password
PW_FAIL Authentication Failed

341
Device Network SDK (Access Control on Card) Developer Guide

Event Minor Types Value Description


MINOR_EMPLOYEENO_AND_ 0x67 Employee ID and Password
PW_TIMEOUT Authentication Timed Out
MINOR_CERTIFICATE_BLACK_ 0x71 Blacklist Event
LIST
MINOR_LEGAL_MESSAGE 0x72 Valid Message
MINOR_ILLEGAL_MESSAGE 0x73 Invalid Message
MINOR_DOOR_OPEN_OR_ 0x75 Authentication Failed: Door
DORMANT_FAIL Remain Closed or Door in
Sleeping Mode
MINOR_AUTH_PLAN_ 0x76 Authentication Failed:
DORMANT_FAIL Authentication Schedule in
Sleeping Mode
MINOR_CARD_ENCRYPT_ 0x77 Card Encryption Verification
VERIFY_FAIL Failed
MINOR_SUBMARINEBACK_ 0x78 Anti-​passing Back Server
REPLY_FAIL Response Failed
MINOR_DOOR_OPEN_OR_ 0x82 Open Door via Exit Button
DORMANT_OPEN_FAIL Failed When Door Remain
Closed or in Sleeping Mode
MINOR_DOOR_OPEN_OR_ 0x84 Door Linkage Open Failed
DORMANT_LINKAGE_OPEN_ During Door Remain Close or
FAIL Sleeping
MINOR_TRAILING 0x85 Tailgating
MINOR_REVERSE_ACCESS 0x86 Reverse Passing
MINOR_FORCE_ACCESS 0x87 Force Accessing
MINOR_CLIMBING_OVER_ 0x88 Climb Over
GATE
MINOR_PASSING_TIMEOUT 0x89 Passing Timed Out
MINOR_INTRUSION_ALARM 0x8a Intrusion Alarm
MINOR_FREE_GATE_PASS_ 0x8b Authentication Failed When
NOT_AUTH Free Passing
MINOR_DROP_ARM_BLOCK 0x8c Barrier Obstructed

342
Device Network SDK (Access Control on Card) Developer Guide

Event Minor Types Value Description


MINOR_DROP_ARM_BLOCK_ 0x8d Barrier Restored
RESUME
MINOR_PASSWORD_ 0x97 Passwords Mismatched
MISMATCH
MINOR_EMPLOYEE_NO_NOT_ 0x98 Employee ID Not Exists
EXIST
MINOR_COMBINED_VERIFY_ 0x99 Combined Authentication
PASS Completed
MINOR_COMBINED_VERIFY_ 0x9a Combined Authentication
TIMEOUT Timed Out
MINOR_VERIFY_MODE_ 0x9b Authentication Type
MISMATCH Mismatched
MINOR_INFORMAL_MIFARE_ 0xa2 Authentication Failed: Invalid
CARD_VERIFY_FAIL Mifare Card
MINOR_CPU_CARD_ENCRYPT_ 0xa3 Verifying CPU Card Encryption
VERIFY_FAIL Failed
MINOR_NFC_DISABLE_VERIFY_ 0xa4 Disabling NFC Verification
FAIL Failed
MINOR_EM_CARD_ 0xa8 EM Card Recognition Disabled
RECOGNIZE_NOT_ENABLED
MINOR_M1_CARD_ 0xa9 M1 Card Recognition Disabled
RECOGNIZE_NOT_ENABLED
MINOR_CPU_CARD_ 0xaa CPU Card Recognition Disabled
RECOGNIZE_NOT_ENABLED
MINOR_ID_CARD_RECOGNIZE_ 0xab ID Card Recognition Disabled
NOT_ENABLED
MINOR_CARD_SET_SECRET_ 0xac Importing Key to Card Failed
KEY_FAIL
MINOR_LOCAL_UPGRADE_FAIL 0xad Local Upgrade Failed
MINOR_REMOTE_UPGRADE_ 0xae Remote Upgrade Failed
FAIL
MINOR_REMOTE_EXTEND_ 0xaf Extension Module is Remotely
MODULE_UPGRADE_SUCC Upgraded

343
Device Network SDK (Access Control on Card) Developer Guide

Event Minor Types Value Description


MINOR_REMOTE_EXTEND_ 0xb0 Upgrading Extension Module
MODULE_UPGRADE_FAIL Remotely Failed
MINOR_REMOTE_FINGER_ 0xb1 Fingerprint Module is Remotely
PRINT_MODULE_UPGRADE_ Upgraded
SUCC
MINOR_REMOTE_FINGER_ 0xb2 Upgrading Fingerprint Module
PRINT_MODULE_UPGRADE_ Remotely Failed
FAIL
MINOR_DYNAMICCODE_ 0xb3 Dynamic Verification Code
VERIFY_PASS Authenticated
MINOR_DYNAMICCODE_ 0xb4 Authentication with
VERIFY_FAIL Verification Code Failed
MINOR_PASSWD_VERIFY_PASS 0xb5 Password Authenticated
MINOR_EVENT_CUSTOM1 to 0x500 to 0x53f Access Control: Custom Event 1
MINOR_EVENT_CUSTOM64 to Custom Event 64

A.2 Event Linkage Types


For event card linkages, if the linkage type is event, four major event linkage types are available: 0-
device event linkage, 1-alarm input event linkage, 2-access control point (e.g., doors, elevators,
etc.) event linkage, and 3-authentication unit (e.g., card reader, fingerprint module, etc.) event
linkage. Each major event linkage type corresponds multiple minor types of event linkage, see
details in the following content.

Device Event Linkage

Minor Type Value Description


EVENT_ACS_HOST_ANTI_ 0 Access Controller Tampering Alarm
DISMANTLE
EVENT_ACS_OFFLINE_ECENT_ 1 No Memory Alarm
NEARLY_FULL
EVENT_ACS_NET_BROKEN 2 Network Disconnected
EVENT_ACS_NET_RESUME 3 Network Connected
EVENT_ACS_LOW_BATTERY 4 Low Battery Voltage
EVENT_ACS_BATTERY_RESUME 5 Battery Fully Charged

344
Device Network SDK (Access Control on Card) Developer Guide

Minor Type Value Description


EVENT_ACS_AC_OFF 6 AC Power Off
EVENT_ACS_AC_RESUME 7 AC Power On
EVENT_ACS_SD_CARD_FULL 8 SD Card Full Alarm
EVENT_ACS_LINKAGE_ 9 Capture Linkage Event Alarm
CAPTURE_PIC
EVENT_ACS_IMAGE_QUALITY_ 10 Low Face Picture Quality
LOW
EVENT_ACS_FINGER_PRINT_ 11 Low Fingerprint Picture Quality
QUALITY_LOW
EVENT_ACS_BATTERY_ 12 Low Battery Voltage
ELECTRIC_LOW
EVENT_ACS_BATTERY_ 13 Battery Fully Charged
ELECTRIC_RESUME
EVENT_ACS_FIRE_IMPORT_ 14 Fire Input Short Circuit Attempts Alarm
SHORT_CIRCUIT
EVENT_ACS_FIRE_IMPORT_ 15 Fire Input Open Circuit Attempts Alarm
BROKEN_CIRCUIT
EVENT_ACS_FIRE_IMPORT_ 16 Fire Input Alarm Restored
RESUME
EVENT_ACS_MASTER_RS485_ 17 RS485 Loop of Master Access Controller
LOOPNODE_BROKEN Disconnected
EVENT_ACS_MASTER_RS485_ 18 RS485 Loop of Master Access Controller
LOOPNODE_RESUME Connected
EVENT_ACS_LOCAL_CONTROL_ 19 Distributed Access Controller Offline
OFFLINE
EVENT_ACS_LOCAL_CONTROL_ 20 Distributed Access Controller Online
RESUME
EVENT_ACS_LOCAL_ 21 Downstream RS485 Loop of Distributed Access
DOWNSIDE_RS485_ Control Disconnected
LOOPNODE_BROKEN
EVENT_ACS_LOCAL_ 22 Downstream RS485 Loop of Distributed Access
DOWNSIDE_RS485_ Control Connected
LOOPNODE_RESUME

345
Device Network SDK (Access Control on Card) Developer Guide

Minor Type Value Description


EVENT_ACS_DISTRACT_ 23 Distributed Elevator Controller Online
CONTROLLER_ONLINE
EVENT_ACS_DISTRACT_ 24 Distributed Elevator Controller Offline
CONTROLLER_OFFLINE
EVENT_ACS_FIRE_BUTTON_ 25 Fire Button Pressed
TRIGGER
EVENT_ACS_FIRE_BUTTON_ 26 Fire Button Released
RESUME
EVENT_ACS_MAINTENANCE_ 27 Maintenance Button Pressed
BUTTON_TRIGGER
EVENT_ACS_MAINTENANCE_ 28 Maintenance Button Released
BUTTON_RESUME
EVENT_ACS_EMERGENCY_ 29 Panic Button Pressed
BUTTON_TRIGGER
EVENT_ACS_EMERGENCY_ 30 Panic Button Released
BUTTON_RESUME
EVENT_ACS_ 32 Communication with Anti-​passing Back Server
SUBMARINEBACK_COMM_ Failed
BREAK
EVENT_ACS_ 33 Communication with Anti-​passing Back Server
SUBMARINEBACK_COMM_ Restored
RESUME
EVENT_ACS_REMOTE_ 34 Remotely Armed
ACTUAL_GUARD
EVENT_ACS_REMOTE_ 35 Remotely Disarmed
ACTUAL_UNGUARD
EVENT_ACS_MOTOR_SENSOR_ 36 Motor or Sensor Exception
EXCEPTION
EVENT_ACS_CAN_BUS_ 37 CAN Bus Exception
EXCEPTION
EVENT_ACS_CAN_BUS_ 38 CAN Bus Restored
RESUME
EVENT_ACS_GATE_ 39 Too High Pedestal Temperature
TEMPERATURE_OVERRUN

346
Device Network SDK (Access Control on Card) Developer Guide

Minor Type Value Description


EVENT_ACS_IR_EMITTER_ 40 Active Infrared Intrusion Detector Exception
EXCEPTION
EVENT_ACS_IR_EMITTER_ 41 Active Infrared Intrusion Detector Restored
RESUME
EVENT_ACS_LAMP_BOARD_ 42 Communication with Light Board Failed
COMM_EXCEPTION
EVENT_ACS_LAMP_BOARD_ 43 Communication with Light Board Restored
COMM_RESUME
EVENT_ACS_IR_ADAPTOR_ 44 Communication with IR Adaptor Failed
BOARD_COMM_EXCEPTION
EVENT_ACS_IR_ADAPTOR_ 45 Communication with IR Adaptor Restored
BOARD_COMM_RESUME
EVENT_ACS_CHANNEL_ 46 Lane Controller Tampering Alarm
CONTROLLER_DESMANTLE_
ALARM
EVENT_ACS_CHANNEL_ 47 Lane Controller Tampering Alarm Restored
CONTROLLER_DESMANTLE_
RESUME
EVENT_ACS_CHANNEL_ 48 Lane Controller Fire Input Alarm
CONTROLLER_FIRE_IMPORT_
ALARM
EVENT_ACS_CHANNEL_ 49 Lane Controller Fire Input Alarm Restored
CONTROLLER_FIRE_IMPORT_
RESUME
EVENT_ACS_STAY_EVENT / Staying Event
EVENT_ACS_LEGAL_EVENT_ / No Memory Alarm for Valid Offline Event Storage
NEARLY_FULL

Alarm Input Event Linkage

Minor Type Value Description


EVENT_ACS_ALARMIN_ 0 Zone Short Circuit Attempts
SHORT_CIRCUIT Alarm
EVENT_ACS_ALARMIN_ 1 Zone Open Circuit Attempts
BROKEN_CIRCUIT Alarm

347
Device Network SDK (Access Control on Card) Developer Guide

Minor Type Value Description


EVENT_ACS_ALARMIN_ 2 Zone Exception Alarm
EXCEPTION
EVENT_ACS_ALARMIN_ 3 Zone Alarm Restored
RESUME
EVENT_ACS_CASE_SENSOR_ 4 Alarm Input Alarm
ALARM
EVENT_ACS_CASE_SENSOR_ 5 Alarm Input Alarm Restored
RESUME

Access Control Point Event Linkage

Minor Type Value Description


EVENT_ACS_LEADER_CARD_ 0 Open Door with First Card
OPEN_BEGIN Started
EVENT_ACS_LEADER_CARD_ 1 Open Door with First Card
OPEN_END Ended
EVENT_ACS_ALWAYS_OPEN_ 2 Remain Open Started
BEGIN
EVENT_ACS_ALWAYS_OPEN_ 3 Remain Open Ended
END
EVENT_ACS_ALWAYS_CLOSE_ 4 Remain Closed Started
BEGIN
EVENT_ACS_ALWAYS_CLOSE_ 5 Remain Closed Ended
END
EVENT_ACS_LOCK_OPEN 6 Door Unlocked
EVENT_ACS_LOCK_CLOSE 7 Door Locked
EVENT_ACS_DOOR_BUTTON_ 8 Exit Button Pressed
PRESS
EVENT_ACS_DOOR_BUTTON_ 9 Exit Button Released
RELEASE
EVENT_ACS_DOOR_OPEN_ 10 Door Open (Contact)
NORMAL
EVENT_ACS_DOOR_CLOSE_ 11 Door Closed (Contact)
NORMAL

348
Device Network SDK (Access Control on Card) Developer Guide

Minor Type Value Description


EVENT_ACS_DOOR_OPEN_ 12 Door Abnormally Open
ABNORMAL (Contact)
EVENT_ACS_DOOR_OPEN_ 13 Door Open Timed Out
TIMEOUT (Contact)
EVENT_ACS_REMOTE_OPEN_ 14 Door Remotely Open
DOOR
EVENT_ACS_REMOTE_CLOSE_ 15 Door Remotely Closed
DOOR
EVENT_ACS_REMOTE_ 16 Remain Open Remotely
ALWAYS_OPEN
EVENT_ACS_REMOTE_ 17 Remain Closed Remotely
ALWAYS_CLOSE
EVENT_ACS_NOT_BELONG_ 18 Card Not in Multiple
MULTI_GROUP Authentication Group
EVENT_ACS_INVALID_MULTI_ 19 Card Not in Multiple
VERIFY_PERIOD Authentication Duration
EVENT_ACS_MULTI_VERIFY_ 20 Multiple Authentication Mode:
SUPER_RIGHT_FAIL Super Password Authentication
Failed
EVENT_ACS_MULTI_VERIFY_ 21 Multiple Authentication Mode:
REMOTE_RIGHT_FAIL Remote Authentication Failed
EVENT_ACS_MULTI_VERIFY_ 22 Multiple Authentication
SUCCESS Completed
EVENT_ACS_MULTI_VERIFY_ 23 Multiple Authentication:
NEED_REMOTE_OPEN Remotely Open Door
EVENT_ACS_MULTI_VERIFY_ 24 Multiple Authentication: Super
SUPERPASSWD_VERIFY_ Password Authentication
SUCCESS Completed
EVENT_ACS_MULTI_VERIFY_ 25 Multiple Authentication:
REPEAT_VERIFY_FAIL Repeated Authentication Failed
EVENT_ACS_MULTI_VERIFY_ 26 Multiple Authentication Timed
TIMEOUT Out
EVENT_ACS_REMOTE_ 27 Remote Capture
CAPTURE_PIC

349
Device Network SDK (Access Control on Card) Developer Guide

Minor Type Value Description


EVENT_ACS_DOORBELL_ 28 Doorbell Ring
RINGING
EVENT_ACS_SECURITY_ 29 Secure Door Control Unit
MODULE_DESMANTLE_ALARM Tampering Alarm
EVENT_ACS_CALL_CENTER 30 Center Event
EVENT_ACS_FIRSTCARD_ 31 First Card Authentication
AUTHORIZE_BEGIN Started
EVENT_ACS_FIRSTCARD_ 32 First Card Authentication End
AUTHORIZE_END
EVENT_ACS_DOORLOCK_ 33 Lock Input Short Circuit
INPUT_SHORT_CIRCUIT Attempts Alarm
EVENT_ACS_DOORLOCK_ 34 Lock Input Open Circuit
INPUT_BROKEN_CIRCUIT Attempts Alarm
EVENT_ACS_DOORLOCK_ 35 Lock Input Exception Alarm
INPUT_EXCEPTION
EVENT_ACS_DOORCONTACT_ 36 Contact Input Short Circuit
INPUT_SHORT_CIRCUIT Attempts Alarm
EVENT_ACS_DOORCONTACT_ 37 Contact Input Open Circuit
INPUT_BROKEN_CIRCUIT Attempts Alarm
EVENT_ACS_DOORCONTACT_ 38 Contact Input Exception Alarm
INPUT_EXCEPTION
EVENT_ACS_OPENBUTTON_ 39 Exit Button Input Short Circuit
INPUT_SHORT_CIRCUIT Attempts Alarm
EVENT_ACS_OPENBUTTON_ 40 Exit Button Input Open Circuit
INPUT_BROKEN_CIRCUIT Attempts Alarm
EVENT_ACS_OPENBUTTON_ 41 Exit Button Input Exception
INPUT_EXCEPTION Alarm
EVENT_ACS_DOORLOCK_ 42 Unlocking Exception
OPEN_EXCEPTION
EVENT_ACS_DOORLOCK_ 43 Unlocking Timed Out
OPEN_TIMEOUT
EVENT_ACS_FIRSTCARD_ 44 Unauthorized First Card
OPEN_WITHOUT_AUTHORIZE Opening Failed

350
Device Network SDK (Access Control on Card) Developer Guide

Minor Type Value Description


EVENT_ACS_CALL_LADDER_ 45 Call Elevator Relay Open
RELAY_BREAK
EVENT_ACS_CALL_LADDER_ 46 Call Elevator Relay Closed
RELAY_CLOSE
EVENT_ACS_AUTO_KEY_ 47 Auto Button Relay Open
RELAY_BREAK
EVENT_ACS_AUTO_KEY_ 48 Auto Button Relay Closed
RELAY_CLOSE
EVENT_ACS_KEY_CONTROL_ 49 Button Relay Open
RELAY_BREAK
EVENT_ACS_KEY_CONTROL_ 50 Button Relay Closed
RELAY_CLOSE
EVENT_ACS_REMOTE_ 51 Visitor Calling Elevator
VISITOR_CALL_LADDER
EVENT_ACS_REMOTE_ 52 Resident Calling Elevator
HOUSEHOLD_CALL_LADDER
EVENT_ACS_LEGAL_MESSAGE 52 Valid Message
EVENT_ACS_ILLEGAL_ 53 Invalid Message
MESSAGE
EVENT_ACS_TRAILING 54 Tailgating
EVENT_ACS_REVERSE_ACCESS 55 Reverse Passing
EVENT_ACS_FORCE_ACCESS 56 Force Collision
EVENT_ACS_CLIMBING_OVER_ 57 Climbing Over
GATE
EVENT_ACS_PASSING_ 58 Passing Timed Out
TIMEOUT
EVENT_ACS_INTRUSION_ 59 Intrusion Alarm
ALARM
EVENT_ACS_FREE_GATE_PASS_ 60 Authentication Failed When
NOT_AUTH Free Passing
EVENT_ACS_DROP_ARM_ 61 Barrier Obstructed
BLOCK

351
Device Network SDK (Access Control on Card) Developer Guide

Minor Type Value Description


EVENT_ACS_DROP_ARM_ 62 Barrier Restored
BLOCK_RESUME
EVENT_ACS_REMOTE_ 63 Door Closed via Keyfob
CONTROL_CLOSE_DOOR
EVENT_ACS_REMOTE_ 64 Door Opened via Keyfob
CONTROL_OPEN_DOOR
EVENT_ACS_REMOTE_ 65 Remain Open via Keyfob
CONTROL_ALWAYS_OPEN_
DOOR

Authentication Unit Event Linkage

Minor Type Value Description


EVENT_ACS_STRESS_ALARM 0 Duress Alarm
EVENT_ACS_CARD_READER_ 1 Card Reader Tampering Alarm
DESMANTLE_ALARM
EVENT_ACS_LEGAL_CARD_ 2 Valid Card Authentication
PASS Completed
EVENT_ACS_CARD_AND_PSW_ 3 Card and Password
PASS Authentication Completed
EVENT_ACS_CARD_AND_PSW_ 4 Card and Password
FAIL Authentication Failed
EVENT_ACS_CARD_AND_PSW_ 5 Card and Password
TIMEOUT Authentication Timed Out
EVENT_ACS_CARD_MAX_ 6 Card Authentication Attempts
AUTHENTICATE_FAIL Reach Limit
EVENT_ACS_CARD_NO_RIGHT 7 No Permission for Card
EVENT_ACS_CARD_INVALID_ 8 Invalid Card Swiping Time
PERIOD Period
EVENT_ACS_CARD_OUT_OF_ 9 Expired Card
DATE
EVENT_ACS_INVALID_CARD 10 Card No. Not Exist
EVENT_ACS_ANTI_SNEAK_FAIL 11 Anti-​passing Back
Authentication Failed

352
Device Network SDK (Access Control on Card) Developer Guide

Minor Type Value Description


EEVENT_ACS_INTERLOCK_ 12 Interlocking Door Not Closed
DOOR_NOT_CLOSE
EVENT_ACS_FINGERPRINT_ 13 Fingerprint Matched
COMPARE_PASS
EVENT_ACS_FINGERPRINT_ 14 Fingerprint Mismatched
COMPARE_FAIL
EVENT_ACS_CARD_ 15 Card and Fingerprint
FINGERPRINT_VERIFY_PASS Authentication Completed
EVENT_ACS_CARD_ 16 Card and Fingerprint
FINGERPRINT_VERIFY_FAIL Authentication Failed
EVENT_ACS_CARD_ 17 Card and Fingerprint
FINGERPRINT_VERIFY_ Authentication Timed Out
TIMEOUT
EVENT_ACS_CARD_ 18 Card, Fingerprint, and
FINGERPRINT_PASSWD_ Password Authentication
VERIFY_PASS Completed
EVENT_ACS_CARD_ 19 Card and Fingerprint
FINGERPRINT_PASSWD_ Authentication Failed
VERIFY_FAIL
EVENT_ACS_CARD_ 20 Card and Fingerprint
FINGERPRINT_PASSWD_ Authentication Timed Out
VERIFY_TIMEOUT
EVENT_ACS_FINGERPRINT_ 21 Fingerprint and Password
PASSWD_VERIFY_PASS Authentication Completed
EVENT_ACS_FINGERPRINT_ 22 Fingerprint and Password
PASSWD_VERIFY_FAIL Authentication Failed
EVENT_ACS_FINGERPRINT_ 23 Fingerprint and Password
PASSWD_VERIFY_TIMEOUT Authentication Timed Out
EVENT_ACS_FINGERPRINT_ 24 Fingerprint Not Exist
INEXISTENCE
EVENT_ACS_EMPLOYEENO_ 42 Employee ID and Fingerprint
AND_FP_VERIFY_PASS Authentication Completed
EVENT_ACS_EMPLOYEENO_ 43 Employee ID and Fingerprint
AND_FP_VERIFY_FAIL Authentication Failed

353
Device Network SDK (Access Control on Card) Developer Guide

Minor Type Value Description


EVENT_ACS_EMPLOYEENO_ 44 Employee ID and Fingerprint
AND_FP_VERIFY_TIMEOUT Authentication Timed Out
EVENT_ACS_EMPLOYEENO_ 45 Employee ID, Fingerprint, and
AND_FP_AND_PW_VERIFY_ Password Authentication
PASS Completed
EVENT_ACS_EMPLOYEENO_ 46 Employee ID, Fingerprint, and
AND_FP_AND_PW_VERIFY_ Password Authentication Failed
FAIL
EVENT_ACS_EMPLOYEENO_ 47 Employee ID, Fingerprint, and
AND_FP_AND_PW_VERIFY_ Password Authentication
TIMEOUT Timed Out
EVENT_ACS_EMPLOYEENO_ 52 Employee ID and Password
AND_PW_PASS Authentication Completed
EVENT_ACS_EMPLOYEENO_ 52 Employee ID and Password
AND_PW_FAIL Authentication Failed
EVENT_ACS_EMPLOYEENO_ 53 Employee ID and Password
AND_PW_TIMEOUT Authentication Timed Out
EVENT_ACS_DOOR_OPEN_OR_ 57 Authentication Failed When
DORMANT_FAIL Door Remain Closed or Door in
Sleeping Mode
EVENT_ACS_AUTH_PLAN_ 58 Authentication Failed When
DORMANT_FAIL Authentication Schedule in
Sleeping Mode
EVENT_ACS_CARD_ENCRYPT_ 59 Card Encryption Verification
VERIFY_FAIL Failed
EVENT_ACS_ 60 Anti-​passing Back Server
SUBMARINEBACK_REPLY_FAIL Response Failed
EVENT_ACS_PASSWORD_ 61 Password Mismatched
MISMATCH
EVENT_ACS_EMPLOYEE_NO_ 62 Employee ID Not Exist
NOT_EXIST
EVENT_ACS_COMBINED_ 63 Combined Authentication
VERIFY_PASS Completed
EVENT_ACS_COMBINED_ 64 Combined Authentication
VERIFY_TIMEOUT Timed Out

354
Device Network SDK (Access Control on Card) Developer Guide

Minor Type Value Description


EVENT_ACS_VERIFY_MODE_ 65 Authentication Type
MISMATCH Mismatched
EVENT_ACS_PSW_ERROR_ 67 Maximum Password
OVER_TIMES Authentication Failure
Attempts
EVENT_ACS_PSW_VERIFY_PASS 68 Password Authenticated
EVENT_ACS_PSW_VERIFY_FAIL 69 Password Authentication Failed
EVENT_ACS_ORCODE_VERIFY_ 70 QR Code Authenticated
PASS
EVENT_ACS_ORCODE_VERIFY_ 71 QR Code Authentication Failed
FAIL
EVENT_ACS_HOUSEHOLDER_ 72 Resident Authorization
AUTHORIZE_PASS Authenticated
EVENT_ACS_BLUETOOTH_ 73 Bluetooth Authenticated
VERIFY_PASS
EVENT_ACS_BLUETOOTH_ 74 Bluetooth Authentication
VERIFY_FAIL Failed
EVENT_ACS_INFORMAL_ / Authentication Failed: Invalid
MIFARE_CARD_VERIFY_FAIL Mifare Card
EVENT_ACS_CPU_CARD_ / Verifying CPU Card Encryption
ENCRYPT_VERIFY_FAIL Failed
EVENT_ACS_NFC_DISABLE_ / Disabling NFC Verification
VERIFY_FAIL Failed
EVENT_ACS_EM_CARD_ / EM Card Recognition Disabled
RECOGNIZE_NOT_ENABLED
EVENT_ACS_M1_CARD_ / M1 Card Recognition Disabled
RECOGNIZE_NOT_ENABLED
EVENT_ACS_CPU_CARD_ / CPU Card Recognition Disabled
RECOGNIZE_NOT_ENABLED
EVENT_ACS_ID_CARD_ / ID Card Recognition Disabled
RECOGNIZE_NOT_ENABLED
EVENT_ACS_CARD_SET_ / Importing Key to Card Failed
SECRET_KEY_FAIL

355
Device Network SDK (Access Control on Card) Developer Guide

A.3 Device Network SDK Errors


The errors that may occur during the device network SDK integration are listed here for reference.
You can search for the error descriptions according to the error codes or names returned by a
specific API (NET_DVR_GetLastError or NET_DVR_GetErrorMsg).

General Errors

Error Name Error Code Error Description


NET_DVR_NOERROR 0 No error.
NET_DVR_PASSWORD_ERROR 1 Incorrect user name or password.
NET_DVR_NOENOUGHPRI 2 No permission.
NET_DVR_NOINIT 3 Uninitialized.
NET_DVR_CHANNEL_ERROR 4 Incorrect channel No.
NET_DVR_OVER_MAXLINK 5 No more device can be connected.
NET_DVR_VERSIONNOMATCH 6 Version mismatches.
NET_DVR_NETWORK_FAIL_CONNECT 7 Connecting to device failed. The
device is offline or network
connection timed out.
NET_DVR_NETWORK_SEND_ERROR 8 Sending data to device failed.
NET_DVR_NETWORK_RECV_ERROR 9 Receiving data from device failed.
NET_DVR_NETWORK_RECV_TIMEOUT 10 Receiving data from device timed out.
NET_DVR_NETWORK_ERRORDATA 11 The data sent to the device is illegal,
or the data received from the device
error. E.g. The input data is not
supported by the device for remote
configuration.
NET_DVR_ORDER_ERROR 12 API calling order error.
NET_DVR_OPERNOPERMIT 13 No permission for this operation.
NET_DVR_COMMANDTIMEOUT 14 Executing device command timed out.
NET_DVR_ERRORSERIALPORT 15 Incorrect serial port No. The specified
serial port does not exist.
NET_DVR_ERRORALARMPORT 16 Alarm port No. error. The alarm input
or output port of the specified device
does not exist.

356
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_PARAMETER_ERROR 17 Incorrect parameter. The input or
output parameters of the SDK API is
empty, or the parameter value or
format is invalid.
NET_DVR_CHAN_EXCEPTION 18 Device channel is in exception status.
NET_DVR_NODISK 19 No HDD in the device.
NET_DVR_ERRORDISKNUM 20 Incorrect HDD No.
NET_DVR_DISK_FULL 21 HDD full.
NET_DVR_DISK_ERROR 22 HDD error.
NET_DVR_NOSUPPORT 23 Device does not support this function.
NET_DVR_BUSY 24 Device is busy.
NET_DVR_MODIFY_FAIL 25 Failed to edit device parameters.
NET_DVR_PASSWORD_FORMAT_ 26 Invalid password format.
ERROR
NET_DVR_DISK_FORMATING 27 HDD is formatting. Failed to startup.
NET_DVR_DVRNORESOURCE 28 Insufficient device resources.
NET_DVR_DVROPRATEFAILED 29 Device operation failed.
NET_DVR_OPENHOSTSOUND_FAIL 30 Failed to collect local audio data or
open audio output during two-way
audio and broadcast.
NET_DVR_DVRVOICEOPENED 31 Two-way audio channel is occupied.
NET_DVR_TIMEINPUTERROR 32 Incorrect time input.
NET_DVR_NOSPECFILE 33 No video file for playback.
NET_DVR_CREATEFILE_ERROR 34 Failed to create a file during local
recording, saving picture, getting
configuration file or downloading
video file remotely.
NET_DVR_FILEOPENFAIL 35 Failed to open a file. The file does not
exist or directory error.
NET_DVR_OPERNOTFINISH 36 Operation conflicted.
NET_DVR_GETPLAYTIMEFAIL 37 Failed to get the current played time.
NET_DVR_PLAYFAIL 38 Failed to play.

357
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_FILEFORMAT_ERROR 39 Invalid file format.
NET_DVR_DIR_ERROR 40 File directory error.
NET_DVR_ALLOC_RESOURCE_ERROR 41 Allocating resources failed.
NET_DVR_AUDIO_MODE_ERROR 42 Invalid sound card mode error. The
opened sound play mode and
configured mode mismatched.
NET_DVR_NOENOUGH_BUF 43 Insufficient buffer for receiving data
or saving picture.
NET_DVR_CREATESOCKET_ERROR 44 Failed to create SOCKET.
NET_DVR_SETSOCKET_ERROR 45 Failed to set SOCKET.
NET_DVR_MAX_NUM 46 No more registrations and live views
can be connected.
NET_DVR_USERNOTEXIST 47 The user doest not exist. The user ID
is logged out or unavailable.
NET_DVR_WRITEFLASHERROR 48 Writing FLASH error during device
upgrade.
NET_DVR_UPGRADEFAIL 49 Failed to upgrade device. Network
problem or language mismatches.
NET_DVR_CARDHAVEINIT 50 The decoding card is already
initialized.
NET_DVR_PLAYERFAILED 51 Failed to call the function of player
SDK.
NET_DVR_MAX_USERNUM 52 No more users can log in to.
NET_DVR_GETLOCALIPANDMACFAIL 53 Failed to get the IP address or physical
address of local PC.
NET_DVR_NOENCODEING 54 The decoding function of this channel
is not enabled.
NET_DVR_IPMISMATCH 55 IP address mismatches.
NET_DVR_MACMISMATCH 56 MAC address mismatches.
NET_DVR_UPGRADELANGMISMATCH 57 The language of upgrade file
mismatches.
NET_DVR_MAX_PLAYERPORT 58 No more channels can be started to
play.

358
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_NOSPACEBACKUP 59 Insufficient space to back up file.
NET_DVR_NODEVICEBACKUP 60 No backup device found.
NET_DVR_PICTURE_BITS_ERROR 61 Picture pixel bit mismatches. Only 24
bits are allowed.
NET_DVR_PICTURE_DIMENSION_ 62 Too large picture. The height*width
ERROR should be less than 128x256.
NET_DVR_PICTURE_SIZ_ERROR 63 Too large picture. The picture size
should be smaller than 100K.
NET_DVR_LOADPLAYERSDKFAILED 64 Failed to load the player(PlayCtrl.dll,
SuperRender.dll, AudioRender.dll) to
the current directory.
NET_DVR_LOADPLAYERSDKPROC_ 65 Failed to find the function in player
ERROR SDK.
NET_DVR_LOADDSSDKFAILED 66 Failed to load the DS SDK to the
current directory.
NET_DVR_LOADDSSDKPROC_ERROR 67 Failed to find the function in the DS
SDK.
NET_DVR_DSSDK_ERROR 68 Failed to call the API in the hardware
decoding library.
NET_DVR_VOICEMONOPOLIZE 69 The sound card is exclusive.
NET_DVR_JOINMULTICASTFAILED 70 Failed to join to multicast group.
NET_DVR_CREATEDIR_ERROR 71 Failed to create log file directory.
NET_DVR_BINDSOCKET_ERROR 72 Failed to bind socket.
NET_DVR_SOCKETCLOSE_ERROR 73 Socket disconnected. Network
disconnected or the destination is
unreachable.
NET_DVR_USERID_ISUSING 74 Operation is executing. Failed to log
out.
NET_DVR_SOCKETLISTEN_ERROR 75 Failed to listen.
NET_DVR_PROGRAM_EXCEPTION 76 Program exception.
NET_DVR_WRITEFILE_FAILED 77 Failed to write file during local
recording, downloading file remotely
or saving picture.

359
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_FORMAT_READONLY 78 The HDD is read-only. Formatting is
forbidden.
NET_DVR_WITHSAMEUSERNAME 79 The user name already exists.
NET_DVR_DEVICETYPE_ERROR 80 Device model mismatches when
importing parameters.
NET_DVR_LANGUAGE_ERROR 81 Language mismatches when
importing parameters.
NET_DVR_PARAVERSION_ERROR 82 Software version mismatches when
importing parameters.
NET_DVR_IPCHAN_NOTALIVE 83 The external IP channel is offline live
view.
NET_DVR_RTSP_SDK_ERROR 84 Failed to load StreamTransClient.dll.
NET_DVR_CONVERT_SDK_ERROR 85 Failed to load SystemTransform.dll.
NET_DVR_IPC_COUNT_OVERFLOW 86 No more IP channels can access to.
NET_DVR_MAX_ADD_NUM 87 No more video tags can be added.
NET_DVR_PARAMMODE_ERROR 88 Invalid parameter mode of image
enhancement.
NET_DVR_CODESPITTER_OFFLINE 89 Code distributer is offline.
NET_DVR_BACKUP_COPYING 90 Device is backing up.
NET_DVR_CHAN_NOTSUPPORT 91 This operation is not supported by the
channel.
NET_DVR_CALLINEINVALID 92 The height line is too concentrated, or
the length line is not inclined enough.
NET_DVR_CALCANCELCONFLICT 93 Cancel calibration conflict, if the rule
and global actual size filter are
configured.
NET_DVR_CALPOINTOUTRANGE 94 The calibration point is out of
limitation.
NET_DVR_FILTERRECTINVALID 95 The size filter does not meet the
requirement.
NET_DVR_DDNS_DEVOFFLINE 96 Device has not registered to DDNS.
NET_DVR_DDNS_INTER_ERROR 97 DDNS internal error.

360
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_FUNCTION_NOT_ 98 This function is not supported by this
SUPPORT_OS Operating system.
NET_DVR_DEC_CHAN_REBIND 99 Decoding channel binding display
output is limited.
NET_DVR_INTERCOM_SDK_ERROR 100 Failed to load the two-way audio SDK
of the current directory.
NET_DVR_NO_CURRENT_UPDATEFILE 101 No correct upgrade packet.
NET_DVR_USER_NOT_SUCC_LOGIN 102 Login failed.
NET_DVR_USE_LOG_SWITCH_FILE 103 The log switch file is under using.
NET_DVR_POOL_PORT_EXHAUST 104 No port can be bound in the port
pool.
NET_DVR_PACKET_TYPE_NOT_ 105 Incorrect stream packaging format.
SUPPORT
NET_DVR_IPPARA_IPID_ERROR 106 Incorrect IPID for IP access
configuration.
NET_DVR_LOAD_HCPREVIEW_SDK_ 107 Failed to load the live view
ERROR component.
NET_DVR_LOAD_HCVOICETALK_SDK_ 108 Failed to load the audio component.
ERROR
NET_DVR_LOAD_HCALARM_SDK_ 109 Failed to load the alarm component.
ERROR
NET_DVR_LOAD_HCPLAYBACK_SDK_ 110 Failed to load the playback
ERROR component.
NET_DVR_LOAD_HCDISPLAY_SDK_ 111 Failed to load the display component.
ERROR
NET_DVR_LOAD_HCINDUSTRY_SDK_ 112 Failed to load application component.
ERROR
NET_DVR_LOAD_ 113 Failed to load the general
HCGENERALCFGMGR_SDK_ERROR configuration management
component.
NET_DVR_CORE_VER_MISMATCH 121 Component version and core version
mismatched when loading the
component singly.

361
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_CORE_VER_MISMATCH_ 122 Live view component version and core
HCPREVIEW version mismatched.
NET_DVR_CORE_VER_MISMATCH_ 123 Audio component version and the
HCVOICETALK core version mismatched.
NET_DVR_CORE_VER_MISMATCH_ 124 Alarm component version and the
HCALARM core version mismatched.
NET_DVR_CORE_VER_MISMATCH_ 125 Playback component version and the
HCPLAYBACK core version mismatched.
NET_DVR_CORE_VER_MISMATCH_ 126 Display component version and the
HCDISPLAY core version mismatched.
NET_DVR_CORE_VER_MISMATCH_ 127 Application component version and
HCINDUSTRY the core version mismatched.
NET_DVR_CORE_VER_MISMATCH_ 128 General configuration management
HCGENERALCFGMGR component version and the core
version mismatched.
NET_DVR_COM_VER_MISMATCH_ 136 Live view component version and SDK
HCPREVIEW version mismatched.
NET_DVR_COM_VER_MISMATCH_ 137 Audio component version and SDK
HCVOICETALKy version mismatched.
NET_DVR_COM_VER_MISMATCH_ 138 Alarm component version and SDK
HCALARM version mismatched.
NET_DVR_COM_VER_MISMATCH_ 139 Playback component version and SDK
HCPLAYBACK version mismatched.
NET_DVR_COM_VER_MISMATCH_ 140 Display component version and SDK
HCDISPLAY version mismatched.
NET_DVR_COM_VER_MISMATCH_ 141 Application component version and
HCINDUSTRY SDK version mismatched.
NET_DVR_COM_VER_MISMATCH_ 142 General configuration management
HCGENERALCFGMGR component version and SDK version
mismatched.
NET_DVR_ALIAS_DUPLICATE 150 Duplicated alias(for HiDDNS
configuration).
NET_DVR_USERNAME_NOT_EXIST 152 User name does not exist (error code
of network camera and network

362
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


speed dome with version from 5.1.7
to 5.3.1).
NET_ERR_USERNAME_LOCKED 153 The user name is locked.
NET_DVR_INVALID_USERID 154 Invalid user ID.
NET_DVR_LOW_LOGIN_VERSION 155 The version is too low.
NET_DVR_LOAD_LIBEAY32_DLL_ 156 Failed to load libeay32.dl.l
ERROR
NET_DVR_LOAD_SSLEAY32_DLL_ 157 Failed to load ssleay32.dll.
ERROR
NET_ERR_LOAD_LIBICONV 158 Failed to load libiconv.dll.
NET_ERR_SSL_CONNECT_FAILED 159 Connecting to SSL failed.
NET_DVR_TEST_SERVER_FAIL_ 165 Failed to connect to test server.
CONNECT
NET_DVR_NAS_SERVER_INVALID_DIR 166 Failed to load NAS server to the
directory, Invalid directory, or
incorrect user name and password.
NET_DVR_NAS_SERVER_ 167 Failed to load NAS server th the
NOENOUGH_PRI directory. No permission.
NET_DVR_EMAIL_SERVER_NOT_ 168 The server uses domain name
CONFIG_DNS without configuring DNS, the domain
name may be invalid.
NET_DVR_EMAIL_SERVER_NOT_ 169 No gateway configured. Sending email
CONFIG_GATEWAY may be failed.
NET_DVR_TEST_SERVER_PASSWORD_ 170 Incorrect user name or password of
ERROR test server.
NET_DVR_EMAIL_SERVER_CONNECT_ 171 Interaction exception between device
EXCEPTION_WITH_SMTP and SMTP server.
NET_DVR_FTP_SERVER_FAIL_ 172 FTP server creating directory failed.
CREATE_DIR
NET_DVR_FTP_SERVER_NO_WRITE_ 173 FTP server has no wirting permission.
PIR
NET_DVR_IP_CONFLICT 174 IP conflicted.

363
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_INSUFFICIENT_ 175 Storage pool space is full.
STORAGEPOOL_SPACE
NET_DVR_STORAGEPOOL_INVALID 176 Invalid cloud storage pool. No storage
pool configured or incorrect storage
pool ID.
NET_DVR_EFFECTIVENESS_REBOOT 177 Restart to take effect.
NET_ERR_ANR_ARMING_EXIST 178 The ANR arming connection already
exists( the error will be returned
when arming with ANR function if the
private SDK protocol arming
connection is established).
NET_ERR_UPLOADLINK_EXIST 179 The ANR uploading connection
already exists( the error will be
returned when EHome protocol and
private SDK protocol do not support
ANR at the same time).
NET_ERR_INCORRECT_FILE_FORMAT 180 The imported file format is incorrect.
NET_ERR_INCORRECT_FILE_CONTENT 181 The imported file content is incorrect.
NET_ERR_MAX_HRUDP_LINK 182 No more HRUDP can be connected to
device.
NET_ERR_MAX_PORT_MULTIPLEX 183 Maximum number of multiplexed
ports reaches.
NET_ERR_CREATE_PORT_MULTIPLEX 184 Creating port multiplier failed.
NET_SDK_ERR_FUNCTION_INVALID 186 Invalid function. The asynchronous
mode is enabled
NET_DVR_NAME_NOT_ONLY 200 This name already exists.
NET_DVR_OVER_MAX_ARRAY 201 The number of RAID reaches the
upper-limit.
NET_DVR_OVER_MAX_VD 202 The number of virtual disk reaches
the upper-limit.
NET_DVR_VD_SLOT_EXCEED 203 The virtual disk slots are full.
NET_DVR_PD_STATUS_INVALID 204 The physical disk for rebuilding RAID
is error.

364
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_PD_BE_DEDICATE_SPARE 205 The physical disk for rebuilding RAID
is specified as hot spare.
NET_DVR_PD_NOT_FREE 206 The physical disk for rebuilding RAID
is busy.
NET_DVR_CANNOT_MIG2NEWMODE 207 Failed to migrate the current RAID
type to the new type.
NET_DVR_MIG_PAUSE 208 Migration is paused.
NET_DVR_MIG_ABOUTED 209 Migration is cancelled.
NET_DVR_EXIST_VD 210 Failed to delete RAID. Virtual disk
exists in the RAID.
NET_DVR_TARGET_IN_LD_ 211 Target physical disk is a part of the
FUNCTIONAL virtual disk and it is working normally.
NET_DVR_HD_IS_ASSIGNED_ 212 The specified physical disk is allocated
ALREADY as virtual disk.
NET_DVR_INVALID_HD_COUNT 213 The number of physical disks and
specified RAID level mismatched.
NET_DVR_LD_IS_FUNCTIONAL 214 The RAID is normal. Failed to rebuild.
NET_DVR_BGA_RUNNING 215 Background task is executing.
NET_DVR_LD_NO_ATAPI 216 Failed to create virtual disk by ATAPI
disk.
NET_DVR_MIGRATION_NOT_NEED 217 There is no need to migrate the RAID.
NET_DVR_HD_TYPE_MISMATCH 218 The physical disk type is not allowed.
NET_DVR_NO_LD_IN_DG 219 No virtual disk. Operation failed.
NET_DVR_NO_ROOM_FOR_SPARE 220 Insufficient disk space. Failed to
allocate the disk as hot spare.
NET_DVR_SPARE_IS_IN_MULTI_DG 221 The disk is already allocated as the
hot spare of one RAID.
NET_DVR_DG_HAS_MISSING_PD 222 No disk in the RAID.
NET_DVR_NAME_EMPTY 223 The name is empty.
NET_DVR_INPUT_PARAM 224 Incorrect input parameters.
NET_DVR_PD_NOT_AVAILABLE 225 The physical disk is not available.
NET_DVR_ARRAY_NOT_AVAILABLE 226 The RAID is not available.

365
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_PD_COUNT 227 Incorrect number of physical disks.
NET_DVR_VD_SMALL 228 Insufficient virtual disk space.
NET_DVR_NO_EXIST 229 Not exist.
NET_DVR_NOT_SUPPORT 230 This operation is not supported.
NET_DVR_NOT_FUNCTIONAL 231 The RAID status is exception.
NET_DVR_DEV_NODE_NOT_FOUND 232 The device node of virtual disk does
not exist.
NET_DVR_SLOT_EXCEED 233 No more slots are allowed.
NET_DVR_NO_VD_IN_ARRAY 234 No virtual disk exists in the RAID.
NET_DVR_VD_SLOT_INVALID 235 Invalid virtual disk slot.
NET_DVR_PD_NO_ENOUGH_SPACE 236 Insufficient physical disk space.
NET_DVR_ARRAY_NONFUNCTION 237 Only the RAID in normal status
supports to be migrated.
NET_DVR_ARRAY_NO_ENOUGH_ 238 Insufficient RAID space.
SPACE
NET_DVR_STOPPING_SCANNING_ 239 Pulling disk out safely or rescanning.
ARRAY
NET_DVR_NOT_SUPPORT_16T 240 Creating RAID with size larger than
16T is not supported.
NET_DVR_ERROR_DEVICE_NOT_ 250 The device is not activated (login
ACTIVATED failed.)
NET_DVR_ERROR_RISK_PASSWORD 251 Risky password.
NET_DVR_ERROR_DEVICE_HAS_ 252 The device is already activated.
ACTIVATED
NET_DVR_ID_ERROR 300 The configured ID is invalid.
NET_DVR_POLYGON_ERROR 301 Invalid polygon shape.
NET_DVR_RULE_PARAM_ERROR 302 Invalid rule parameters.
NET_DVR_RULE_CFG_CONFLICT 303 Configured information conflicted.
NET_DVR_CALIBRATE_NOT_READY 304 No calibration information.
NET_DVR_CAMERA_DATA_ERROR 305 Invalid camera parameters.

366
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_CALIBRATE_DATA_UNFIT 306 Invalid inclination angle for
calibration.
NET_DVR_CALIBRATE_DATA_ 307 Calibration error.
CONFILICT
NET_DVR_CALIBRATE_CALC_FAIL 308 Failed to calculate calibration
parameter values of camera.
NET_DVR_CALIBRATE_LINE_OUT_ 309 The inputted calibration line exceeds
RECT the external sample rectangle.
NET_DVR_ENTER_RULE_NOT_READY 310 No region entrance is configured.
NET_DVR_AID_RULE_NO_INCLUDE_ 311 No lane configured in the traffic event
LANE rull(especially for traffic jam or driving
against the traffic).
NET_DVR_LANE_NOT_READY 312 Lane not configured.
NET_DVR_RULE_INCLUDE_TWO_WAY 313 Two different directions are contained
in event rule.
NET_DVR_LANE_TPS_RULE_CONFLICT 314 Lane and data rule conflicted.
NET_DVR_NOT_SUPPORT_EVENT_ 315 This event type is not supported.
TYPE
NET_DVR_LANE_NO_WAY 316 The lane has no direction.
NET_DVR_SIZE_FILTER_ERROR 317 Invalid size of filter frame.
NET_DVR_LIB_FFL_NO_FACE 318 No face picture exists in the image
inputted when positioning feature
point.
NET_DVR_LIB_FFL_IMG_TOO_SMALL 319 The inputted image is too small when
positioning feature point.
NET_DVR_LIB_FD_IMG_NO_FACE 320 No face picture exists in the image
inputted when detecting single face
picture.
NET_DVR_LIB_FACE_TOO_SMALL 321 Face picture is too small when
building model.
NET_DVR_LIB_FACE_QUALITY_TOO_ 322 The face picture quality is too poor
BAD when building model.

367
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_KEY_PARAM_ERR 323 The configured advanced parameter
is incorrect.
NET_DVR_CALIBRATE_DATA_ERR 324 Calibration sample number error, or
data value error, or the sample points
are beyond the horizontal line.
NET_DVR_CALIBRATE_DISABLE_FAIL 325 Cancelling calibration is not allowed
for configured rules.
NET_DVR_VCA_LIB_FD_SCALE_ 326 The minimum width and height of
OUTRANGE maximum filter frame are twice or
more larger than the maximum width
and height of minimum filter frame.
NET_DVR_LIB_FD_REGION_TOO_ 327 Too large detection region. The
LARGE maximum region should be 2/3 of the
image.
NET_DVR_TRIAL_OVERDUE 328 Trial period is ended.
NET_DVR_CONFIG_FILE_CONFLICT 329 Device type and configuration file
conflicted.
NET_DVR_FR_FPL_FAIL 330 Failed to positioning face feature
points.
NET_DVR_FR_IQA_FAIL 331 Failed to test face picture quality.
NET_DVR_FR_FEM_FAIL 332 Failed to extract the face feature
points.
NET_DVR_FPL_DT_CONF_TOO_LOW 333 The face detection validity is too low
when positioning face feature points.
NET_DVR_FPL_CONF_TOO_LOW 334 The validity of feature points
positionong is too low.
NET_DVR_E_DATA_SIZE 335 Data size mismatches.
NET_DVR_FR_MODEL_VERSION_ERR 336 Incorrect model version in face model
library.
NET_DVR_FR_FD_FAIL 337 Failed to detect face in the face
recognition library.
NET_DVR_FA_NORMALIZE_ERR 338 Failed to normalize face attribute.
NET_DVR_DOG_PUSTREAM_NOT_ 339 Dongle type and camera type
MATCH mismatched.

368
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_DEV_PUSTREAM_NOT_ 340 Camera version mismatches.
MATCH
NET_DVR_PUSTREAM_ALREADY_ 341 This camera is already added to other
EXISTS channels of devices.
NET_DVR_SEARCH_CONNECT_FAILED 342 Failed to connect to face retrieval
server.
NET_DVR_INSUFFICIENT_DISK_SPACE 343 Insufficient storage space.
NET_DVR_DATABASE_CONNECTION_ 344 Failed to connect to database.
FAILED
NET_DVR_DATABASE_ADM_PW_ 345 Incorrect database user name and
ERROR password.
NET_DVR_DECODE_YUV 346 Decoding failed.
NET_DVR_IMAGE_RESOLUTION_ 347 Invalid picture resolution
ERROR
NET_DVR_CHAN_WORKMODE_ 348 Invalid channel working mode.
ERROR
NET_ERROR_SCENE_USING 717 The scene is being used.
NET_ERR_TERMINAL_BUSY 780 The terminal busy.
NET_DVR_FUNCTION_RESOURCE_ 791 Failed to enable this function. The
USAGE_ERROR resources is occupied by other
functions.
NET_DVR_DEV_NET_OVERFLOW 800 Network traffic is out of the
limitation.
NET_DVR_STATUS_RECORDFILE_ 801 Failed to lock. The video file is
WRITING_NOT_LOCK recording.
NET_DVR_STATUS_CANT_FORMAT_ 802 Failed to format HDD. The HDD space
LITTLE_DISK is too small.
NET_SDK_ERR_REMOTE_DISCONNEC 803 Failed to connect to the remote
terminal.
NET_SDK_ERR_RD_ADD_RD 804 Spare server cannot be added to
spare server.
NET_SDK_ERR_BACKUP_DISK_EXCEPT 805 Backup disk exception.
NET_SDK_ERR_RD_LIMIT 806 No more spare server can be added.

369
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_SDK_ERR_ADDED_RD_IS_WD 807 The added spare server is a working
server.
NET_SDK_ERR_ADD_ORDER_WRONG 808 Adding flow error.
NET_SDK_ERR_WD_ADD_WD 809 Working server cannot be added to
working server.
NET_SDK_ERR_WD_SERVICE_EXCETP 810 CVR service exception (For N+1 mode,
it refers to CVR working server
exception).
NET_SDK_ERR_RD_SERVICE_EXCETP 811 Spare CVR server exception.
NET_SDK_ERR_ADDED_WD_IS_RD 812 The added working server is spare
server.
NET_SDK_ERR_PERFORMANCE_LIMIT 813 The performance reaches the upper-
limit.
NET_SDK_ERR_ADDED_DEVICE_EXIST 814 This device already exists.
NET_SDK_ERR_INQUEST_RESUMING 815 Inquest resuming.
NET_SDK_ERR_RECORD_BACKUPING 816 Inquest video backing up.
NET_SDK_ERR_DISK_PLAYING 817 Playing.
NET_SDK_ERR_INQUEST_STARTED 818 Inquest started.
NET_SDK_ERR_LOCAL_OPERATING 819 Locally operating.
NET_SDK_ERR_INQUEST_NOT_START 820 Inquest is not started.
NET_SDK_ERR_CHAN_AUDIO_BIND 821 The channel is not bound or binding
two-way audio failed.
NET_DVR_N_PLUS_ONE_MODE 822 Ddevice is in N+1 mode. Cloud
storage is not supported.
NET_DVR_CLOUD_STORAGE_OPENED 823 Cloud storage mode is enbaled.
NET_DVR_ERR_OPER_NOT_ALLOWED 824 Operation failed. The device is in N+0
taken over status.
NET_DVR_ERR_NEED_RELOCATE 825 The device is in N+0 taken over status.
Get re-​positioning information and try
again.
NET_SDK_ERR_IR_PORT_ERROR 830 IR output error.

370
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_SDK_ERR_IR_CMD_ERROR 831 IR output port command number
error
NET_SDK_ERR_NOT_INQUESTING 832 Device is not in inquest status.
NET_SDK_ERR_INQUEST_NOT_ 833 Device is not in paused status.
PAUSED
NET_DVR_CHECK_PASSWORD_ 834 Incorrect verification code.
MISTAKE_ERROR
NET_DVR_CHECK_PASSWORD_NULL_ 835 Verification code is required.
ERROR
NET_DVR_UNABLE_CALIB_ERROR 836 Failed to calibrate.
NET_DVR_PLEASE_CALIB_ERROR 837 Calibration first.
NET_DVR_ERR_PANORAMIC_CAL_ 838 Panoramic calibration is empty in
EMPTY Flash.
NET_DVR_ERR_CALIB_FAIL_ 839 Calibration failed, please try again.
PLEASEAGAIN
NET_DVR_ERR_DETECTION_LINE 840 Rule line configuration error. Please
try again and make sure the line is
within the red region.
NET_DVR_EXCEED_FACE_IMAGES_ 843 No more face pictures can be added.
ERROR
NET_DVR_ANALYSIS_FACE_IMAGES_ 844 Picture recognition failed.
ERROR
NET_ERR_ALARM_INPUT_OCCUPIED 845 A<-1 alarm number is used for
triggering vehicle capture.
NET_DVR_FACELIB_DATABASE_ERROR 846 Database version in face picture
library mismatched.
NET_DVR_FACELIB_DATA_ERROR 847 Face picture library data error.
NET_DVR_FACE_DATA_ID_ERROR 848 Invalid face data PID.
NET_DVR_FACELIB_ID_ERROR 849 Invalid face picture library ID.
NET_DVR_EXCEED_FACE_LIBARY_ 850 No more face picture libraries can be
ERROR established..
NET_DVR_PIC_ANALYSIS_NO_ 851 No target recognized in the picture.
TARGET_ERROR

371
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_SUBPIC_ANALYSIS_ 852 Sub picture modeling failed.
MODELING_ERROR
NET_DVR_PIC_ANALYSIS_NO_ 853 No VCA engine supports picture
RESOURCE_ERROR secondary recognition.
NET_DVR_ANALYSIS_ENGINES_NO_ 854 No VCA engine.
RESOURCE_ERROR
NET_DVR_ANALYSIS_ENGINES_ 855 Overload. The engine CPU reached
USAGE_EXCEED_ERROR 100%.
NET_DVR_EXCEED_HUMANMISINFO_ 856 No more false alarm channel can be
FILTER_ENABLED_ERROR enabled.
NET_DVR_NAME_ERROR 857 Name error.
NET_DVR_NAME_EXIST_ERROR 858 The name already exists.
NET_DVR_FACELIB_PIC_IMPORTING_ 859 The pictures is importing to face
ERROR picture library.
NET_DVR_PIC_FORMAT_ERROR 864 Invalid picture format.
NET_DVR_PIC_RESOLUTION_ 865 Invalid picture resolution.
INVALID_ERROR
NET_DVR_PIC_SIZE_EXCEED_ERROR 866 The picture size is too large.
NET_DVR_PIC_ANALYSIS_TARGRT_ 867 Too many targets in the picture.
NUM_EXCEED_ERROR
NET_DVR_ANALYSIS_ENGINES_ 868 Initializing analysis engine.
LOADING_ERROR
NET_DVR_ANALYSIS_ENGINES_ 869 Analysis engine exception.
ABNORMA_ERROR
NET_DVR_ANALYSIS_ENGINES_ 870 Analysis engine is importing pictures
FACELIB_IMPORTING to face picture library.
NET_DVR_NO_DATA_FOR_ 871 No data for modeling.
MODELING_ERROR
NET_DVR_FACE_DATA_MODELING_ 872 Device is modeling picture.
ERROR Concurrent processing is not
supported.

372
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_ERR_FACELIBDATA_OVERLIMIT 873 No more face picture can be added to
the device (the data of imported face
picture library)
NET_DVR_ANALYSIS_ENGINES_ 874 Channel is linked to the analysis
ASSOCIATED_CHANNEL engine.
NET_DVR_ERR_CUSTOMID_LEN 875 The minimum length of upper layer
custom ID is 32 bytes.
NET_DVR_ERR_CUSTOMFACELIBID_ 876 The applied custom face picture
REPEAT library ID is duplicated
NET_DVR_ERR_CUSTOMHUMANID_ 877 The applied custom person ID is
REPEAT duplicated.
NET_DVR_ERR_URL_DOWNLOAD_ 878 URL download failed.
FAIL
NET_DVR_ERR_URL_DOWNLOAD_ 879 URL download has not started.
NOTSTART
NET_DVR_CFG_FILE_SECRETKEY_ 880 The security verification key of
ERROR configuration file is error.
NET_DVR_THERMOMETRY_REGION_ 883 Invalid thermometry region
OVERSTEP_ERROR
NET_DVR_ERR_TOO_SHORT_ 894 Too short time for calibration.
CALIBRATING_TIME
NET_DVR_ERR_AUTO_CALIBRATE_ 895 Auto calibration failed.
FAILED
NET_DVR_ERR_VERIFICATION_FAILED 896 Verification failed.
NET_DVR_NO_TEMP_SENSOR_ERROR 897 No temperature sensor.
NET_DVR_PUPIL_DISTANCE_ 898 The pupil distance is too large.
OVERSIZE_ERROR
NET_ERR_WINCHAN_IDX 901 Window channel index error.
NET_ERR_WIN_LAYER 902 Window layer number error(the
count of window layers on a single
screen exceeds the max number).
NET_ERR_WIN_BLK_NUM 903 Window block number error(the
count of screens that single window
overlays exceeds the max number).

373
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_ERR_OUTPUT_RESOLUTION 904 The output resolution error.
NET_ERR_LAYOUT 905 Layout index error.
NET_ERR_INPUT_RESOLUTION 906 The input resolution is not supported.
NET_ERR_SUBDEVICE_OFFLINE 907 The sub-device is off-line.
NET_ERR_NO_DECODE_CHAN 908 There is no free decoding channel.
NET_ERR_MAX_WINDOW_ABILITY 909 The upper limit of window number.
NET_ERR_ORDER_ERROR 910 Calling order error.
NET_ERR_PLAYING_PLAN 911 Be playing plan.
NET_ERR_DECODER_USED 912 Decoder board is being used.
NET_ERR_OUTPUT_BOARD_DATA_ 913 Output board data overflow
OVERFLOW
NET_ERR_SAME_USER_NAME 914 Duplicate user name
NET_ERR_INVALID_USER_NAME 915 Invalid user name
NET_ERR_MATRIX_USING 916 Input matrix is in use.
NET_ERR_DIFFERENT_CHAN_TYPE 917 Different channel type (the type of
matrix output channel mismatches
that of the controller input channel)
NET_ERR_INPUT_CHAN_BINDED 918 Input channel has been bound by
other matrix
NET_ERR_BINDED_OUTPUT_CHAN_ 919 The matrix output channels in use
OVERFLOW exceeded the number bound by
matrix and controller
NET_ERR_MAX_SIGNAL_NUM 920 Number of input signals reached
upper limit
NET_ERR_INPUT_CHAN_USING 921 Input channel is in use
NET_ERR_MANAGER_LOGON 922 Administrator has logged in,
operation failed
NET_ERR_USERALREADY_LOGON 923 The user has logged in, operation
failed
NET_ERR_LAYOUT_INIT 924 Scene is initializing, operation failed
NET_ERR_BASEMAP_SIZE_NOT_ 925 Base image size does not match
MATCH

374
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_ERR_WINDOW_OPERATING 926 Window is in other operation,
operation failed
NET_ERR_SIGNAL_UPLIMIT 927 Number of signal source window
reached upper limit
NET_ERR_WINDOW_SIZE_OVERLIMIT 943 The window size exceeds the limit.
NET_ERR_MAX_WIN_OVERLAP 951 The number of windows overlap has
reached the maximum limit.
NET_ERR_STREAMID_CHAN_BOTH_ 952 stream ID and channel number are
VALID both valid.
NET_ERR_NO_ZERO_CHAN 953 The device has no zero channel.
NEED_RECONNECT 955 Need redirection (for transcoding
system)
NET_ERR_NO_STREAM_ID 956 The stream ID does not exist.
NET_DVR_TRANS_NOT_START 957 The transcoding has not been started.
NET_ERR_MAXNUM_STREAM_ID 958 The number of stream ID has reached
the maximum limit.
NET_ERR_WORKMODE_MISMATCH 959 The work mode does not match with
the requirement.
NET_ERR_MODE_IS_USING 960 It Has been working in current mode.
NET_ERR_DEV_PROGRESSING 961 The device is in processing
NET_ERR_PASSIVE_TRANSCODING 962 It is in transcoding.
NET_DVR_ERR_WINDOW_SIZE_ 975 Wrong window position.
PLACE
NET_DVR_ERR_RGIONAL_ 976 Screen distance exceeds the limit.
RESTRICTIONS
NET_DVR_ERR_CLOSE_WINDOWS 984 Operation failed. Close the window
first.
NET_DVR_ERR_MATRIX_LOOP_ 985 Beyond the cycle decoding capacity.
ABILITY
NET_DVR_ERR_MATRIX_LOOP_TIME 986 Invalid cycle decoding time.
NET_DVR_ERR_LINKED_OUT_ABILITY 987 No more linked camera can be added.
NET_​ERR_​UnitConfig_​Failed 998 Unit configuration failed.

375
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


XML_ABILITY_NOTSUPPORT 1000 Getting capability node is not
supported
XML_ANALYZE_NOENOUGH_BUF 1001 Not enough output memory
XML_ANALYZE_FIND_LOCALXML_ 1002 Failed to find related local xml
ERROR
XML_ANALYZE_LOAD_LOCALXML_ 1003 Loading local xml error
ERROR
XML_NANLYZE_DVR_DATA_FORMAT_ 1004 Device capability data format error
ERROR
XML_ANALYZE_TYPE_ERROR 1005 Capability set type error
XML_ANALYZE_XML_NODE_ERROR 1006 XML capability node format error
XML_INPUT_PARAM_ERROR 1007 Input capability XML node value error
XML_VERSION_MISMATCH 1008 XML version does not match
NET_ERR_TRANS_CHAN_START 1101 Transparent channel has been open,
operation failed
NET_ERR_DEV_UPGRADING 1102 Device is upgrading
NET_ERR_MISMATCH_UPGRADE_ 1103 Upgrade pack type does not match
PACK_TYPE
NET_ERR_DEV_FORMATTING 1104 Device is formatting
NET_ERR_MISMATCH_UPGRADE_ 1105 Upgrade pack version does not match
PACK_VERSION
NET_ERR_PT_LOCKED 1106 PT is locked.
NET_DVR_ERR_ILLEGAL_ 1111 Illegal verification code. Change the
VERIFICATION_CODE verification code.
NET_DVR_ERR_LACK_VERIFICATION_ 1112 No verification code. Enter the
CODE verification code.
NET_DVR_ERR_FORBIDDEN_IP 1113 The IP address cannot be configured.
NET_DVR_ERR_HTTP_BKN_EXCEED_ 1125 Up to one channel's ANR function can
ONE be enabled.
NET_DVR_ERR_FORMATTING_FAILED 1131 Formatting HDD failed.
NET_DVR_ERR_ENCRYPTED_ 1132 Formatting encrypted HDD failed.
FORMATTING_FAILED

376
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_WRONG_PASSWORD 1133 Verifying password of SD card failed.
Incorrect password.
NET_ERR_SEARCHING_MODULE 1201 Searching peripherals.
NET_ERR_REGISTERING_MODULE 1202 Registering external module
NET_ERR_GETTING_ZONES 1203 Getting arming region parameter
NET_ERR_GETTING_TRIGGERS 1204 Getting trigger
NET_ERR_ARMED_STATUS 1205 System is in arming status
NET_ERR_PROGRAM_MODE_STATUS 1206 System is in programming mode
NET_ERR_WALK_TEST_MODE_STATUS 1207 System is in pacing measuring mode
NET_ERR_BYPASS_STATUS 1208 Bypass status
NET_ERR_DISABLED_MODULE_ 1209 Function not enabled
STATUS
NET_ERR_NOT_SUPPORT_OPERATE_ 1210 Operation is not supported by arming
ZONE region
NET_ERR_NOT_SUPPORT_MOD_ 1211 Module address cannot be modified
MODULE_ADDR
NET_ERR_UNREGISTERED_MODULE 1212 Module is not registered
NET_ERR_PUBLIC_SUBSYSTEM_ 1213 Public sub system associate with its
ASSOCIATE_SELF self
NET_ERR_EXCEEDS_ASSOCIATE_ 1214 Number of associated public sub
SUBSYSTEM_NUM system reached upper limit
NET_ERR_BE_ASSOCIATED_BY_ 1215 Sub system is associated by other
PUBLIC_SUBSYSTEM public sub system
NET_ERR_ZONE_FAULT_STATUS 1216 Arming region is in failure status
NET_ERR_SAME_EVENT_TYPE 1217 Same event type exists in enable
event trigger alarm output and
disable event trigger alarm output
NET_ERR_ZONE_ALARM_STATUS 1218 Arming region is in alarm status
NET_ERR_EXPANSION_BUS_SHORT_ 1219 Extension bus short-circuit
CIRCUIT
NET_ERR_PWD_CONFLICT 1220 Password conflict, e.g., lock password
is identical with duress password

377
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_ERR_DETECTOR_GISTERED_BY_ 1221 Detector has been registered by other
OTHER_ZONE arming regions
NET_ERR_DETECTOR_GISTERED_BY_ 1222 Detector has been registered by other
OTHER_PU hosts
NET_ERR_DETECTOR_DISCONNECT 1223 Detector offline
NET_ERR_CALL_BUSY 1224 Device in call
NET_ERR_FILE_NAME 1357 File name error, empty or invalid
NET_ERR_BROADCAST_BUSY 1358 Device in broadcast
NET_DVR_ERR_LANENUM_EXCEED 1400 Over the number of lanes.
NET_DVR_ERR_PRAREA_EXCEED 1401 Recognition area is too large.
NET_DVR_ERR_LIGHT_PARAM 1402 Signal lamp access parameters error.
NET_DVR_ERR_LANE_LINE_INVALID 1403 Lane configuration error.
NET_DVR_ERR_STOP_LINE_INVALID 1404 Stop line configuration error.
NET_DVR_ERR_LEFTORRIGHT_LINE_ 1405 Turn left / right boundary
INVALID configuration error.
NET_DVR_ERR_LANE_NO_REPEAT 1406 Overlay lane number repetition.
NET_DVR_ERR_PRAREA_INVALID 1407 The polygon does not meet the
requirements.
NET_DVR_ERR_LIGHT_NUM_EXCEED 1408 Video detection of traffic light signal
exceeds the maximum number of.
NET_DVR_ERR_SUBLIGHT_NUM_ 1409 Video detection of traffic signal lamp
INVALID lights are not legitimate
NET_DVR_ERR_LIGHT_AREASIZE_ 1410 The size of the video detection of
INVALID traffic light input signal lamp is not
valid.
NET_DVR_ERR_LIGHT_COLOR_ 1411 The color of the video detection of
INVALID traffic light input signal lamp color is
not legitimate.
NET_DVR_ERR_LIGHT_DIRECTION_ 1412 The direction property of the video
INVALID detection of traffic light input light is
not valid.
NET_DVR_ERR_LACK_IOABLITY 1413 Lack of IO ablity.

378
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_FTP_PORT 1414 FTP port error.
NET_DVR_ERR_FTP_CATALOGUE 1415 FTP catalogue error.
NET_DVR_ERR_FTP_UPLOAD_TYPE 1416 FTP upload type error.
NET_DVR_ERR_FLASH_PARAM_ 1417 Setting param flash write error.
WRITE
NET_DVR_ERR_FLASH_PARAM_READ 1418 Getting param flash read error.
NET_DVR_ERR_PICNAME_DELIMITER 1419 Pic name delimiter error.
NET_DVR_ERR_PICNAME_ITEM 1420 Pic name item error.
NET_DVR_ERR_PLATE_RECOGNIZE_ 1421 Plate recognize type error.
TYPE
NET_DVR_ERR_CAPTURE_TIMES 1422 Capture times error.
NET_DVR_ERR_LOOP_DISTANCE 1423 Loop distance error.
NET_DVR_ERR_LOOP_INPUT_STATUS 1424 Loop input status error.
NET_DVR_ERR_RELATE_IO_CONFLICT 1425 Related IO conflict.
NET_DVR_ERR_INTERVAL_TIME 1426 Interval time error.
NET_DVR_ERR_SIGN_SPEED 1427 Sign speed error.
NET_DVR_ERR_PIC_FLIP 1428 Flip is used.
NET_DVR_ERR_RELATE_LANE_ 1429 Related lane number error.
NUMBER
NET_DVR_ERR_TRIGGER_MODE 1430 Trigger mode error.
NET_DVR_ERR_DELAY_TIME 1431 Delay time error.
NET_DVR_ERR_EXCEED_RS485_ 1432 Exceed RS485 count.
COUNT
NET_DVR_ERR_RADAR_TYPE 1433 Radar type error.
NET_DVR_ERR_RADAR_ANGLE 1434 Radar angle error.
NET_DVR_ERR_RADAR_SPEED_ 1435 Radar speed valid time error.
VALID_TIME
NET_DVR_ERR_RADAR_LINE_ 1436 Radar line correct error.
CORRECT
NET_DVR_ERR_RADAR_CONST_ 1437 Radar const correct error.
CORRECT

379
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_RECORD_PARAM 1438 Record param error.
NET_DVR_ERR_LIGHT_WITHOUT_ 1439 Light number and other param error.
COLOR_AND_DIRECTION
NET_DVR_ERR_LIGHT_WITHOUT_ 1440 Light number and detection region
DETECTION_REGION error.
NET_DVR_ERR_RECOGNIZE_ 1441 Plate recognize Province param error.
PROVINCE_PARAM
NET_DVR_ERR_SPEED_TIMEOUT 1442 IO Speed TimeOut Param error.
NET_DVR_ERR_NTP_TIMEZONE 1443 NTP TimeZone Param error.
NET_DVR_ERR_NTP_INTERVAL_TIME 1444 NTP Interval Time error.
NET_DVR_ERR_NETWORK_CARD_ 1445 Network Card Num error.
NUM
NET_DVR_ERR_DEFAULT_ROUTE 1446 Default Route error.
NET_DVR_ERR_BONDING_WORK_ 1447 Banding Work Mode error.
MODE
NET_DVR_ERR_SLAVE_CARD 1448 Slave Card error.
NET_DVR_ERR_PRIMARY_CARD 1449 Primary Card error.
NET_DVR_ERR_DHCP_PPOE_WORK 1450 DHCP and PPOE not Meanwhile start.
NET_DVR_ERR_NET_INTERFACE 1451 Net Interface invalid.
NET_DVR_ERR_MTU 1452 Invalid MTU parameters.
NET_DVR_ERR_NETMASK 1453 Netmask address invalid.
NET_DVR_ERR_IP_INVALID 1454 IP address invalid.
NET_DVR_ERR_MULTICAST_IP_ 1455 Multicast IP address invalid.
INVALID
NET_DVR_ERR_GATEWAY_INVALID 1456 Gateway address invalid.
NET_DVR_ERR_DNS_INVALID 1457 DNS Param invalid.
NET_DVR_ERR_ALARMHOST_IP_ 1458 AlarmHost IP invalid.
INVALID
NET_DVR_ERR_IP_CONFLICT 1459 IP address Conflict.
NET_DVR_ERR_NETWORK_SEGMENT 1460 IP not support Multi Network
segment.

380
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_NETPORT 1461 NetPort error.
NET_DVR_ERR_PPPOE_NOSUPPORT 1462 PPPoE is not supported.
NET_DVR_ERR_DOMAINNAME_ 1463 Not Support Domain Name.
NOSUPPORT
NET_DVR_ERR_NO_SPEED 1464 Speed Not Enabled.
NET_DVR_ERR_IOSTATUS_INVALID 1465 IO Status invalid.
NET_DVR_ERR_BURST_INTERVAL_ 1466 Burst Interval invalid.
INVALID
NET_DVR_ERR_RESERVE_MODE 1467 Reserve Mode invalid.
NET_DVR_ERR_LANE_NO 1468 Lane No error.
NET_DVR_ERR_COIL_AREA_TYPE 1469 Coil Area Type error.
NET_DVR_ERR_TRIGGER_AREA_ 1470 Trigger Area Param error.
PARAM
NET_DVR_ERR_SPEED_LIMIT_PARAM 1471 Speed Limit Param error.
NET_DVR_ERR_LANE_PROTOCOL_ 1472 Lane Protocol Type error.
TYPE
NET_DVR_ERR_INTERVAL_TYPE 1473 Capture Interval Type error.
NET_DVR_ERR_INTERVAL_DISTANCE 1474 Capture Interval Distance error.
NET_DVR_ERR_RS485_ASSOCIATE_ 1475 Rs485 Associate DevType error.
DEVTYPE
NET_DVR_ERR_RS485_ASSOCIATE_ 1476 Rs485 Associate LaneNo error.
LANENO
NET_DVR_ERR_LANENO_ASSOCIATE_ 1477 LaneNo Associate MulitRs485 error.
MULTIRS485
NET_DVR_ERR_LIGHT_DETECTION_ 1478 Light Detection Region error.
REGION
NET_DVR_ERR_DN2D_NOSUPPORT 1479 UnSupport Capture Frame 2D Noise
Reduction.
NET_DVR_ERR_IRISMODE_ 1480 UnSupport scene Mode.
NOSUPPORT
NET_DVR_ERR_WB_NOSUPPORT 1481 UnSupport White Balance Mode.
NET_DVR_ERR_IO_EFFECTIVENESS 1482 IO Effectiveness invalid.

381
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_LIGHTNO_MAX 1483 Access Detector Lights Red / Yellow
Overrun.
NET_DVR_ERR_LIGHTNO_CONFLICT 1484 Access Detector Lights Red / Yellow
Conflict.
NET_DVR_ERR_CANCEL_LINE 1485 Trigger straight line error.
NET_DVR_ERR_STOP_LINE 1486 Subject line area stop line error.
NET_DVR_ERR_RUSH_REDLIGHT_LINE 1487 Red light trigger lines error.
NET_DVR_ERR_IOOUTNO_MAX 1488 IO out port error.
NET_DVR_ERR_IOOUTNO_ 1489 IO out ahead time error.
AHEADTIME_MAX
NET_DVR_ERR_IOOUTNO_ 1490 IO out inwork time error.
IOWORKTIME
NET_DVR_ERR_IOOUTNO_ 1491 IO out frequency multiplication error.
FREQMULTI
NET_DVR_ERR_IOOUTNO_DUTYRATE 1492 IO out duty rate error.
NET_DVR_ERR_VIDEO_WITH_ 1493 IO out work mode error.
EXPOSURE
NET_DVR_ERR_PLATE_BRIGHTNESS_ 1494 Plate enable in plate compensate
WITHOUT_FLASHDET mode on.
NET_DVR_ERR_RECOGNIZE_TYPE_ 1495 Recognize Type error.
PARAM
NET_DVR_ERR_PALTE_RECOGNIZE_ 1496 Plate Recognize Area Param error.
AREA_PARAM
NET_DVR_ERR_PORT_CONFLICT 1497 Port Conflict.
NET_DVR_ERR_LOOP_IP 1498 IP cannot be the loopback address.
NET_DVR_ERR_DRIVELINE_SENSITIVE 1499 Driveline sensitivity error.
NET_ERR_VQD_TIME_CONFLICT 1500 The time period conflict.
NET_ERR_VQD_PLAN_NO_EXIST 1501 The diagnostic plan of VQD dese not
exist.
NET_ERR_VQD_CHAN_NO_EXIST 1502 The channel dese not exist.
NET_ERR_VQD_CHAN_MAX 1503 The total number of VQD plans
exceeds the max limit.

382
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_ERR_VQD_TASK_MAX 1504 The total number of VQD tasks
exceeds the max limit.
NET_DVR_ERR_EXCEED_MAX_ 1600 Capture times exceed 2 in flash mode.
CAPTURE_TIMES
NET_DVR_ERR_REDAR_TYPE_ 1601 Radar type conflict.
CONFLICT
NET_DVR_ERR_LICENSE_PLATE_NULL 1602 The license plate is null.
NET_DVR_ERR_WRITE_DATABASE 1603 Failed to write data into the database.
NET_DVR_ERR_LICENSE_EFFECTIVE_ 1604 The effective time of license plate
TIME error.
NET_DVR_ERR_PRERECORDED_ 1605 The pre recorded start time is greater
STARTTIME_LONG than the number of illegal capture.
NET_DVR_ERR_TRIGGER_RULE_LINE 1606 Trigger rule line error.
NET_DVR_ERR_LEFTRIGHT_ 1607 Left and right trigger line is not
TRIGGERLINE_NOTVERTICAL vertical.
NET_DVR_ERR_FLASH_LAMP_MODE 1608 Flash lamp mode error.
NET_DVR_ERR_ILLEGAL_SNAPSHOT_ 1609 Illegal capture number error.
NUM
NET_DVR_ERR_ILLEGAL_DETECTION_ 1610 Illegal detection type error.
TYPE
NET_DVR_ERR_POSITIVEBACK_ 1611 Positive back to trigger line height
TRIGGERLINE_HIGH error.
NET_DVR_ERR_MIXEDMODE_ 1612 Mixed mode only supports capture
CAPTYPE_ALLTARGETS type all targets.
NET_DVR_ERR_CARSIGNSPEED_ 1613 Car sign speed greater than speed
GREATERTHAN_LIMITSPEED limit value.
NET_DVR_ERR_BIGCARSIGNSPEED_ 1614 Big car sign speed limit greater than
GREATERTHAN_LIMITSPEED speed limit value.
NET_DVR_ERR_BIGCARSIGNSPEED_ 1615 Big car sign speed limit is greater than
GREATERTHAN_CARSIGNSPEED the car sign speed limit value.
NET_DVR_ERR_BIGCARLIMITSPEED_ 1616 Big car speed limit value is greater
GREATERTHAN_CARLIMITSPEED than the car speed limit value.

383
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_ 1617 Big car low speed limit value is greater
BIGCARLOWSPEEDLIMIT_ than the car low speed limit value.
GREATERTHAN_CARLOWSPEEDLIMIT
NET_DVR_ERR_CARLIMITSPEED_ 1618 Car speed limit greater than exception
GREATERTHAN_EXCEPHIGHSPEED high speed value.
NET_DVR_ERR_BIGCARLIMITSPEED_ 1619 Big car speed limit greater than
GREATERTHAN_EXCEPHIGHSPEED exception high speed value.
NET_DVR_ERR_STOPLINE_ 1620 Stopping more than straight lines
MORETHAN_TRIGGERLINE trigger lines.
NET_ERR_TIME_OVERLAP 1900 Time periods overlap
NET_ERR_HOLIDAY_PLAN_OVERLAP 1901 Holiday plan overlap
NET_ERR_CARDNO_NOT_SORT 1902 Card number is not sorted
NET_ERR_CARDNO_NOT_EXIST 1903 Card number does not exist
NET_ERR_ILLEGAL_CARDNO 1904 Card number error
NET_ERR_ZONE_ALARM 1905 Arming region is in arming status
(parameter cannot be modified)
NET_ERR_ZONE_OPERATION_NOT_ 1906 Arming region does not support the
SUPPORT operation
NET_ERR_INTERLOCK_ANTI_ 1907 Interlock and anti-passback
CONFLICT configuration conflict
NET_ERR_DEVICE_CARD_FULL 1908 Card full (return after card reached
10,000)
NET_ERR_HOLIDAY_GROUP_ 1909 Failed to download holiday group
DOWNLOAD
NET_ERR_LOCAL_CONTROL_OFF 1910 Distributed access controller offline
NET_ERR_LOCAL_CONTROL_DISADD 1911 Distributed access controller is not
added
NET_ERR_LOCAL_CONTROL_HASADD 1912 Distributed access controller is added
NET_ERR_LOCAL_CONTROL_ 1913 Conflict with added distributed access
DOORNO_CONFLICT controller
NET_ERR_LOCAL_CONTROL_ 1914 Distributed access controller
COMMUNICATION_FAIL communication failed

384
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_ERR_OPERAND_INEXISTENCE 1915 Operation object does not exist
(operation to door, alarm output,
alarm input, return when the object is
not added)
NET_ERR_LOCAL_CONTROL_OVER_ 1916 Distributed access controller
LIMIT exceeded device capability upper limit
NET_ERR_DOOR_OVER_LIMIT 1917 Door exceeded device capability
upper limit
NET_ERR_ALARM_OVER_LIMIT 1918 Alarm input and output exceeded
device capability upper limit
NET_ERR_LOCAL_CONTROL_ 1919 Distributed access controller address
ADDRESS_INCONFORMITY_TYPE does not match with type
NET_ERR_NOT_SUPPORT_ONE_ 1920 not support one person multi-card
MORE_CARD
NET_ERR_DELETE_NO_EXISTENCE_ 1921 The face picture does not exist.
FACE
NET_ERR_DOOR_SPECIAL_ 1922 Repeated door door duress code, the
PASSWORD_REPEAT super password, or the dismiss code.
NET_ERR_AUTH_CODE_REPEAT 1923 Repeated device authentication code
NET_ERR_DEPLOY_EXCEED_MAX 1924 No more devices can be armed.
NET_ERR_NOT_SUPPORT_DEL_FP_ 1925 The fingerprint module does not
BY_ID support deleting fingerprint by finger
ID.
NET_ERR_TIME_RANGE 1926 Invalid range of the effective period.
NET_ERR_CAPTURE_TIMEOUT 1927 Collection timed out.
NET_ERR_LOW_SCORE 1928 Low quality of collected data.
NET_ERR_OFFLINE_CAPTURING 1929 The device is collecting data offline
and cannot respond.
NET_DVR_ERR_OUTDOOR_ 1950 Communication exception with
COMMUNICATION outdoor terminal
NET_DVR_ERR_ROOMNO_ 1951 Room number is not set
UNDEFINED
NET_DVR_ERR_NO_CALLING 1952 No call

385
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_RINGING 1953 Ringing
NET_DVR_ERR_IS_CALLING_NOW 1954 Call in progress
NET_DVR_ERR_LOCK_PASSWORD_ 1955 Incorrect smart lock password
WRONG
NET_DVR_ERR_CONTROL_LOCK_ 1956 Lock control failure
FAILURE
NET_DVR_ERR_CONTROL_LOCK_ 1957 Lock control timed out
OVERTIME
NET_DVR_ERR_LOCK_DEVICE_BUSY 1958 Smart lock device busy
NET_DVR_ERR_UNOPEN_REMOTE_ 1959 Remote lock control not enabled
LOCK_FUNCTION
NET_DVR_ERR_FILE_NOT_COMPLETE 2100 Downloaded file is incomplete
NET_DVR_ERR_IPC_EXIST 2101 The camera already exists
NET_DVR_ERR_ADD_IPC 2102 Camera has been added to the
channel
NET_DVR_ERR_OUT_OF_RES 2103 Not enough network bandwidth
NET_DVR_ERR_CONFLICT_TO_ 2104 IP address of camera conflicts with
LOCALIP that of DVR
NET_DVR_ERR_IP_SET 2105 Invalid IP address
NET_DVR_ERR_PORT_SET 2106 Invalid port number
NET_ERR_WAN_NOTSUPPORT 2107 Not in the same LAN, cannot set
security question or export GUID file
NET_ERR_MUTEX_FUNCTION 2108 Mutually exclusive function
NET_ERR_QUESTION_CONFIGNUM 2109 Error in number of security question
configurations
NET_ERR_FACECHAN_NORESOURCE 2110 All the face VCA channels are
occupied.
NET_ERR_DATA_CALLBACK 2111 Data is calling back.
NET_ERR_ATM_VCA_CHAN_IS_ 2112 The VCA channel is already linked.
RELATED
NET_ERR_ATM_VCA_CHAN_IS_ 2113 The VCA channel is already overlayed.
OVERLAPED

386
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_ERR _FACE_CHAN_UNOVERLAP_ 2114 The face channels cannot be
EACH_OTHER overlayed.
NET_DVR_SMD_ENCODING_ 2116 Insufficient SMD encoding resource
NORESOURSE
NET_DVR_SMD_DECODING_ 2117 Insufficient SMD decoding resource
NORESOURSE
NET_DVR_FACELIB_DATA_ 2118 Face picture library data is in
PROCESSING processing
NET_DVR_ERR_LARGE_TIME_ 2119 There is a great time difference
DIFFRENCE between device and server.
NET_DVR_NO_SUPPORT_WITH_ 2120 It is not supported. Playback is
PLAYBACK enabled.
NET_DVR_CHANNEL_NO_SUPPORT_ 2121 It is not supported. SMD of channel is
WITH_SMD enabled.
NET_DVR_CHANNEL_NO_SUPPORT_ 2122 It is not supported. Face capture of
WITH_FD channel is enabled.
NET_DVR_ILLEGAL_PHONE_NUMBER 2123 Invalid telephone number
NET_DVR_ILLEGAL_CERITIFICATE_ 2124 Invalid ID No.
NUMBER
NET_DVR_ERR_CHANNEL_ 2125 The channel resolution is not
RESOLUTION_NO_SUPPORT supported
NET_DVR_ERR_CHANNEL_ 2126 The channel encoding format is not
COMPRESSION_NO_SUPPORT supported
NET_DVR_ERR_CLUSTER_DEVICE_ 2127 Deleting is not allowed. The number
TOO_LESS of devices is not enough
NET_DVR_ERR_CLUSTER_DEL_ 2128 Deleting is not allowed. The device is
DEVICE_CM_PLAYLOAD cluster host.
NET_DVR_ERR_CLUSTER_DEVNUM_ 2129 No more devices can be added.
OVER_UPPER_LIMIT
NET_DVR_ERR_CLUSTER_DEVICE_ 2130 Device type mismatched.
TYPE_INCONFORMITY
NET_DVR_ERR_CLUSTER_DEVICE_ 2131 Device version mismatched.
VERSION_INCONFORMITY

387
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_CLUSTER_IP_ 2132 Cluster system IP address conflict:
CONFLICT ipv4 address conflict, invalid ipv6.
NET_DVR_ERR_CLUSTER_IP_INVALID 2133 Invalid cluster system IP address:
invalid ipv4, invalid ipv6.
NET_DVR_ERR_CLUSTER_PORT_ 2134 Cluster system port conflict
CONFLICT
NET_DVR_ERR_CLUSTER_PORT_ 2135 Invalid cluster system port
INVALID
NET_DVR_ERR_CLUSTER_ 2136 Invalid user name or password
USERNAEM_OR_PASSWORD_INVALID
NET_DVR_ERR_CLUSTER_DEVICE_ 2137 The device already exists.
ALREADY_EXIST
NET_DVR_ERR_CLUSTER_DEVICE_ 2138 The device does not exist.
NOT_EXIST
NET_DVR_ERR_CLUSTER_NON_ 2139 The device working mode is not the
CLUSTER_MODE cluster mode .
NET_DVR_ERR_CLUSTER_IP_NOT_ 2140 IP addresses are in different LAN.
SAME_LAN Building cluster or extending capacity
for NVRs in different LAN is not
allowed.
NET_DVR_ERR_IDENTITY_KEY 2147 Incorrect interaction password
NET_DVR_MISSING_IDENTITY_KEY 2148 Interaction password is missing
NET_DVR_ERR_CAPTURE_PACKAGE_ 2141 Capturing packets failed.
FAILED
NET_DVR_ERR_CAPTURE_PACKAGE_ 2142 Capturing packet.
PROCESSING
NET_DVR_ERR_SAFETY_HELMET_NO_ 2143 No enough hard hat detection
RESOURCE resource.
NET_DVR_NO_SUPPORT_WITH_ 2144 This function is not supported. Video
ABSTRACT synopsis is already enabled.
NET_DVR_INSUFFICIENT_DEEP_ 2146 No more deep learning resources can
LEARNING_RESOURCES be added.
NET_DVR_NO_SUPPORT_WITH_ 2149 People gathering density is enabled, it
PERSON_DENSITY_DETECT is not supported

388
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_IPC_RESOLUTION_ 2150 The network camera resolution is too
OVERFLOW large
NET_DVR_IPC_BITRATE_OVERFLOW 2151 The network camera bitrate is too
large
NET_DVR_ERR_INVALID_TASKID 2152 Invalid taskID
NET_DVR_PANEL_MODE_NOT_ 2153 The ATM panel mode is not
CONFIG configured.
NET_DVR_NO_HUMAN_ENGINES_ 2154 No enough engine resource
RESOURCE
NET_DVR_ERR_TASK_NUMBER_ 2155 No more task data is allowed
OVERFLOW
NET_DVR_ERR_COLLISION_TIME_ 2156 Collision time is over the limit
OVERFLOW
NET_DVR_ERR_EVENT_NOTSUPPORT 2159 Subscribing alarm/event is not
supported.
NET_DVR_IPC_NUM_REACHES_LIMIT 2184 The max. number of network camera
channels reached.
NET_DVR_IOT_NUM_REACHES_LIMIT 2185 The max. number of IoT channels
reached
NET_DVR_IOT_CHANNEL_DEVICE_ 2186 Device of the IoT channel already
EXIST exists.
NET_DVR_IOT_CHANNEL_DEVICE_ 2187 Device of the IoT channel does not
NOT_EXIST exist.
NET_DVR_INVALID_IOT_PROTOCOL_ 2188 Invalid IoT protocol type
TYPE
NET_DVR_INVALID_EZVIZ_SECRET_ 2189 Invalid verification code
KEY
NET_DVR_DUPLICATE_IOT_DEVICE 2190 Duplicated IoT device
NET_DVR_ERROR_NEED_DOUBLE_ 2206 Double verification is required
VERIFICATION
NET_DVR_NO_DOUBLE_ 2207 No double verification user
VERIFICATION_USER

389
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_TIMESPAN_NUM_OVER_ 2209 Max. number of time buckets reached
LIMIT
NET_DVR_CHANNEL_NUM_OVER_ 2210 Max. number of channels reached
LIMIT
NET_DVR_NO_SEARCH_ID_ 2211 Insufficient searchID resources
RESOURCE
NET_DVR_SWITCH_TIMEDIFF_LESS_ 2249 Time difference between power on
LIMIT and off should be less than 10
minutes.
NET_DVR_NO_SUPPORT_DELETE_ 2262 Deleting stranger library is not
STRANGER_LIB supported
NET_DVR_NO_SUPPORT_CREATE_ 2263 Creating stranger library is not
STRANGER_LIB supported
NET_DVR_SSD_FILE_SYSTEM_ERROR 2266 SSD file system error
NET_DVR_INSUFFICIENT_SSD__FOR_ 2267 Insufficient SSD space for person
FPD frequency detection
NET_DVR_SMRDISK_NOT_SUPPORT_ 2269 SMR disk does not support RAID.
RAID
NET_DVR_ERR_NOTSUPPORT_ 3001 Device does not support deicing
DEICING function under current status.(Deicing
function is only supported under the
power status of POE+, AC24V, and
DC12V).
NET_DVR_ERR_THERMENABLE_ 3002 Temperature measurement function
CLOSE is not enabled. (The enable function
in NET_DVR_THERMOMETRY_
BASICPARAM is not turned on)
NET_DVR_ERR_PANORAMIC_LIMIT_ 3004 Panoramic map and limit cannot be
OPERATED operated at same time
NET_DVR_ERR_SMARTH264_ROI_ 3005 SmartH264 and ROI cannot be
OPERATED enabled at the same time.
NET_DVR_ERR_RULENUM_LIMIT 3006 No more rules can be added.
NET_DVR_ERR_LASER_DEICING_ 3007 Laser and deicing function cannot be
OPERATED enabled at the same time.

390
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_OFFDIGITALZOOM_ 3008 Please disable the digital zoom
OR_MINZOOMLIMIT function or set the zoom limit to the
minimum value. Otherwise, when
enabling smoke and fire detection,
behavior analysis, ship detection,
defective point correction,
temperature measurement, smoke
and fire shielding function, this error
code will be prompted.
NET_DVR_SYNCHRONIZEFOV_ERROR 3010 Field of view synchronization failed.
NET_DVR_RULE_SHIELDMASK_ 3013 The rule region conflicts with the
CONFLICT_ERROR shielded area.
NET_DVR_ERR_NO_SAFETY_HELMET_ 3501 The hard hat detection area is not
REGION configured.
NET_DVR_ERR_UNCLOSED_SAFETY_ 3502 The hard hat detection is enabled.
HELMET

RTSP Communication Library Related Errors

Error Name Error Code Error Description


NET_DVR_RTSP_ERROR_ 401 Authentication failed: if server
NOENOUGHPRI returns 401, it will change to this
error code
NET_DVR_RTSP_ERROR_ALLOC_ 402 Failed to allocate the resource
RESOURCE
NET_DVR_RTSP_ERROR_PARAMETER 403 Parameter error
NET_DVR_RTSP_ERROR_NO_URL 404 The assigned URL does not exist:
when the server returns 404, SDK
turns to this error code. E.g. the
channel is not available, or the
channel does not support sub
stream
NET_DVR_RTSP_ERROR_FORCE_STOP 406 The user forces to exit midway
NET_DVR_RTSP_GETPORTFAILED 407 RTSP port getting error.
NET_DVR_RTSP_DESCRIBERROR 410 RTSP DECRIBE communicate error

391
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_RTSP_ 411 Sending "RTSP DECRIBE" is timeout.
DESCRIBESENDTIMEOUT
NET_DVR_RTSP_DESCRIBESENDERROR 412 Failed to send "RTSP DECRIBE".
NET_DVR_RTSP_ 413 Receiving "RTSP DECRIBE" is
DESCRIBERECVTIMEOUT timeout.
NET_DVR_RTSP_ 414 Receiving data of "RTSP DECRIBE"
DESCRIBERECVDATALOST error.
NET_DVR_RTSP_DESCRIBERECVERROR 415 Failed to receive "RTSP DECRIBE".
NET_DVR_RTSP_DESCRIBESERVERERR 416 "RTSP DECRIBE, the device returns
the error code: 501 (failed to
allocate the resource in the device)
NET_DVR_RTSP_SETUPERROR 420 (or 419), RTSP SETUP interaction
error. Generally, it is that the
address(URL) returned by the
device is not accessible, or it is
rejected by the server
NET_DVR_RTSP_SETUPSENDTIMEOUT 421 Sending "RTSP SETUP" is timeout.
NET_DVR_RTSP_SETUPSENDERROR 422 Sending "RTSP SETUP" error.
NET_DVR_RTSP_SETUPRECVTIMEOUT 423 Receiving "RTSP SETUP" is timeout.
NET_DVR_RTSP_SETUPRECVDATALOST 424 Receiving data of "RTSP SETUP"
error.
NET_DVR_RTSP_SETUPRECVERROR 425 Failed to receive "RTSP SETUP".
NET_DVR_RTSP_OVER_MAX_CHAN 426 "RTSP SETUP" device returns the
error that values 401 or 501. It
exceeds the max connection
number.
NET_DVR_RTSP_PLAYERROR 430 RTSP PLAY interaction error.
NET_DVR_RTSP_PLAYSENDTIMEOUT 431 Sending "RTSP PLAY" is timeout.
NET_DVR_RTSP_PLAYSENDERROR 432 Sending "RTSP PLAY" error.
NET_DVR_RTSP_PLAYRECVTIMEOUT 433 Receiving "RTSP PLAY" is timeout.
NET_DVR_RTSP_PLAYRECVDATALOST 434 Receiving data of "RTSP PLAY" error.
NET_DVR_RTSP_PLAYRECVERROR 435 Failed to receive "RTSP PLAY".

392
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_DVR_RTSP_PLAYSERVERERR 436 "RTSP PLAY" device returns the
error that values 401 or 501.
NET_DVR_RTSP_TEARDOWNERROR 440 RTSP TEARDOWN interaction error.
NET_DVR_RTSP_ 441 Sending "RTSP TEARDOWN" is
TEARDOWNSENDTIMEOUT timeout.
NET_DVR_RTSP_ 442 Sending "RTSP TEARDOWN" error.
TEARDOWNSENDERROR
NET_DVR_RTSP_ 443 Receiving "RTSP TEARDOWN" is
TEARDOWNRECVTIMEOUT timeout.
NET_DVR_RTSP_ 444 Receiving data of "RTSP
TEARDOWNRECVDATALOST TEARDOWN" error.
NET_DVR_RTSP_ 445 Failed to receive "RTSP
TEARDOWNRECVERROR TEARDOWN".
NET_DVR_RTSP_ 446 "RTSP TEARDOWN" device returns
TEARDOWNSERVERERR the error that values 401 or 501.

Software Decoding Library Related Errors

Error Name Error Code Error Description


NET_PLAYM4_NOERROR 500 No error.
NET_PLAYM4_PARA_OVER 501 Input parameter is invalid.
NET_PLAYM4_ORDER_ERROR 502 API calling order error.
NET_PLAYM4_TIMER_ERROR 503 Failed to create multimedia clock.
NET_PLAYM4_DEC_VIDEO_ERROR 504 Failed to decode video data.
NET_PLAYM4_DEC_AUDIO_ERROR 505 Failed to decode audio data.
NET_PLAYM4_ALLOC_MEMORY_ 506 Failed to allocate memory.
ERROR
NET_PLAYM4_OPEN_FILE_ERROR 507 Failed to open the file.
NET_PLAYM4_CREATE_OBJ_ERROR 508 Failed to create thread event.
NET_PLAYM4_CREATE_DDRAW_ 509 Failed to create DirectDraw object.
ERROR
NET_PLAYM4_CREATE_OFFSCREEN_ 510 Failed to create backstage cache for
ERROR OFFSCREEN mode.

393
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_PLAYM4_BUF_OVER 511 Buffer overflow, failed to input stream.
NET_PLAYM4_CREATE_SOUND_ 512 Failed to create audio equipment.
ERROR
NET_PLAYM4_SET_VOLUME_ 513 Failed to set the volume.
ERROR
NET_PLAYM4_SUPPORT_FILE_ONLY 514 This API can be called only for file
playback mode.
NET_PLAYM4_SUPPORT_STREAM_ 515 This API can be called only when playing
ONLY stream.
NET_PLAYM4_SYS_NOT_SUPPORT 516 Not support by the system. Decoder can
only work on the system above Pentium
3.
NET_PLAYM4_FILEHEADER_ 517 There is no file header.
UNKNOWN
NET_PLAYM4_VERSION_ 518 The version mismatch between decoder
INCORRECT and encoder.
NET_PLAYM4_INIT_DECODER_ 519 Failed to initialize the decoder.
ERROR
NET_PLAYM4_CHECK_FILE_ERROR 520 The file is too short, or the stream data
is unknown.
NET_PLAYM4_INIT_TIMER_ERROR 521 Failed to initialize multimedia clock.
NET_PLAYM4_BLT_ERROR 522 BLT failure.
NET_PLAYM4_UPDATE_ERROR 523 Failed to update overlay surface
NET_PLAYM4_OPEN_FILE_ERROR_ 524 Failed to open video & audio stream
MULTI file.
NET_PLAYM4_OPEN_FILE_ERROR_ 525 Failed to open video stream file.
VIDEO
NET_PLAYM4_JPEG_COMPRESS_ 526 JPEG compression error.
ERROR
NET_PLAYM4_EXTRACT_NOT_ 527 Don't support the version of this file.
SUPPORT
NET_PLAYM4_EXTRACT_DATA_ 528 Extract video data failed.
ERROR

394
Device Network SDK (Access Control on Card) Developer Guide

Container Format Conversion Library Related Errors

Error Name Error Code Error Description


NET_CONVERT_ERROR_NOT_ 581 This container format is not supported.
SUPPORT

Two Way Audio Library Related Errors

Error Name Error Code Error Description


NET_AUDIOINTERCOM_OK 600 No error.
NET_AUDIOINTECOM_ERR_NOTSUPORT 601 Not support.
NET_AUDIOINTECOM_ERR_ALLOC_MEMERY 602 Memory allocation error.
NET_AUDIOINTECOM_ERR_PARAMETER 603 Parameter error.
NET_AUDIOINTECOM_ERR_CALL_ORDER 604 API calling order error.
NET_AUDIOINTECOM_ERR_FIND_DEVICE 605 No audio device
NET_AUDIOINTECOM_ERR_OPEN_DEVICE 606 Failed to open the audio device
NET_AUDIOINTECOM_ERR_NO_CONTEXT 607 Context error.
NET_AUDIOINTECOM_ERR_NO_WAVFILE 608 WAV file error.
NET_AUDIOINTECOM_ERR_INVALID_TYPE 609 The type of WAV parameter is
invalid
NET_AUDIOINTECOM_ERR_ENCODE_FAIL 610 Failed to encode data
NET_AUDIOINTECOM_ERR_DECODE_FAIL 611 Failed to decode data
NET_AUDIOINTECOM_ERR_NO_PLAYBACK 612 Failed to play audio
NET_AUDIOINTECOM_ERR_DENOISE_FAIL 613 Failed to denoise
NET_AUDIOINTECOM_ERR_UNKOWN 619 Unknown

QoS Stream Control Library Related Errors

Error Name Error Code Error Description


NET_QOS_ERR_SCHEDPARAMS_BAD_ 678 Incorrect predefined minimum
MINIMUM_INTERVAL interval.
NET_QOS_ERR_SCHEDPARAMS_BAD_ 679 Incorrect predefined score.
FRACTION
NET_QOS_ERR_SCHEDPARAMS_INVALID_ 680 Invalid predefined bandwidth.
BANDWIDTH

395
Device Network SDK (Access Control on Card) Developer Guide

Error Name Error Code Error Description


NET_QOS_ERR_PACKET_TOO_BIG 687 The packet size is too large.
NET_QOS_ERR_PACKET_LENGTH 688 Invalid packet size.
NET_QOS_ERR_PACKET_VERSION 689 Incorrect packet versio
information.
NET_QOS_ERR_PACKET_UNKNOW 690 Unknown packet.
NET_QOS_ERR_OUTOFMEM 695 Out of memory.
NET_QOS_ERR_LIB_NOT_INITIALIZED 696 The library is not initialized.
NET_QOS_ERR_SESSION_NOT_FOUND 697 No session found.
NET_QOS_ERR_INVALID_ARGUMENTS 698 Invalid parameters.
NET_QOS_ERROR 699 QoS Stream Control Library
error.
NET_QOS_OK 700 No error.

NPQ (Network Protocol Quality) Related Error

Error Name Error Code Error Description


NET_ERR_NPQ_PARAM 8001 NPQ library: Incorrect parameter.
NET_ERR_NPQ_SYSTEM 8002 NPQ library: Operating system error.
NET_ERR_NPQ_GENRAL 8003 NPQ library: Internal error.
NET_ERR_NPQ_PRECONDITION 8004 NPQ library: Calling sequence error.
NET_ERR_NPQ_NOTSUPPORT 8005 NPQ library: This function is not
supported.
NET_ERR_NPQ_NOTCALLBACK 8100 No data is called back.
NET_ERR_NPQ_LOADLIB 8101 Loading NPQ library failed.
NET_ERR_NPQ_STEAM_CLOSE 8104 The NPQ function of this stream is not
enabled.
NET_ERR_NPQ_MAX_LINK 8110 No more streaming channel's NPQ
function can be enabled.
NET_ERR_NPQ_STREAM_CFG_ 8111 The configured encoding parameters
CONFLICT conflicted.

396
Device Network SDK (Access Control on Card) Developer Guide

A.4 HCNetSDK Log Types


The logs generated by the devices during the HCNetSDK integration are classified as five major
types, i.e., alarm log (MAJOR_ALARM-01), exception log (MAJOR_EXCEPTION-0x2), operation log
(MAJOR_OPERATION-0x3), additional information log (MAJOR_INFORMATION-0x4), and event log
(MAJOR_EVENT-0x5). Each major log type corresponds to multiple minor types, see details below.

MAJOR_ALARM
Table A-1 Minor Types of Alarm Log
Log Minor Type Value Description
MINOR_ALARM_IN 0x1 Alarm Input
MINOR_ALARM_OUT 0x2 Alarm output
MINOR_MOTDET_START 0x3 Motion detection alarm started
MINOR_MOTDET_STOP 0x4 Motion detection alarm ended
MINOR_HIDE_ALARM_START 0x5 Tampering alarm started
MINOR_HIDE_ALARM_STOP 0x6 Tampering alarm ended
MINOR_VCA_ALARM_START 0x7 VCA alarm started
MINOR_VCA_ALARM_STOP 0x8 VCA alarm ended
MINOR_ITS_ALARM_START 0x09 Traffic event alarm started
MINOR_ITS_ALARM_STOP 0x0a Traffic event alarm ended
MINOR_NETALARM_START 0x0b Network alarm started
MINOR_NETALARM_STOP 0x0c Network alarm ended
MINOR_NETALARM_RESUME 0x0d Network alarm recovery
MINOR_WIRELESS_ALARM_START 0x0e Wireless alarm started
MINOR_WIRELESS_ALARM_STOP 0x0f Wireless alarm ended
MINOR_PIR_ALARM_START 0x10 Human induction alarm started
MINOR_PIR_ALARM_STOP 0x11 Human induction alarm ended
MINOR_CALLHELP_ALARM_START 0x12 Emergency alarm started
MINOR_CALLHELP_ALARM_STOP 0x13 Emergency alarm ended
MINOR_DETECTFACE_ALARM_START 0x16 Face detection alarm started
MINOR_DETECTFACE_ALARM_STOP 0x17 Face detection alarm ended

397
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_VCA_SECNECHANGE_ 0x1a Scene change detection alarm
DETECTION
MINOR_SMART_REGION_EXITING_ 0x1b Region exiting detection started
BEGIN
MINOR_SMART_REGION_EXITING_ 0x1c Region exiting detection ended
END
MINOR_SMART_LOITERING_BEGIN 0x1d Loitering detection started
MINOR_SMART_LOITERING_END 0x1e Loitering detection ended
MINOR_DREDGERDETECTION _ 0x11a Dredger detection alarm
ALARM
MINOR_VCA_ALARM_LINE_ 0x20 Line crossing detection started
DETECTION_BEGIN
MINOR_VCA_ALARM_LINE_ 0x21 Line crossing detection ended
DETECTION_END
MINOR_VCA_ALARM_INTRUDE_ 0x22 Intrusion detection started
BEGIN
MINOR_VCA_ALARM_INTRUDE_END 0x23 Intrusion detection ended
MINOR_VCA_ALARM_AUDIOINPUT 0x24 Audio loss detection
MINOR_VCA_ALARM_ 0x25 Audio exception detection
AUDIOABNORMAL
MINOR_VCA_DEFOCUS_DETECTION_ 0x26 Defocus detection started
BEGIN
MINOR_VCA_DEFOCUS_DETECTION_ 0x27 Defocus detection ended
END
MINOR_VCA_FACE_ALARM_BEGIN 0x29 Face detection started
MINOR_SMART_REGION_ENTRANCE_ 0x2a Region entrance detection started
BEGIN
MINOR_SMART_REGION_ENTRANCE_ 0x2b Region entrance detection ended
END
MINOR_SMART_PEOPLE_ 0x2c People gathering detection started
GATHERING_BEGIN
MINOR_SMART_PEOPLE_ 0x2d People gathering detection ended
GATHERING_END

398
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_SMART_FAST_MOVING_ 0x2e Fast moving detection started
BEGIN
MINOR_SMART_FAST_MOVING_END 0x2f Fast moving detection ended
MINOR_VCA_FACE_ALARM_END 0x30 Face detection ended
MINOR_VCA_SCENE_CHANGE_ 0x31 Scene change detection started
ALARM_BEGIN
MINOR_VCA_SCENE_CHANGE_ 0x32 Scene change detection ended
ALARM_END
MINOR_VCA_ALARM_AUDIOINPUT_ 0x33 Audio loss detection started
BEGIN
MINOR_VCA_ALARM_AUDIOINPUT_ 0x34 Audio loss detection ended
END
MINOR_VCA_ALARM_ 0x35 Sudden change of sound intensity
AUDIOABNORMAL_BEGIN detection started
MINOR_VCA_ALARM_ 0x36 Sudden change of sound intensity
AUDIOABNORMAL_END detection ended
MINOR_VCA_ALARM_ 0x39 Sudden decrease of sound intensity
AUDIOSTEEPDROP detection
MINOR_SMART_PARKING_BEGIN 0x3c Parking detection started
MINOR_SMART_PARKING_END 0x3d Parking detection ended
MINOR_SMART_UNATTENDED_ 0x3e Unattended baggage detection
BAGGAGE_BEGIN started
MINOR_SMART_UNATTENDED_ 0x3f Unattended baggage detection ended
BAGGAGE_END
MINOR_SMART_OBJECT_REMOVAL_ 0x40 Object removal detection started
BEGIN
MINOR_SMART_OBJECT_REMOVAL_ 0x41 Object removal detection ended
END
MINOR_VCA_LEAVE_POSITION_START 0x42e Absence detection started
MINOR_VCA_LEAVE_POSITION_STOP 0x42f Absence detection ended
MINOR_VCA_PEOPLENUM_CHANGE_ 0x434 The people number change started
START

399
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_VCA_PEOPLENUM_CHANGE_ 0x435 The people number change ended
STOP
MINOR_VCA_RUNNING_START 0x438 People running started
MINOR_VCA_RUNNING_STOP 0x439 People running ended
MINOR_VCA_VIOLENT_MOTION_ 0x43a Violent motion started
START
MINOR_VCA_VIOLENT_MOTION_ 0x43b Violent motion ended
STOP
MINOR_VCA_FAIL_DOWN_START 0x43c People falling started
MINOR_VCA_FAIL_DOWN_STOP 0x43d People falling ended
MINOR_VCA_RETENTION_START 0x43e Overstay detection started
MINOR_VCA_RETENTION_STOP 0x43f Overstay detection ended
MINOR_SMART_VEHICLE_ALARM_ 0x46 License plate detection started
START
MINOR_SMART_VEHICLE_ALARM_ 0x47 License plate detection ended
STOP
MINOR_THERMAL_FIREDETECTION 0x48 Thermal imaging fire point detection
started
MINOR_THERMAL_FIREDETECTION_ 0x49 Thermal imaging fire point detection
END ended
MINOR_SMART_VANDALPROOF_ 0x50 Vandal-proof detection started
BEGIN
MINOR_SMART_VANDALPROOF_END 0x51 Vandal-proof detection ended
MINOR_FACESNAP_MATCH_ALARM_ 0x55 Face picture comparison alarm
START started
MINOR_FACESNAP_MATCH_ALARM_ 0x56 Face picture comparison alarm ended
STOP
MINOR_WHITELIST_FACESNAP_ 0x57 Face picture in whitelist comparison
MATCH_ALARM_START alarm started
MINOR_WHITELIST_FACESNAP_ 0x58 Face picture in whitelist comparison
MATCH_ALARM_STOP alarm ended
MINOR_THERMAL_SHIPSDETECTION 0x5a Thermal imaging ship detection

400
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_THERMAL_THERMOMETRY_ 0x5b Thermal imaging temperature
EARLYWARNING_BEGIN measurement pre-alarm started
MINOR_THERMAL_THERMOMETRY_ 0x5c Thermal imaging temperature
EARLYWARNING_END measurement pre-alarm ended
MINOR_THERMAL_THERMOMETRY_ 0x5d Thermal imaging temperature
ALARM_BEGIN measurement alarm started
MINOR_THERMAL_THERMOMETRY_ 0x5e Thermal imaging temperature
ALARM_END measurement alarm ended
MINOR_THERMAL_THERMOMETRY_ 0x5f Thermal imaging temperature
DIFF_ALARM_BEGIN difference alarm started
MINOR_THERMAL_THERMOMETRY_ 0x60 Thermal imaging temperature
DIFF_ALARM_END difference alarm ended
MINOR_ FACE_THERMOMETRY_ 0x63 Body thermometry alarm
ALARM
MINOR_SAFETY_HELMET_ALARM_ 0x72 Hard hat detection alarm stated
START
MINOR_SAFETY_HELMET_ALARM_ 0x73 Hard hat detection alarm ended
STOP
MINOR_HFPD_ALARM_START 0x74 Frequently appeared person
detection alarm started
MINOR_HFPD_ALARM_STOP 0x75 Frequently appeared person
detection alarm ended
MINOR_MIXED_TARGET_ALARM_ 0x76 Milti-target-type detection alarm
START started
MINOR_MIXED_TARGET_ALARM_ 0x77 Milti-target-type detection alarm
STOP ended
MINOR_VCA_GET_UP_ALARM_BEGIN 0x80 Getting up alarm started
MINOR_VCA_GET_UP_ALARM_END 0x81 Getting up alarm ended
MINOR_VCA_ADV_REACH_HEIGHT_ 0x82 Climbing alarm started
ALARM_BEGIN
MINOR_VCA_ADV_REACH_HEIGHT_ 0x83 Climbing alarm ended
ALARM_END
MINOR_VCA_TOILET_TARRY_ALARM_ 0x84 Toilet overtime alarm started
BEGIN

401
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_VCA_TOILET_TARRY_ALARM_ 0x85 Toilet overtime alarm ended
END
MINOR_HUMAN_RECOGNITION_ 0x86 Target alarm started
ALARM_BEGIN
MINOR_HUMAN_RECOGNITION_ 0x87 Target alarm ended
ALARM_END
MINOR_ACCESS_CONTROLLER_ 0x100 Access controller event
EVENT
MINOR_VIDEO_INTERCOM_EVENT 0x101 Video intercom event
MINOR_GJD_EVENT 0x102 GJD security control panel event
MINOR_LUMINITE_EVENT 0x103 LUMINITE security control panel
event
MINOR_OPTEX_EVENT 0x104 OPTEX security control panel event
MINOR_CAMERA_DETECTOR_EVENT 0x105 Detector event
MINOR_SECURITY_CONTROL_PANEL_ 0x106 Hikvision security control panel event
EVENT
MINOR_LFPD_ALARM_START 0x124 Low frequency person alarm started
MINOR_LFPD_ALARM_STOP 0x125 Low frequency person alarm stopped
MINOR_DATA_PREALARM_ALARM 0x127 Network traffic pre-alarm
MINOR_VIBRATION_DETECTION_ 0x132 Vibration detection alarm started
ALARM_BEGIN
MINOR_VIBRATION_DETECTION_ 0x133 Vibration detection alarm stopped
ALARM_END
MINOR_ALARMIN_SHORT_CIRCUIT 0x400 Zone short circuited alarm
MINOR_ALARMIN_BROKEN_CIRCUIT 0x401 Zone disconnected alarm
MINOR_ALARMIN_EXCEPTION 0x402 Zone exception alarm
MINOR_ALARMIN_RESUME 0x403 Zone alarm recovery
MINOR_HOST_DESMANTLE_ALARM 0x404 Device anti-tamper alarm
MINOR_HOST_DESMANTLE_RESUME 0x405 Device anti-tamper recovery
MINOR_CARD_READER_DESMANTLE_ 0x406 Card reader anti-tamper alarm
ALARM

402
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_CARD_READER_DESMANTLE_ 0x407 Card reader anti-tamper recovery
RESUME
MINOR_CASE_SENSOR_ALARM 0x408 Event input alarm
MINOR_CASE_SENSOR_RESUME 0x409 Event input recovery
MINOR_STRESS_ALARM 0x40a Duress alarm
MINOR_OFFLINE_ECENT_NEARLY_ 0x40b No memory alarm
FULL
MINOR_CARD_MAX_AUTHENTICATE_ 0x40c Card reading failure alarm
FAIL
MINOR_POS_START_ALARM 0x411 POS enabled
MINOR_POS_END_ALARM 0x412 POS disabled

MAJOR_EXCEPTION
Table A-2 Minor Types of Exception Log
Log Minor Type Value Description
MINOR_RAID_ERROR 0x20 RAID exception
MINOR_VI_LOST 0x21 Video loss
MINOR_ILLEGAL_ACCESS 0x22 Illegal login
MINOR_HD_FULL 0x23 HDD full
MINOR_HD_ERROR 0x24 HDD error
MINOR_DCD_LOST 0x25 MODEM offline (reserved)
MINOR_IP_CONFLICT 0x26 IP address conflicted
MINOR_NET_BROKEN 0x27 Network disconnected
MINOR_REC_ERROR 0x28 Recording error
MINOR_IPC_NO_LINK 0x29 IPC connection exception
MINOR_VI_EXCEPTION 0x2a Video input exception (only for analog
channel)
MINOR_IPC_IP_CONFLICT 0x2b IP address conflicted of IPC
MINOR_SENCE_EXCEPTION 0x2c Sence exception
MINOR_PIC_REC_ERROR 0x2d Capture error. Failed to get pictures.
MINOR_VI_MISMATCH 0x2e Video format mismatches

403
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_RESOLUTION_MISMATCH 0x2f Encoding resolution does not match
with the front-end resolution
MINOR_RS485_DEVICE_ABNORMAL 0x3a RS485 connection status exception
MINOR_RS485_DEVICE_REVERT 0x3b RS485 connection status exception
recovery
MINOR_SCREEN_SUBSYSTEM_ 0x3c Sub-board abnormal startup
ABNORMALREBOOT
MINOR_SCREEN_SUBSYSTEM_ 0x3d Sub-board inserted
ABNORMALINSERT
MINOR_SCREEN_SUBSYSTEM_ 0x3e Sub-board pulled out
ABNORMALPULLOUT
MINOR_SCREEN_ 0x3f Temperature exception
ABNARMALTEMPERATURE
MINOR_RECORD_OVERFLOW 0x41 Buffer overflow
MINOR_DSP_ABNORMAL 0x42 DSP exception
MINOR_ANR_RECORD_FAIED 0x43 ANR recordig failed
MINOR_SPARE_WORK_DEVICE_ 0x44 Hot spare device working exception
EXCEPT
MINOR_START_IPC_MAS_FAILED 0x45 Failed to enable IPC MAS
MINOR_IPCM_CRASH 0x46 IPCM abnormal rebooting
MINOR_POE_POWER_EXCEPTION 0x47 POE power supply exception
MINOR_UPLOAD_DATA_CS_ 0x48 Failed to upload data to cloud storage
EXCEPTION
MINOR_DIAL_EXCEPTION 0x49 Dial-up exception
MINOR_DEV_EXCEPTION_OFFLINE 0x50 Device abnormal offline
MINOR_UPGRADEFAIL 0x51 Remote upgrading failed.
MINOR_AI_LOST 0x52 Audio loss
MINOR_SYNC_IPC_PASSWD 0x53 IPC password synchronization
exception
MINOR_EZVIZ_OFFLINE 0x54 Ezviz offline exception
MINOR_ACCESSORIES_PLATE 0x57 Accessory board exception
MINOR_CAMERA_ANGLE_ANOMALY 0x60 Camera view angle exception

404
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_FACESNAP_RESOLUTION_ 0x63 Overlimit face capture stream
OVERFLOW resolution
MINOR_SMD_RESOLUTION_ 0x64 Overlimit SMD stream resolution
OVERFLOW
MINOR_AUDIO_LOSS_EXCEPTION 0x65 Audio loss
MINOR_SAFETY_HELMET_EXCEPTION 0x66 Hard hat detection exception
MINOR_VCA_PIC_LENGTH_ 0x67 The VCA picture size is too large
OVERFLOW
MINOR_FACE_MODEL_EXCEPTION 0x68 Face picture library model
synchronization error
MINOR_CLUSTER_DEVICE_OFFLINE 0x70 The device in cluster is offline
MINOR_CLUSTER_CONFIG_FAILED 0x71 Configuring the devices in cluster
failed.
MINOR_CLUSTER_DISASTER_ 0x72 Cluster disaster recovery exception:
TOLERANCE_EXCEPT cluster CM election failed, no enough
cluster storage period, no enough
cluster bandwidth, no enough
channel resource, no enough device.
MINOR_CLUSTER_STORFULL_ 0x73 The cluster HDD is full.
EXCEPTION
MINOR_CLUSTER_VERSION_ 0x74 Cluster version exception
EXCEPTION
MINOR_CLUSTER_OFFLINENODE_ 0x75 The offline devices in cluster exceed
EXCEPTION the limit.
MINOR_CLUSTER_RECORDCYCLE_ 0x76 Cluster storage period is not enough.
EXCEPTION
MINOR_CLUSTER_IPCTRANSFER_ 0x77 Cluster network camera migration
EXCEPTION failed.
MINOR_CLUSTER_IPCONFLICT_ 0x78 Cluster IP conflict.
EXCEPTION
MINOR_EVENT_UPLOAD_EXCEPTION 0x7c Uploading event failed/Uploaded
event lost
MINOR_DEV_POWER_ON 0x400 Device power on
MINOR_DEV_POWER_OFF 0x401 Device power off

405
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_WATCH_DOG_RESET 0x402 Watch dog resumed
MINOR_LOW_BATTERY 0x403 Low battery
MINOR_BATTERY_RESUME 0x404 Battery voltage recovery
MINOR_AC_OFF 0x405 AC power interrupt
MINOR_AC_RESUME 0x406 AC power recovery
MINOR_NET_RESUME 0x407 Network recovery
MINOR_FLASH_ABNORMAL 0x408 FLASH reading/writing exception
MINOR_CARD_READER_OFFLINE 0x409 Card reader offline
MINOR_CARD_READER_RESUME 0x40a Card reader offline recovery
MINOR_AUXILIARY_BOARD_OFFLINE 0x43c Auxiliary board disconnected
MINOR_AUXILIARY_BOARD_RESUME 0x43d Auxiliary board connected
MINOR_IDCARD_SECURITY_ 0x43e ID card module exception
MOUDLE_EXCEPTION
MINOR_IDCARD_SECURITY_ 0x43f ID card module restored
MOUDLE_RESUME
MINOR_FP_PERIPHERAL_EXCEPTION 0x440 Fingerprint recorder exception
MINOR_FP_PERIPHERAL_RESUME 0x441 Fingerprint recorder restored
MINOR_SUBSYSTEM_IP_CONFLICT 0x4000 IP conflicted of sub-board
MINOR_SUBSYSTEM_NET_BROKEN 0x4001 Sub-board offline
MINOR_FAN_ABNORMAL 0x4002 Fan exception
MINOR_BACKPANEL_TEMPERATURE_ 0x4003 Back board temperature exception
ABNORMAL
MINOR_SDCARD_ABNORMAL 0x4004 SD card defective
MINOR_SDCARD_DAMAGE 0x4005 SD card damaged
MINOR_OVERVOLTAGE 0x4019 High supply voltage
MINOR_UNDERVOLTAGE 0x401a Low supply voltage
MINOR_HIGH_HD_TEMPERATURE 0x80 HDD high temperature
MINOR_LOW_HD_TEMPERATURE 0x81 HDD low temperature
MINOR_HD_IMPACT 0x82 HDD impact

406
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_HD_BAD_BLOCK 0x83 HDD bad sector
MINOR_SEVERE_HD_FAILURE 0x84 HDD severe fault

MAJOR_OPERATION
Table A-3 Minor Types of Operation Log
Log Minor Type Value Description
MINOR_START_DVR 0x41 Power on
MINOR_STOP_DVR 0x42 Shutdown
MINOR_STOP_ABNORMAL 0x43 Abnormal shutdown
MINOR_REBOOT_DVR 0x44 Reboot device (local)
MINOR_LOCAL_LOGIN 0x50 Logged in (local)
MINOR_LOCAL_LOGOUT 0x51 Logged out (Local)
MINOR_LOCAL_CFG_PARM 0x52 Local configuration
MINOR_LOCAL_PLAYBYFILE 0x53 Playback or download by file (local)
MINOR_LOCAL_PLAYBYTIME 0x54 Playback or download by time (local)
MINOR_LOCAL_START_REC 0x55 Start recording (local)
MINOR_LOCAL_STOP_REC 0x56 Stop recording (local)
MINOR_LOCAL_PTZCTRL 0x57 PTZ control (local)
MINOR_LOCAL_PREVIEW 0x58 Live view (local,reserved)
MINOR_LOCAL_MODIFY_TIME 0x59 Edit time (local,reserved)
MINOR_LOCAL_UPGRADE 0x5a Local upgrade
MINOR_LOCAL_RECFILE_OUTPUT 0x5b Backup video files (local)
MINOR_LOCAL_FORMAT_HDD 0x5c Initialize HDD (local)
MINOR_LOCAL_CFGFILE_OUTPUT 0x5d Export local configuration files
MINOR_LOCAL_CFGFILE_INPUT 0x5e Import local configuration files
MINOR_LOCAL_COPYFILE 0x5f Backup files (local)
MINOR_LOCAL_LOCKFILE 0x60 Lock video files (local)
MINOR_LOCAL_UNLOCKFILE 0x61 Unlock video files (local)
MINOR_LOCAL_DVR_ALARM 0x62 Clear manually and trigger alarm
(local)

407
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_IPC_ADD 0x63 Add IPC (local)
MINOR_IPC_DEL 0x64 Delete IPC (local)
MINOR_IPC_SET 0x65 Set IPC (local)
MINOR_LOCAL_START_BACKUP 0x66 Start backup (local)
MINOR_LOCAL_STOP_BACKUP 0x67 Stop backup (local)
MINOR_LOCAL_COPYFILE_START_ 0x68 Start time of local backup
TIME
MINOR_LOCAL_COPYFILE_END_TIME 0x69 End time of local backup
MINOR_LOCAL_ADD_NAS 0x6a Add NetHDD (local)
MINOR_LOCAL_DEL_NAS 0x6b Delete NAS (local)
MINOR_LOCAL_SET_NAS 0x6c Set NAS (local)
MINOR_REMOTE_LOGIN 0x70 Login (remote)
MINOR_REMOTE_LOGOUT 0x71 Logout (local)
MINOR_REMOTE_START_REC 0x72 Start recording (remote)
MINOR_REMOTE_STOP_REC 0x73 Stop recording (remote)
MINOR_START_TRANS_CHAN 0x74 Start transparent transmission
MINOR_STOP_TRANS_CHAN 0x75 Stop transparent transmission
MINOR_REMOTE_GET_PARM 0x76 Get parameters (remote)
MINOR_REMOTE_CFG_PARM 0x77 Remote configuration
MINOR_REMOTE_GET_STATUS 0x78 Get status (remote)
MINOR_REMOTE_ARM 0x79 Arm (remote)
MINOR_REMOTE_DISARM 0x7a Disarm (remote)
MINOR_REMOTE_REBOOT 0x7b Reboot (remote)
MINOR_START_VT 0x7c Start two-way audio
MINOR_STOP_VT 0x7d Stop two-way audio
MINOR_REMOTE_UPGRADE 0x7e Remote upgrade
MINOR_REMOTE_PLAYBYFILE 0x7f Playback by file (remote)
MINOR_REMOTE_PLAYBYTIME 0x80 Playback by time (remote)
MINOR_REMOTE_PTZCTRL 0x81 PTZ control (remote)

408
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_REMOTE_FORMAT_HDD 0x82 Format HDD (remote)
MINOR_REMOTE_STOP 0x83 Shutdown (remote)
MINOR_REMOTE_LOCKFILE 0x84 Lock files (remote)
MINOR_REMOTE_UNLOCKFILE 0x85 Unlock files (remote)
MINOR_REMOTE_CFGFILE_OUTPUT 0x86 Export configuration files (remote)
MINOR_REMOTE_CFGFILE_INTPUT 0x87 Import configuration files (remote)
MINOR_REMOTE_RECFILE_OUTPUT 0x88 Export video files (remote)
MINOR_REMOTE_DVR_ALARM 0x89 Clear manually and trigger alarm
(remote)
MINOR_REMOTE_IPC_ADD 0x8a Add IPC (remote)
MINOR_REMOTE_IPC_DEL 0x8b Delete IPC (remote)
MINOR_REMOTE_IPC_SET 0x8c Set IPC (remote)
MINOR_REBOOT_VCA_LIB 0x8d Reboot intelligent library
MINOR_REMOTE_ADD_NAS 0x8e Add NAS (remote)
MINOR_REMOTE_DEL_NAS 0x8f Delete NAS (remote)
MINOR_REMOTE_SET_NAS 0x90 Set NAS (remote)
MINOR_LOCAL_START_REC_CDRW 0x91 Start burning (local)
MINOR_LOCAL_STOP_REC_CDRW 0x92 Stop burning (local)
MINOR_REMOTE_START_REC_CDRW 0x93 Start burning (remote)
MINOR_REMOTE_STOP_REC_CDRW 0x94 Stop burning (remote)
MINOR_LOCAL_PIC_OUTPUT 0x95 Back up pictures (local)
MINOR_REMOTE_PIC_OUTPUT 0x96 Back up pictures (remote)
MINOR_LOCAL_INQUEST_RESUME 0x97 Resume inquest event (local)
MINOR_REMOTE_INQUEST_RESUME 0x98 Resume inquest event (remote)
MINOR_LOCAL_ADD_FILE 0x99 Import files (local)
MINOR_REMOTE_DELETE_HDISK 0x9a Delete exception or nonexistent HDD
MINOR_REMOTE_LOAD_HDISK 0x9b Load HDD (remote)
MINOR_REMOTE_UNLOAD_HDISK 0x9c Unload HDD (remote)
MINOR_LOCAL_OPERATE_LOCK 0x9d Lock (local)

409
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_LOCAL_OPERATE_UNLOCK 0x9e Unlock (local)
MINOR_LOCAL_DEL_FILE 0x9f Delete inquest files (local)
MINOR_REMOTE_BYPASS 0xd0 Bypass (remote)
MINOR_REMOTE_UNBYPASS 0xd1 Bypass recovery (remote)
MINOR_REMOTE_SET_ALARMIN_CFG 0xd2 Set alarm input parameters (remote)
MINOR_REMOTE_GET_ALARMIN_ 0xd3 Get alarm input parameters (remote)
CFG
MINOR_REMOTE_SET_ALARMOUT_ 0xd4 Set alarm output parameters (remote)
CFG
MINOR_REMOTE_GET_ALARMOUT_ 0xd5 Get alarm output parameters
CFG (remote)
MINOR_REMOTE_ALARMOUT_OPEN_ 0xd6 Enable alarm output manually
MAN (remote)
MINOR_REMOTE_ALARMOUT_ 0xd7 Disable alarm output manually
CLOSE_MAN (remote)
MINOR_REMOTE_ALARM_ENABLE_ 0xd8 Enable/Disable RS-485 serial port of
CFG security control panel (remote)
MINOR_DBDATA_OUTPUT 0xd9 Export database records
MINOR_DBDATA_INPUT 0xda Import database records
MINOR_MU_SWITCH 0xdb Cascading switch
MINOR_MU_PTZ 0xdc Cascading PTZ control
MINOR_REMOTE_INQUEST_DEL_FILE 0xde Delete file (remote)
MINOR_LOCAL_CONF_REB_RAID 0x101 Configure auto-rebuild (local)
MINOR_LOCAL_CONF_SPARE 0x102 Configure hot spare (local)
MINOR_LOCAL_ADD_RAID 0x103 Create array (local)
MINOR_LOCAL_DEL_RAID 0x104 Delete array (local)
MINOR_LOCAL_MIG_RAID 0x105 Migrate array (local)
MINOR_LOCAL_REB_RAID 0x106 Rebuild array manually (local)
MINOR_LOCAL_QUICK_CONF_RAID 0x107 One-touch configuration (local)
MINOR_LOCAL_ADD_VD 0x108 Create virtual disk (local)
MINOR_LOCAL_DEL_VD 0x109 Delete virtual disk (local)

410
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_LOCAL_RP_VD 0x10a Repair virtual disk (local)
MINOR_LOCAL_FORMAT_EXPANDVD 0x10b Expand virtual disk (local)
MINOR_LOCAL_RAID_UPGRADE 0x10c Upgrade RAID (local)
MINOR_LOCAL_STOP_RAID 0x10d Pause RAID (local, unplug safely)
MINOR_REMOTE_CONF_REB_RAID 0x111 Configure auto-rebuild (remote)
MINOR_REMOTE_CONF_SPARE 0x112 Configure hot spare (remote)
MINOR_REMOTE_ADD_RAID 0x113 Create array (remote)
MINOR_REMOTE_DEL_RAID 0x114 Delete array (remote)
MINOR_REMOTE_MIG_RAID 0x115 Migrate array (remote)
MINOR_REMOTE_REB_RAID 0x116 Rebuild array manually (remote)
MINOR_REMOTE_QUICK_CONF_RAID 0x117 One-touch configuration (remote)
MINOR_REMOTE_ADD_VD 0x118 Create virtual disk (remote)
MINOR_REMOTE_DEL_VD 0x119 Delete virtual disk (remote)
MINOR_REMOTE_RP_VD 0x11a Repair virtual disk (remote)
MINOR_REMOTE_FORMAT_ 0x11b Expand virtual disk (remote)
EXPANDVD
MINOR_REMOTE_RAID_UPGRADE 0x11c Upgrade RAID (remote)
MINOR_REMOTE_STOP_RAID 0x11d Pause RAID (remote, unplug safely)
MINOR_LOCAL_START_PIC_REC 0x121 Start capture (local)
MINOR_LOCAL_STOP_PIC_REC 0x122 Stop capture (local)
MINOR_LOCAL_SET_SNMP 0x125 Set SNMP (local)
MINOR_LOCAL_TAG_OPT 0x126 Tag operation (local)
MINOR_REMOTE_START_PIC_REC 0x131 Start capture (remote)
MINOR_REMOTE_STOP_PIC_REC 0x132 Stop capture (remote)
MINOR_REMOTE_SET_SNMP 0x135 Set SNMP (remote)
MINOR_REMOTE_TAG_OPT 0x136 Tag operation (remote)
MINOR_SCHEDULE_ 0x139 Scheduled angle calibration
ANGLECALIBRATION
MINOR_LOCAL_VOUT_SWITCH 0x140 Switch output (local)

411
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_STREAM_CABAC 0x141 Encoding performance configuration
MINOR_LOCAL_SPARE_OPT 0x142 N+1 hot spare operation (local)
MINOR_REMOTE_SPARE_OPT 0x143 N+1 hot spare operation (remote)
MINOR_LOCAL_IPCCFGFILE_OUTPUT 0x144 Export IPC configuration file (local)
MINOR_LOCAL_IPCCFGFILE_INPUT 0x145 Import IPC configuration file (local)
MINOR_LOCAL_IPC_UPGRADE 0x146 Upgrade IPC (local)
MINOR_REMOTE_IPCCFGFILE_ 0x147 Export IPC configuration file (remote)
OUTPUT
MINOR_REMOTE_IPCCFGFILE_INPUT 0x148 Import IPC configuration file (remote)
MINOR_REMOTE_IPC_UPGRADE 0x149 Upgrade IPC (remote)
MINOR_LOCAL_UNLOAD_HDISK 0x150 Uninstall HDD (local)
MINOR_LOCAL_AUDIO_MIX 0x151 Set audio mix parameters (local)
MINOR_REMOTE_AUDIO_MIX 0x152 Set audio mix parameters (remote)
MINOR_LOCAL_TRIAL_PAUSE 0x153 Pause inquest (local)
MINOR_LOCAL_TRIAL_RESUME 0x154 Resume inquest (local)
MINOR_REMOTE_TRIAL_PAUSE 0x155 Pause inquest (remote)
MINOR_REMOTE_TRIAL_RESUME 0x156 Resume inquest (remote)
MINOR_REMOTE_MODIFY_ 0x157 Change the verification code of the
VERIFICATION_CODE system
MINOR_SET_MULTI_MASTER 0x201 Set main screen of multi-screen
controller
MINOR_SET_MULTI_SLAVE 0x202 Set slave screen of multi-screen
controller
MINOR_CANCEL_MULTI_MASTER 0x203 Cancel master screen of multi-screen
controller
MINOR_CANCEL_MULTI_SLAVE 0x204 Cancel slave screen of multi-screen
controller
MINOR_SCREEN_SET_INPUT 0x251 Edit input source
MINOR_SCREEN_SET_OUTPUT 0x252 Edit output channel
MINOR_SCREEN_SET_OSD 0x253 Edit virtual LED
MINOR_SCREEN_SET_LOGO 0x254 Edit LOGO

412
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_SCREEN_SET_LAYOUT 0x255 Set scene
MINOR_SCREEN_PICTUREPREVIEW 0x256 Display operation
MINOR_SCREEN_GET_OSD 0x257 Get virtual LED
MINOR_SCREEN_GET_LAYOUT 0x258 Get scene
MINOR_SCREEN_LAYOUT_CTRL 0x259 Scene control
MINOR_GET_ALL_VALID_WND 0x260 Get all the valid windows
MINOR_GET_SIGNAL_WND 0x261 Get single window information
MINOR_REMOTE_CLUSTER_MODE_ 0x261c Remote operation: cluster mode
CONFIG configuration
MINOR_LOCAL_CLUSTER_MODE_ 0x261d Local operation: cluster mode
CONFIG configuration
MINOR_REMOTE_CLUSTER_ 0x261e Remote operation: NVR in cluster
NETWORK_CONFIG configuration
MINOR_LOCAL_CLUSTER_NETWORK_ 0x261f Local operation: NVR in cluster
CONFIG configuration
MINOR_REMOTE_CLUSTER_ADD_ 0x2620 Remote operation: Add device to
DEVICE cluster
MINOR_WINDOW_CTRL 0x262 Window control
MINOR_LOCAL_CLUSTER_ADD_ 0x2621 Local operation: Add device to cluster
DEVICE
MINOR_REMOTE_CLUSTER_DEL_ 0x2622 Remote operation: Delete device
DEVICE from cluster
MINOR_LOCAL_CLUSTER_DEL_ 0x2623 Local operation: Delete device from
DEVICE cluster
MINOR_REMOTE_HFPD_CFG 0x2624 Remote operation: frequently
appeared person detection
configuration
MINOR_REMOTE_FACE_CONTRAST_ 0x2625 Remote operation: face picture
TASK comparison task configuration
MINOR_REMOTE_LFPD_CFG 0x2626 Remote configuration of low
frequency person detection
MINOR_REMOTE_IOTCFGFILE_INPUT 0x2627 Remote operation: import IoT
configuration file

413
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_REMOTE_IOTCFGFILE_ 0x2628 Remote operation: export IoT
OUTPUT configuration file
MINOR_LOCAL_IOT_ADD 0x2629 Local operation: add IoT channel
MINOR_REMOTE_IOT_ADD 0x262a Remote operation: add IoT channel
MINOR_LOCAL_IOT_DEL 0x262b Local operation: delete IoT channel
MINOR_REMOTE_IOT_DEL 0x262c Remote operation: delete IoT channel
MINOR_LOCAL_IOT_SET 0x262d Local operation: configure IoT channel
MINOR_REMOTE_IOT_SET 0x262e Remote operation: configure IoT
channel
MINOR_LOCAL_IOTCFGFILE_INPUT 0x262f Local operation: import IoT
configuration file
MINOR_LOCAL_IOTCFGFILE_OUTPUT 0x2630 Local operation: export IoT
configuration file
MINOR_GET_LAYOUT_LIST 0x263 Get scene list
MINOR_LOCAL_ADDRESS_FILTER_ 0x2633 Local address filter configuration
CONFIG
MINOR_REMOTE_ADDRESS_FILTER_ 0x2634 Remote address filter configuration
CONFIG
MINOR_LAYOUT_CTRL 0x264 Scene control
MINOR_SET_LAYOUT 0x265 Set single scene
MINOR_GET_SIGNAL_LIST 0x266 Get input signal source list
MINOR_GET_PLAN_LIST 0x267 Get plan list
MINOR_SET_PLAN 0x268 Edit plan
MINOR_CTRL_PLAN 0x269 Control plan
MINOR_CTRL_SCREEN 0x270 Screen control
MINOR_ADD_NETSIG 0x271 Add signal source
MINOR_SET_NETSIG 0x272 Edit signal source
MINOR_SET_DECBDCFG 0x273 Set decoding board parameters
MINOR_GET_DECBDCFG 0x274 Get decoding board parameters
MINOR_GET_DEVICE_STATUS 0x275 Get device information
MINOR_UPLOAD_PICTURE 0x276 Upload background

414
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_SET_USERPWD 0x277 Set password
MINOR_ADD_LAYOUT 0x278 Add scene
MINOR_DEL_LAYOUT 0x279 Delete scene
MINOR_DEL_NETSIG 0x280 Delete signal source
MINOR_ADD_PLAN 0x281 Add plan
MINOR_DEL_PLAN 0x282 Delete plan
MINOR_GET_EXTERNAL_MATRIX_CFG 0x283 Get external matrix settings
MINOR_SET_EXTERNAL_MATRIX_CFG 0x284 Set external matrix
MINOR_GET_USER_CFG 0x285 Get user settings
MINOR_SET_USER_CFG 0x286 Set user
MINOR_GET_DISPLAY_PANEL_LINK_ 0x287 Get video wall connection settings
CFG
MINOR_SET_DISPLAY_PANEL_LINK_ 0x288 Set video wall connection
CFG
MINOR_GET_WALLSCENE_PARAM 0x289 Get video wall scene
MINOR_SET_WALLSCENE_PARAM 0x28a Set video wall scene
MINOR_GET_CURRENT_WALLSCENE 0x28b Get current scene
MINOR_SWITCH_WALLSCENE 0x28c Scene switch
MINOR_LOCAL_LOAD_HDISK 0x300 Load HDD (local)
MINOR_LOCAL_DELETE_HDISK 0x301 Delete exception or nonexistence
HDD (local)
MINOR_REMOTE_CFG_POE_WORK_ 0x361 Remotely set PoE working mode
MODE
MINOR_LOCAL_CFG_POE_WORK_ 0x362 Locally set PoE working mode
MODE
MINOR_REMOTE_CFG_FACE_ 0x363 Remotely set face comparison
CONTRAST
MINOR_LOCAL_CFG_FACE_CONTRAST 0x364 Locally set face comparison
MINOR_REMOTE_CFG_WHITELIST_ 0x365 Remotely set face comparison in
FACE_CONTRAST whitelist

415
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_LOCAL_CFG_WHITELIST_ 0x366 Locally set face comparison in
FACE_CONTRAST whitelist
MINOR_REMOTE_OPEN_DOOR 0x400 Open door (remote)
MINOR_REMOTE_CLOSE_DOOR 0x401 Close door (remote)
MINOR_REMOTE_ALWAYS_OPEN 0x402 Remain open (remote)
MINOR_REMOTE_ALWAYS_CLOSE 0x403 Remain closed (remote)
MINOR_REMOTE_CHECK_TIME 0x404 Manual time synchronization
(remote)
MINOR_NTP_CHECK_TIME 0x405 NTP auto time synchronization
MINOR_REMOTE_CLEAR_CARD 0x406 Clear card No. (remote)
MINOR_REMOTE_RESTORE_CFG 0x407 Resume default parameters (remote)
MINOR_ALARMIN_ARM 0x408 Zone arming
MINOR_ALARMIN_DISARM 0x409 Zone disarming
MINOR_LOCAL_RESTORE_CFG 0x40a Resume default parameters (local)
MINOR_OFFLINE_DATA_OUTPUT 0x423 Exported offline collection data
MINOR_CREATE_SSH_LINK 0x42d Connected with SSH
MINOR_CLOSE_SSH_LINK 0x42e Disconnected with SSH
MINOR_SET_TRIGGERMODE_CFG 0x1001 Set trigger mode parameters
MINOR_GET_TRIGGERMODE_CFG 0x1002 Get trigger mode parameters
MINOR_SET_IOOUT_CFG 0x1003 Set IO output parameters
MINOR_GET_IOOUT_CFG 0x1004 Get IO output parameters
MINOR_GET_TRIGGERMODE_ 0x1005 Get recommended parameters of
DEFAULT trigger mode
MINOR_GET_ITCSTATUS 0x1006 Get status detection parameters
MINOR_SET_STATUS_DETECT_CFG 0x1007 Set status detection parameters
MINOR_GET_STATUS_DETECT_CFG 0x1008 Get status detection parameters
MINOR_GET_VIDEO_TRIGGERMODE_ 0x1009 Gt parameters of video e-police mode
CFG
MINOR_SET_VIDEO_TRIGGERMODE_ 0x100a Set parameters of video e-police
CFG mode

416
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_LOCAL_ADD_CAR_INFO 0x2001 Add vehicle information (local)
MINOR_LOCAL_MOD_CAR_INFO 0x2002 Edit vehicle information (local)
MINOR_LOCAL_DEL_CAR_INFO 0x2003 Delete vehicle information (local)
MINOR_LOCAL_FIND_CAR_INFO 0x2004 Search vehicle information (local)
MINOR_LOCAL_ADD_MONITOR_INFO 0x2005 Add arming information (local)
MINOR_LOCAL_MOD_MONITOR_ 0x2006 Edit arming information (local)
INFO
MINOR_LOCAL_DEL_MONITOR_INFO 0x2007 Delete arming information (local)
MINOR_LOCAL_FIND_MONITOR_ 0x2008 Search arming information (local)
INFO
MINOR_LOCAL_FIND_NORMAL_ 0x2009 Search normal passing information
PASS_INFO (local)
MINOR_LOCAL_FIND_ABNORMAL_ 0x200a Search abnormal passing information
PASS_INFO (local)
MINOR_LOCAL_FIND_PEDESTRIAN_ 0x200b Search normal passing information
PASS_INFO (local)
MINOR_LOCAL_PIC_PREVIEW 0x200c Preview local picture
MINOR_LOCAL_SET_GATE_PARM_ 0x200d Set local exit&entrance parameters
CFG
MINOR_LOCAL_GET_GATE_PARM_ 0x200e Get local exit&entrance parameters
CFG
MINOR_LOCAL_SET_DATAUPLOAD_ 0x200f Set local data uploading parameters
PARM_CFG
MINOR_LOCAL_GET_DATAUPLOAD_ 0x2010 Get local data uploading parameters
PARM_CFG
MINOR_LOCAL_DEVICE_CONTROL 0x2011 Control local device (Open/close
barrier)
MINOR_LOCAL_ADD_EXTERNAL_ 0x2012 Add peripheral information (local)
DEVICE_INFO
MINOR_LOCAL_MOD_EXTERNAL_ 0x2013 Edit peripheral information (local)
DEVICE_INFO
MINOR_LOCAL_DEL_EXTERNAL_ 0x2014 Delete peripheral information (local)
DEVICE_INFO

417
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_LOCAL_FIND_EXTERNAL_ 0x2015 Search peripheral information (local)
DEVICE_INFO
MINOR_LOCAL_ADD_CHARGE_RULE 0x2016 Add parking rule (local)
MINOR_LOCAL_MOD_CHARGE_RULE 0x2017 Edit parking rule (local)
MINOR_LOCAL_DEL_CHARGE_RULE 0x2018 Delete parking rule (local)
MINOR_LOCAL_FIND_CHARGE_RULE 0x2019 Search parking rule (local)
MINOR_LOCAL_COUNT_NORMAL_ 0x2020 Normal passing information statistics
CURRENTINFO (local)
MINOR_LOCAL_EXPORT_NORMAL_ 0x2021 Export normal passing information
CURRENTINFO_REPORT report (local)
MINOR_LOCAL_COUNT_ABNORMAL_ 0x2022 Abnormal passing information
CURRENTINFO statistics (local)
MINOR_LOCAL_EXPORT_ 0x2023 Export abnormal passing information
ABNORMAL_CURRENTINFO_REPORT report (local)
MINOR_LOCAL_COUNT_ 0x2024 Pedestrian passing information
PEDESTRIAN_CURRENTINFO statistics (local)
MINOR_LOCAL_EXPORT_ 0x2025 Export pedestrian passing information
PEDESTRIAN_CURRENTINFO_REPORT report (local)
MINOR_LOCAL_FIND_CAR_ 0x2026 Search vehicle passing fee
CHARGEINFO information (local)
MINOR_LOCAL_COUNT_CAR_ 0x2027 Vehicle passing fee information
CHARGEINFO statistics (local)
MINOR_LOCAL_EXPORT_CAR_ 0x2028 Export vehicle passing fee information
CHARGEINFO_REPORT report (local)
MINOR_LOCAL_FIND_SHIFTINFO 0x2029 Search shift information (local)
MINOR_LOCAL_FIND_CARDINFO 0x2030 Search card information (local)
MINOR_LOCAL_ADD_RELIEF_RULE 0x2031 Add discount rule (local)
MINOR_LOCAL_MOD_RELIEF_RULE 0x2032 Edit discount rule (local)
MINOR_LOCAL_DEL_RELIEF_RULE 0x2033 Delete discount rule (local)
MINOR_LOCAL_FIND_RELIEF_RULE 0x2034 Search discount rule (local)

418
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_LOCAL_GET_ENDETCFG 0x2035 Get configuration parameters for
entrance&exit station offline
detection (local)
MINOR_LOCAL_SET_ENDETCFG 0x2036 Set configuration parameters for
entrance&exit station offline
detection (local)
MINOR_LOCAL_SET_ENDEV_ 0x2037 Set card applying information for
ISSUEDDATA entrance&exit station (local)
MINOR_LOCAL_DEL_ENDEV_ 0x2038 Clear card applying information for
ISSUEDDATA entrance&exit station (local)
MINOR_REMOTE_DEVICE_CONTROL 0x2101 Remote device control
MINOR_REMOTE_SET_GATE_PARM_ 0x2102 Set entrance&exit parameters for
CFG remote configuration
MINOR_REMOTE_GET_GATE_PARM_ 0x2103 Get entrance&exit parameters for
CFG remote configuration
MINOR_REMOTE_SET_DATAUPLOAD_ 0x2104 Set data uploading parameters for
PARM_CFG remote configuration
MINOR_REMOTE_GET_DATAUPLOAD_ 0x2105 Get data uploading parameters for
PARM_CFG remote configuration
MINOR_REMOTE_GET_BASE_INFO 0x2106 Get terminal basic information
(remote)
MINOR_REMOTE_GET_OVERLAP_CFG 0x2107 Get text overlay parameters (remote)
MINOR_REMOTE_SET_OVERLAP_CFG 0x2108 Set text overlay parameters (remote)
MINOR_REMOTE_GET_ROAD_INFO 0x2109 Get crossing information (remote)
MINOR_REMOTE_START_TRANSCHAN 0x210a Build data synchronizing server
(remote)
MINOR_REMOTE_GET_ 0x210b Get entrance&exit terminal working
ECTWORKSTATE status (remote)
MINOR_REMOTE_GET_ECTCHANINFO 0x210c Get entrance&exit terminal channel
status (remote)
MINOR_REMOTE_ADD_EXTERNAL_ 0x210d Add peripheral information (remote)
DEVICE_INFO
MINOR_REMOTE_MOD_EXTERNAL_ 0x210e Edit peripheral information (remote)
DEVICE_INFO

419
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_REMOTE_GET_ENDETCFG 0x210f Get configuration parameters for
entrance&exit station offline
detection (remote)
MINOR_REMOTE_SET_ENDETCFG 0x2110 Set configuration parameters for
entrance&exit station offline
detection (remote)
MINOR_REMOTE_ENDEV_ 0x2111 Set card applying information for
ISSUEDDATA entrance&exit station (remote)
MINOR_REMOTE_DEL_ENDEV_ 0x2112 Clear card applying information for
ISSUEDDATA entrance&exit station (remote)
MINOR_REMOTE_ON_CTRL_LAMP 0x2115 Enable remote control parking
indicator
MINOR_REMOTE_OFF_CTRL_LAMP 0x2116 Disable remote control parking
indicator
MINOR_SET_VOICE_LEVEL_PARAM 0x2117 Set volume
MINOR_SET_VOICE_INTERCOM_ 0x2118 Set recording volume
PARAM
MINOR_SET_INTELLIGENT_PARAM 0x2119 VCA configuration
MINOR_LOCAL_SET_RAID_SPEED 0x211a Set raid speed (local)
MINOR_REMOTE_SET_RAID_SPEED 0x211b Set raid speed (remote)
MINOR_REMOTE_CREATE_STORAGE_ 0x211c Add storage pool (remote)
POOL
MINOR_REMOTE_DEL_STORAGE_ 0x211d Delete storage pool (remote)
POOL
MINOR_REMOTE_DEL_PIC 0x2120 Delete picture data (remote)
MINOR_REMOTE_DEL_RECORD 0x2121 Delete recording data (remote)
MINOR_REMOTE_CLOUD_ENABLE 0x2123 Enable cloud storage (remote)
MINOR_REMOTE_CLOUD_DISABLE 0x2124 Disable cloud storage (remote)
MINOR_REMOTE_CLOUD_MODIFY_ 0x2125 Edit cloud storage pool parameters
PARAM (remote)
MINOR_REMOTE_CLOUD_MODIFY_ 0x2126 Edit cloud storage pool capacity
VOLUME (remote)

420
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_REMOTE_CREATE_MOD_ 0x2200 Create/edit image library space
VIEWLIB_SPACE (remote)
MINOR_REMOTE_DELETE_VIEWLIB_ 0x2201 Delete image library file (remote)
FILE
MINOR_REMOTE_DOWNLOAD_ 0x2202 Download image library file(s)
VIEWLIB_FILE (remote)
MINOR_REMOTE_UPLOAD_VIEWLIB_ 0x2203 Upload image library file(s) (remote)
FILE
MINOR_LOCAL_CREATE_MOD_ 0x2204 Create/edit image library space (local)
VIEWLIB_SPACE
MINOR_REMOTE_CONFERENCE_ 0x2501 MCU meeting configuration
CONFIG
MINOR_REMOTE_TERMINAL_CONFIG 0x2502 MCU terminal configuration
MINOR_REMOTE_GROUP_CONFIG 0x2503 MCU group configuration
MINOR_REMOTE_CONFERENCE_CTRL 0x2504 MCU meeting control
MINOR_REMOTE_TERMINAL_CTRL 0x2505 MCU terminal control
MINOR_LOCAL_RESET_LOGIN_ 0x2600 Reset password for admin user (local)
PASSWORD
MINOR_REMOTE_RESET_LOGIN_ 0x2601 Reset password for admin user
PASSWORD (remote)
MINOR_LOCAL_FACE_BASE_CREATE 0x2602 Create local face picture library
MINOR_REMOTE_FACE_BASE_CREATE 0x2603 Create remote face picture library
MINOR_LOCAL_FACE_BASE_MODIFY 0x2604 Edit local face picture library
MINOR_REMOTE_FACE_BASE_ 0x2605 Edit remote face picture library
MODIFY
MINOR_LOCAL_FACE_BASE_DELETE 0x2606 Delete local face picture library
MINOR_REMOTE_FACE_BASE_DELETE 0x2607 Delete remote face picture library
MINOR_LOCAL_FACE_DATA_APPEND 0x2608 Add face data locally
MINOR_REMOTE_FACE_DATA_ 0x2609 Add face data remotely
APPEND
MINOR_LOCAL_FACE_DATA_SEARCH 0x2610 Search local face comparison data

421
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_REMOTE_FACE_DATA_ 0x2611 Search remote face comparison data
SEARCH
MINOR_LOCAL_FACE_DATA_ANALYSIS 0x2612 Analysis picture locally
MINOR_REMOTE_FACE_DATA_ 0x2613 Analysis picture remotely
ANALYSIS
MINOR_LOCAL_FACE_DATA_EDIT 0x2614 Edit local face data
MINOR_REMOTE_FACE_DATA_EDIT 0x2615 Edit remote face data
MINOR_LOCAL_FACE_DATA_DELETE 0x2616 Delete local face data
MINOR_REMOTE_FACE_DATA_DELET 0x2617 Delete remote face data
MINOR_LOCAL_VCA_ANALYSIS_CFG 0x2618 Set local intelligent analysis
MINOR_REMOTE_VCA_ANALYSIS_CFG 0x2619 Set remote intelligent analysis
MINOR_LOCAL_FACE_BASE_IMPORT 0x261a Import face picture library locally
MINOR_LOCAL_FACE_BASE_EXPORT 0x261b Export face picture library locally
MINOR_LOCAL_AUTO_SWITCH_ 0x2647 Configure auto power on or off locally
CONFIG
MINOR_REMOTE_AUTO_SWITCH_ 0x2648 Configure auto power on or off
CONFIG remotely
MINOR_REMOTE_CFG_WIRELESS_ 0x36c Configure wireless dial-up parameters
DIALPARAM remotely
MINOR_LOCAL_CFG_WIRELESS_ 0x36d Configure wireless dial-up parameters
DIALPARAM locally
MINOR_REMOTE_CFG_WIRELESS_ 0x36e Configure wireless message
SMSPARAM parameters remotely
MINOR_LOCAL_CFG_WIRELESS_ 0x36f Configure wireless message
SMSPARAM parameters locally
MINOR_REMOTE_CFG_WIRELESS_ 0x370 Configure SMS self-service
SMSSElFHELP parameters remotely
MINOR_LOCAL_CFG_WIRELESS_ 0x371 Configure SMS self-service
SMSSElFHELP parameters locally
MINOR_REMOTE_CFG_WIRELESS_ 0x372 Configure wireless traffic parameters
NETFLOWPARAM remotely

422
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_LOCAL_CFG_WIRELESS_ 0x373 Configure wireless traffic parameters
NETFLOWPARAM locally
MINOR_LOCAL_EZVIZ_OPERATION 0x2671 Local EZVIZ operations
MINOR_REMOTE_EZVIZ_OPERATION 0x2672 Remote EZVIZ operations

MAJOR_INFORMATION
Table A-4 Minor Types of Additional Information Log
Log Minor Type Value Description
MINOR_HDD_INFO 0xa1 HDD Information
MINOR_SMART_INFO 0xa2 S.M.A.R.T Information
MINOR_REC_START 0xa3 Start recording
MINOR_REC_STOP 0xa4 Stop recording
MINOR_REC_OVERDUE 0xa5 Delete expired video files
MINOR_LINK_START 0xa6 Connect front-end device
MINOR_LINK_STOP 0xa7 Disconnect front-end device
MINOR_NET_DISK_INFO 0xa8 Network HDD information
MINOR_RAID_INFO 0xa9 raid related information
MINOR_RUN_STATUS_INFO 0xaa System running status information
MINOR_SPARE_START_BACKUP 0xab Hot spare system starts backing up
working device
MINOR_SPARE_STOP_BACKUP 0xac Hot spare system stops backing up
working device
MINOR_SPARE_CLIENT_INFO 0xad Hot spare customer device
information
MINOR_ANR_RECORD_START 0xae Start ANR recording
MINOR_ANR_RECORD_END 0xaf Stop ANR recording
MINOR_ANR_ADD_TIME_QUANTUM 0xb0 Add ANR time period
MINOR_ANR_DEL_TIME_QUANTUM 0xb1 Delete ANR time period
MINOR_PIC_REC_START 0xb3 Start capturing
MINOR_PIC_REC_STOP 0xb4 Stop Capturing
MINOR_PIC_REC_OVERDUE 0xb5 Delete expired picture

423
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_CLIENT_LOGIN 0xb6 Logging in to server completed
MINOR_CLIENT_RELOGIN 0xb7 Log in to server again
MINOR_CLIENT_LOGOUT 0xb8 Exiting server completed
MINOR_CLIENT_SYNC_START 0xb9 Start Synchronous Recording
MINOR_CLIENT_SYNC_STOP 0xba Stop Synchronous Recording
MINOR_CLIENT_SYNC_SUCC 0xbb Synchronous Recording Completed
MINOR_CLIENT_SYNC_EXCP 0xbc Synchronous recording exception
MINOR_GLOBAL_RECORD_ERR_INFO 0xbd Global Error Information
MINOR_BUFFER_STATE 0xbe Buffer Status Log File
MINOR_DISK_ERRORINFO_V2 0xbf HDD Error Details V2
MINOR_UNLOCK_RECORD 0xc3 Lock Record
MINOR_VIS_ALARM 0xc4 Zone Alarm
MINOR_TALK_RECORD 0xc5 Calling Record
MINOR_ACCESSORIES_MESSAGE 0xc6 Accessories Information
MINOR_IPC_CONNECT 0xc8 Network connection information
MINOR_INTELLIGENT_BOARD_ 0xc9 Intelligent board status
STATUS
MINOR_IPC_CONNECT_STATUS 0xca Network camera connection status
MINOR_EZVIZ_OPERATION 0xcc EZVIZ Running Status
MINOR_CLUSTER_DEVICE_ONLINE 0xcd Cluster device is online
MINOR_CLUSTER_MGR_SERVICE_ 0xce Cluster management service is
STARTUP enabled
MINOR_CLUSTER_BUSINESS_ 0xcf Cluster migration
TRANSFER
MINOR_CLUSTER_STATUS 0xd0 Cluster status information
MINOR_CLUSTER_CS_STATUS 0xd1 Sending device status to CM failed.
Record the IP address of CS and CM.
MINOR_CLUSTER_CM_STATUS 0xd2 CM status switching.
MINOR_DOUBLE_VERIFICATION_PASS 0xd5 Double verification completed
MINOR_HD_FORMAT_START 0xd8 Formatting HDD started.

424
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_HD_FORMAT_STOP 0xd9 Formatting HDD stopped.
MINOR_802_1X_AUTH_SUCC 0x320 802.1x authentication succeeded.
MINOR_802_1X_AUTH_FAIL 0x321 802.1x authentication failed.
MINOR_LIVE_DETECT_OPEN 0x400 Enabled face anti-​spoofing detection
MINOR_LIVE_DETECT_CLOSE 0x401 Disabled face anti-​spoofing detection
MINOR_CLEAR_DATA_COLLECTION 0x402 Cleared collected data
MINOR_DELETE_DATA_COLLECTION 0x403 Deleted collected data
MINOR_EXPORT_DATA_COLLECTION 0x404 Exported collected data
MINOR_CARD_LEN_CONFIG 0x405 Configured card number size
MINOR_DATA_BASE_INIT_FAILED 0x406 Initializing database failed
MINOR_DATA_BASE_PATCH_UPDATE 0x407 Upgraded database patch
MINOR_PSAM_CARD_INSERT 0x408 Inserted PSAM card
MINOR_PSAM_CARD_REMOVE 0x409 Pulled out PSAM card
MINOR_HARD_FAULT_REBOOT 0x40a Reboot as hardware exception
MINOR_PSAM_CARD_OCP 0x40b Overflow protection of PSAM card
MINOR_STACK_OVERFLOW 0x40c Stack overflow
MINOR_PARM_CFG 0x40d Parameter configuration
MINOR_CLR_USER 0x40e Clear all users
MINOR_CLR_CARD 0x40f Clear all cards
MINOR_CLR_FINGER_BY_READER 0x410 Clear all fingerprints by fingerprint
and card reader
MINOR_CLR_FINGER_BY_CARD 0x411 Clear all fingerprints by card No.
MINOR_CLR_FINGER_BY_EMPLOYEE_ 0x412 Clear all fingerprints by employee ID
ON
MINOR_DEL_FINGER 0x413 Delete a fingerprint
MINOR_CLR_WEEK_PLAN 0x414 Clear week schedules of access
permission control
MINOR_SET_WEEK_PLAN 0x415 Set the week schedule of access
permission control

425
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_SET_HOLIDAY_PLAN 0x416 Set the holiday schedule of access
permission control
MINOR_CLR_HOLIDAY_PLAN 0x417 Clear holiday schedules of access
permission control
MINOR_SET_HOLIDAY_GROUP 0x418 Set the holiday group of access
permission control schedule
MINOR_CLR_HOLIDAY_GROUP 0x419 Clear holiday groups of access
permission control schedule
MINOR_CLR_TEMPLATE_PLAN 0x41a Clear access permission control
schedules
MINOR_SET_TEMPLATE_PLAN 0x41b Set the access permission control
schedule
MINOR_ADD_CARD 0x41c Add a card
MINOR_MOD_CARD 0x41d Edit a card
MINOR_ADD_FINGER_BY_CARD 0x41e Add a fingerprint by card No.
MINOR_ADD_FINGER_BY_ 0x41f Add a fingerprint by employee ID
EMPLOYEE_NO
MINOR_MOD_FINGER_BY_CARD 0x420 Edit a fingerprint by card No.
MINOR_MOD_FINGER_BY_ 0x421 Edit a fingerprint by employee ID
EMPLOYEE_NO
MINOR_IMPORT_USER_LIST 0x422 Imported user list (offline data
collection)
MINOR_WIRELESS_RUNNING_STATUS 0xd6 Wireless network running status

MAJOR_EVENT
Table A-5 Minor Types of Event Log
Log Minor Type Value Description
MINOR_LEGAL_CARD_PASS 0x01 Legal Card Authenticated
MINOR_CARD_AND_PSW_PASS 0x02 Card and Password Authenticated
MINOR_CARD_AND_PSW_FAIL 0x03 Card and password authentication
failed.
MINOR_CARD_AND_PSW_TIMEOUT 0x04 Card and password authentication
timed out.

426
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_CARD_AND_PSW_OVER_ 0x05 Card and password timed out.
TIME
MINOR_CARD_NO_RIGHT 0x06 No Permission
MINOR_CARD_INVALID_PERIOD 0x07 Invalid Duration
MINOR_CARD_OUT_OF_DATE 0x08 Expired Card
MINOR_INVALID_CARD 0x09 No card No.
MINOR_ANTI_SNEAK_FAIL 0x0a Anti-passing back authentication
failed.
MINOR_INTERLOCK_DOOR_NOT_ 0x0b Interlocking Door Not Closed
CLOSE
MINOR_NOT_BELONG_MULTI_ 0x0c The card does not belong to multiple
GROUP authentication group.
MINOR_INVALID_MULTI_VERIFY_ 0x0d The card is not in the multiple
PERIOD authentication duration.
MINOR_MULTI_VERIFY_SUPER_ 0x0e Multiple Authentication: Super
RIGHT_FAIL Permission Authentication Failed
MINOR_MULTI_VERIFY_REMOTE_ 0x0f Multiple Authentication: Remote
RIGHT_FAIL Authentication Failed
MINOR_MULTI_VERIFY_SUCCESS 0x10 Pass Multiple Authentication
MINOR_LEADER_CARD_OPEN_BEGIN 0x11 Open Door with First Card Started
MINOR_LEADER_CARD_OPEN_END 0x12 Open Door with First Card Stopped
MINOR_ALWAYS_OPEN_BEGIN 0x13 Remain Open Started
MINOR_ALWAYS_OPEN_END 0x14 Remain Open Stopped
MINOR_LOCK_OPEN 0x15 Unlock Door
MINOR_LOCK_CLOSE 0x16 Lock Door
MINOR_DOOR_BUTTON_PRESS 0x17 Press Door Button
MINOR_DOOR_BUTTON_RELEASE 0x18 Release Door Button
MINOR_DOOR_OPEN_NORMAL 0x19 Normal Open (Door Magnetic)
MINOR_DOOR_CLOSE_NORMAL 0x1a Normal Closed (Door Magnetic)
MINOR_DOOR_OPEN_ABNORMAL 0x1b Abnormal Open (Door Magnetic)
MINOR_DOOR_OPEN_TIMEOUT 0x1c Open Door Timeout (Door Magnetic)

427
Device Network SDK (Access Control on Card) Developer Guide

Log Minor Type Value Description


MINOR_ALARMOUT_ON 0x1d Alarm Output On
MINOR_ALARMOUT_OFF 0x1e Alarm Output Off
MINOR_ALWAYS_CLOSE_BEGIN 0x1f Remain Open Started
MINOR_ALWAYS_CLOSE_END 0x20 Remain Open Stopped
MINOR_MULTI_VERIFY_NEED_ 0x21 Multiple Authentication: Remote
REMOTE_OPEN Open Door
MINOR_MULTI_VERIFY_ 0x22 Multiple Authentication: Super
SUPERPASSWD_VERIFY_SUCCESS Password Authentication Passed
MINOR_MULTI_VERIFY_REPEAT_ 0x23 Multiple Authentication: Repeat
VERIFY Authentication
MINOR_MULTI_VERIFY_TIMEOUT 0x24 Multiple Authentication: Repeat
Authentication Event

A.5 ISAPI Response Codes


The response codes returned during ISAPI integration is based on the status codes of HTTP
protocol. 7 kinds of status codes are predefined, including 1 (OK), 2 (Device Busy), 3 (Device Error),
4 (Invalid Operation), 5 (Invalid Message Format), 6 (Invalid Message Content), and 7 (Reboot
Required). Each kind of status code contains multiple sub status codes, and the response codes are
in a one-to-one correspondence with the sub status codes.

StatusCode=1

SubStatusCode Error Code Description


ok 0x1 Operation completed.
riskPassword 0x10000002 Risky password.
armProcess 0x10000005 Arming process.

StatusCode=2

Sub Status Code Error Code Description


noMemory 0x20000001 Insufficient memory.
serviceUnavailable 0x20000002 The service is not available.
upgrading 0x20000003 Upgrading.

428
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


deviceBusy 0x20000004 The device is busy or no
response.
reConnectIpc 0x20000005 The video server is
reconnected.
transferUpgradePackageFailed 0x20000006 Transmitting device upgrade
data failed.
startUpgradeFailed 0x20000007 Starting upgrading device
failed.
getUpgradeProcessfailed. 0x20000008 Getting upgrade status failed.
certificateExist 0x2000000B The Authentication certificate
already exists.

StatusCode=3

Sub Status Code Error Code Description


deviceError 0x30000001 Hardware error.
badFlash 0x30000002 Flash operation error.
28181Uninitialized 0x30000003 The 28181 configuration is not
initialized.
socketConnectError 0x30000005 Connecting to socket failed.
receiveError 0x30000007 Receive response message
failed.
deletePictureError 0x3000000A Deleting picture failed.
pictureSizeExceedLimit 0x3000000C Too large picture size.
clearCacheError 0x3000000D Clearing cache failed.
updateDatabasError 0x3000000F Updating database failed.
searchDatabaseError 0x30000010 Searching in the database
failed.
writeDatabaseError 0x30000011 Writing to database failed.
deleteDatabaseError 0x30000012 Deleting database element
failed.
searchDatabaseElementError 0x30000013 Getting number of database
elements failed.

429
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


cloudAutoUpgradeException 0x30000016 Downloading upgrade packet
from cloud and upgrading
failed.
HBPException 0x30001000 HBP exception.
UDEPException 0x30001001 UDEP exception
elasticSearchException 0x30001002 Elastic exception.
kafkaException 0x30001003 Kafka exception.
HBaseException 0x30001004 Hbase exception.
sparkException 0x30001005 Spark exception.
yarnException 0x30001006 Yarn exception.
cacheException 0x30001007 Cache exception.
trafficException 0x30001008 Monitoring point big data
server exception.
faceException 0x30001009 Human face big data server
exception.
SSDFileSystemIsError 0x30001013 SSD file system error (Error
occurs when it is non-Ext4 file
system)
insufficientSSDCapacityForFPD 0x30001014 Insufficient SSD space for
person frequency detection
wifiException 0x3000100A Wi-Fi big data server exception.
structException 0x3000100D Video parameters structure
server exception.
captureTimeout 0x30006000 Data collection timed out.
lowScore 0x30006001 Low quality of collected data.
uploadingFailed 0x30007004 Uploading failed.

StatusCode=4

Sub Status Code Error Code Description


notSupport 0x40000001 Not supported.
lowPrivilege 0x40000002 No permission.

430
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


badAuthorization 0x40000003 Authentication failed.
methodNotAllowed 0x40000004 Invalid HTTP method.
notSetHdiskRedund 0x40000005 Setting spare HDD failed.
invalidOperation 0x40000006 Invalid operation.
hdFormatFail \ Formatting HDD failed.
notActivated 0x40000007 Inactivated.
hasActivated 0x40000008 Activated.
certificateAlreadyExist 0x40000009 The certificate already exists.
operateFailed 0x4000000F Operation failed.
USBNotExist 0x40000010 USB device is not connected.
upgradePackageMoret 0x40001000 Up to 2GB upgrade package is allowed to be
han2GB uploaded.
IDNotexist 0x40001001 The ID does not exist.
synchronizationError 0x40001003 Synchronization failed.
synchronizing 0x40001004 Synchronizing.
importError 0x40001005 Importing failed.
importing 0x40001006 Importing.
fileAlreadyExists 0x40001007 The file already exists.
invalidID 0x40001008 Invalid ID.
backupnodeNotAllowe 0x40001009 Accessing to backup node is not allowed.
Log
exportingError 0x4000100A Exporting failed.
exporting 0x4000100B Exporting.
exportEnded 0x4000100C Exporting stopped.
exported 0x4000100D Exported.
IPOccupied 0x4000100E The IP address is already occupied.
IDAlreadyExists 0x4000100F The ID already exists.
exportItemsExceedLimi 0x40001010 No more items can be exported.
t

431
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


noFiles 0x40001011 The file does not exist.
beingExportedByAnoth 0x40001012 Being exported by others.
erUser
needReAuthentication 0x40001013 Authentication is needed after upgrade.
unitAddNotOnline 0x40001015 The added data analysis server is offline.
unitControl 0x40001016 The data analysis server is already added.
analysis unitFull 0x40001017 No more data analysis server can be added.
unitIDError 0x40001018 The data analysis server ID does not exist.
unitExit 0x40001019 The data analysis server already exists in the
list.
unitSearch 0x4000101A Searching data analysis server in the list failed.
unitNotOnline 0x4000101B The data analysis server is offline.
unitInfoEror 0x4000101C Getting data analysis server information failed.
unitGetNodeInfoError 0x4000101D Getting node information failed.
unitGetNetworkInfoErr 0x4000101E Getting the network information of data
or analysis server failed
unitSetNetworkInfoErr 0x4000101F Setting the network information of data analysis
or server failed
setSmartNodeInfoError 0x40001020 Setting node information failed.
setUnitNetworkInfoErr 0x40001021 Setting data analysis server network
or information failed.
unitRestartCloseError 0x40001022 Rebooting or shutting down data analysis server
failed.
virtualIPnotAllowed 0x40001023 Adding virtual IP address is not allowed.
unitInstalled 0x40001024 The data analysis server is already installed.
badSubnetMask 0x40001025 Invalid subnet mask.
uintVersionMismatche 0x40001026 Data analysis server version mismatches.
d
deviceMOdelMismatch 0x40001027 Adding failed. Device model mismatches.
ed
unitAddNotSelf 0x40001028 Adding peripherals is not allowed.

432
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


noValidUnit 0x40001029 No valid data analysis server.
unitNameDuplicate 0x4000102A Duplicated data analysis server name.
deleteUnitFirst 0x4000102B Delete the added data analysis server of the
node first.
getLocalInfoFailed 0x4000102C Getting the server information failed.
getClientAddedNodeFa 0x4000102D Getting the added node information of data
iled analysis server failed.
taskExit 0x4000102E The task already exists.
taskInitError 0x4000102F Initializing task failed.
taskSubmitError 0x40001030 Submiting task failed.
taskDelError 0x40001031 Deleting task failed.
taskPauseError 0x40001032 Pausing task failed.
taskContinueError 0x40001033 Starting task failed.
taskSeverNoCfg 0x40001035 Full-text search server is not configured.
taskPicSeverNoCfg 0x40001036 The picture server is not configured.
taskStreamError 0x40001037 Streaming information exception.
taskRecSDK 0x40001038 History recording is not supported.
taskCasaError 0x4000103A Cascading is not supported.
taskVCARuleError 0x4000103B Invalid VCA rule.
taskNoRun 0x4000103C The task is not executed.
unitLinksNoStorageNo 0x4000103D No node is linked with the data analysis server.
de Configure the node first.
searchFailed 0x4000103E Searching video files failed.
searchNull 0x4000103F No video clip.
userScheOffline 0x40001040 The task scheduler service is offline.
updateTypeUnmatche 0x40001041 The upgrade package type mismatches.
d
userExist 0x40001043 The user already exists.
userCannotDelAdmin 0x40001044 The administrator cannot be deleted.
userInexistence 0x40001045 The user name does not exist.

433
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


userCannotCreatAdmi 0x40001046 The administrator cannot be created.
n
monitorCamExceed 0x40001048 Up to 3000 cameras can be added.
monitorCunitOverLimit 0x40001049 Adding failed. Up to 5 lower-levels are
supported by the control center.
monitorReginOverLimit 0x4000104A Adding failed. Up to 5 lower-levels are
supported by the area.
monitorArming 0x4000104B The camera is already armed. Disarm the
camera and try again.
monitorSyncCfgNotSet 0x4000104C The system parameters are not configured.
monitorFdSyncing 0x4000104E Synchronizing. Try again after completing the
synchronization.
monitorParseFailed 0x4000104F Parsing camera information failed.
monitorCreatRootFaile 0x40001050 Creating resource node failed.
d
deleteArmingInfo 0x40001051 The camera is already . Disarm the camera and
try again.
cannotModify 0x40001052 Editing is not allowed. Select again.
cannotDel 0x40001053 Deletion is not allowed. Select again.
deviceExist 0x40001054 The device already exists.
IPErrorConnectFailed 0x40001056 Connection failed. Check the network port.
cannotAdd 0x40001057 Only the capture cameras can be added.
serverExist 0x40001058 The server already exists.
fullTextParamError 0x40001059 Incorrect full-text search parameters.
storParamError 0x4000105A Incorrect storage server parameters.
picServerFull 0x4000105B The storage space of picture storage server is
full.
NTPUnconnect 0x4000105C Connecting to NTP server failed. Check the
parameters.
storSerConnectFailed 0x4000105D Connecting to storage server failed. Check the
network port.

434
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


storSerLoginFailed 0x4000105E Logging in to storage server failed. Check the
user name and password.
searchSerConnectFaile 0x4000105F Connecting to full-text search server failed.
d Check the network port.
searchSerLoginFailed 0x40001060 Logging in to full-text search server failed.
Check the user name and password.
kafkaConnectFailed 0x40001061 Connecting to Kafka failed. Check the network
port.
mgmtConnectFailed 0x40001062 Connecting to system failed. Check the network
port.
mgmtLoginFailed 0x40001063 Logging in to system failed. Check the user
name and password.
TDAConnectFailed 0x40001064 Connecting to traffic data access server failed.
Checking the server status.
86sdkConnectFailed 0x40001065 Connecting to listening port of iVMS-8600
System failed. Check the parameters.
nameExist 0x40001066 Duplicated server name.
batchProcessFailed 0x40001067 Processing in batch failed.
IDNotExist 0x40001068 The server ID does not exist.
serviceNumberReache 0x40001069 No more service can be added.
sLimit
invalidServiceType. 0x4000106A Invalid service type.
clusterGetInfo 0x4000106B Getting cluster group information failed.
clusterDelNode 0x4000106C Deletion node failed.
clusterAddNode 0x4000106D Adding node failed.
clusterInstalling 0x4000106E Creating cluster…Do not operate.
clusterUninstall 0x4000106F Reseting cluster…Do not operate.
clusterInstall 0x40001070 Creating cluster failed.
clusterIpError 0x40001071 Invalid IP address of task scheduler server.
clusterNotSameSeg 0x40001072 The master node and slave node must be in the
same network segment.

435
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


clusterVirIpError 0x40001073 Automatically getting virtual IP address failed.
Enter manually.
clusterNodeUnadd 0x40001074 The specified master(slave) node is not added.
clusterNodeOffline 0x40001075 The task scheduler server is offline.
nodeNotCurrentIP 0x40001076 The analysis node of the current IP address is
required when adding master and slave nodes.
addNodeNetFailed 0x40001077 Adding node failed. The network disconnected.
needTwoMgmtNode 0x40001078 Two management nodes are required when
adding master and slave nodes.
ipConflict 0x40001079 The virtual IP address and data analysis server's
IP address conflicted.
ipUsed 0x4000107A The virtual IP address has been occupied.
cloudAlalyseOnline 0x4000107B The cloud analytic server is online.
virIP&mainIPnotSame 0x4000107C The virtual IP address is not in the same
NetSegment network segment with the IP address of
master/slave node.
getNodeDispatchInfoFa 0x4000107D Getting node scheduler information failed.
iled
unableModifyManage 0x4000107E Editing management network interface failed.
mentNetworkIP The analysis board is in the cluster.
notSpecifyVirtualIP 0x4000107F Virtual IP address should be specified for
master and slave cluster.
armingFull 0x40001080 No more device can be armed.
armingNoFind 0x40001081 The arming information does not exist.
disArming 0x40001082 Disarming failed.
getArmingError 0x40001084 Getting arming information failed.
refreshArmingError 0x40001085 Refreshing arming information failed.
ArmingPlateSame 0x40001086 The license plate number is repeatedly armed.
ArmingParseXLSError 0x40001087 Parsing arming information file failed.
ArmingTimeError 0x40001088 Invalid arming time period.
ArmingSearchTimeErro 0x40001089 Invalid search time period.
r

436
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


armingRelationshipRea 0x4000108A No more relation can be created.
chesLimit
duplicateAarmingNam 0x4000108B The relation name already exists.
e
noMoreArmingListAdd 0x4000108C No more blacklist library can be armed.
ed
noMoreCamerasAdded 0x4000108D No more camera can be armed.
noMoreArmingListAdd 0x4000108E No more library can be linked to the camera.
edWithCamera
noMoreArmingPeriodA 0x4000108F No more time period can be added to the
dded arming schedule.
armingPeriodsOverlap 0x40001090 The time periods in the arming schedule are
ped overlapped.
noArmingAlarmInfo 0x40001091 The alarm information does not exist.
armingAlarmUnRead 0x40001092 Getting number of unread alarms failed.
getArmingAlarmError 0x40001093 Getting alarm information failed.
searchByPictureTimed 0x40001094 Searching picture by picture timeout. Search
Out again.
comparisonTimeRange 0x40001095 Comparison time period error.
Error
selectMonitorNumber 0x40001096 No more monitoring point ID can be filtered.
UpperLimit
noMoreComparisonTas 0x40001097 No more comparison task can be executed at
ksAdded the same time.
GetComparisonResultF 0x40001098 Getting comparison result failed.
ailed
comparisonTypeError 0x40001099 Comparison type error.
comparisonUnfinished 0x4000109A The comparison is not completed.
facePictureModelInvali 0x4000109B Invalid face model.
d
duplicateLibraryName. 0x4000109C The library name already exists.
noRecord 0x4000109D No record found.

437
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


countingRecordsFailed. 0x4000109E Calculate the number of records failed.
getHumanFaceFrameF 0x4000109F Getting face thumbnail from the picture failed.
ailed
modelingFailed. 0x400010A0 Modeling face according to picture URL failed.
1V1FacePictureCompar 0x400010A1 Comparison 1 VS 1 face picture failed.
isonFailed
libraryArmed 0x400010A2 The blacklist library is armed.
licenseExeedLimit 0x400010A3 Dongle limited.
licenseExpired 0x400010A4 Dongle expired.
licenseDisabled 0x400010A5 Unavailable dongle.
licenseNotExist 0x400010A6 The dongle does not exist.
SessionExpired 0x400010A7 Session expired .
beyondConcurrentLimi 0x400010A8 Out of concurrent limit.
t
stopSync 0x400010A9 Synchronization stopped.
getProgressFaild 0x400010AA Getting progress failed.
uploadExtraCaps 0x400010AB No more files can be uploaded.
timeRangeError 0x400010AC Time period error.
dataPortNotConnected 0x400010AD The data port is not connected.
addClusterNodeFailed 0x400010AE Adding to the cluster failed. The device is
already added to other cluster.
taskNotExist 0x400010AF The task does not exist.
taskQueryFailed 0x400010B0 Searching task failed.
modifyTimeRuleFailed 0x400010B2 The task already exists. Editing time rule is not
allowed.
modifySmartRuleFailed 0x400010B3 The task already exists. Editing VAC rule is not
allowed.
queryHistoryVideoFaile 0x400010B4 Searching history video failed.
d
addDeviceFailed 0x400010B5 Adding device failed.
addVideoFailed 0x400010B6 Adding video files failed.

438
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


deleteAllVideoFailed 0x400010B7 Deleting all video files failed.
createVideoIndexFailed 0x400010B8 Indexing video files failed.
videoCheckTypeFailed 0x400010B9 Verifying video files types failed.
configStructuredAddre 0x400010BA Configuring IP address of structured server
ssFailed failed.
configPictureServerAd 0x400010BB Configuring IP address of picture storaged
dressFailed server failed.
storageServiceIPNotExi 0x400010BD The storage server IP address does not exist.
st
syncBackupDatabaseFa 0x400010BE Synchronizing slave database failed. Try again.
iled
syncBackupNTPTimeFa 0x400010BF Synchronizing NTP time of slave server failed.
iled
clusterNotSelectLoopb 0x400010C0 Loopbacl address is not supported by the
ackAddress master or slave cluster.
addFaceRecordFailed 0x400010C1 Adding face record failed.
deleteFaceRecordFaile 0x400010C2 Deleting face record failed.
d
modifyFaceRecordFaile 0x400010C3 Editing face record failed.
d
queryFaceRecordFailed 0x400010C4 Searching face record failed.
faceDetectFailed 0x400010C5 Detecting face failed.
libraryNotExist 0x400010C6 The library does not exist.
blackListQueryExportin 0x400010C7 Exporting matched blacklists.
g
blackListQueryExporte 0x400010C8 The matched blacklists are exported.
d
blackListQueryStopExp 0x400010C9 Exporting matched blacklists is stopped.
orting
blackListAlarmQueryEx 0x400010CA Exporting matched blacklist alarms.
porting
blackListAlarmQueryEx 0x400010CB The matched blacklists alarms are exported.
ported

439
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


blackListAlarmQuerySt 0x400010CC Exporting matched blacklist alarms is stopped.
opExporting
getBigDataCloudAnalys 0x400010CD Getting big data cloud analytic information
isFailed failed.
setBigDataCloudAnalys 0x400010CE Configuring big data cloud analytic failed.
isFailed
submitMapSearchFaile 0x400010CF Submitting search by picture task failed.
d
controlRelationshipNot 0x400010D0 The relation does not exist.
Exist
getHistoryAlarmInfoFai 0x400010D1 Getting history alarm information failed.
led
getFlowReportFailed 0x400010D2 Getting people counting report failed.
addGuardFailed 0x400010D3 Adding arming configuration failed.
deleteGuardFailed 0x400010D4 Deleting arming configuration failed.
modifyGuardFailed 0x400010D5 Editing arming configuration failed.
queryGuardFailed 0x400010D6 Searching arming configurations failed.
uploadUserSuperCaps 0x400010D7 No more user information can be uploaded.
bigDataServerConnect 0x400010D8 Connecting to big data server failed.
Failed
microVideoCloudRequ 0x400010D9 Adding response information of micro video
estInfoBuildFailed cloud failed.
microVideoCloudRespo 0x400010DA Parsing response information of micro video
nseInfoBuildFailed cloud failed.
transcodingServerRequ 0x400010DB Adding response information of transcoding
estInfoBuildFailed server failed.
transcodingServerResp 0x400010DC Parsing response information of transcoding
onseInfoParseFailed server failed.
transcodingServerOffli 0x400010DD Transcoding server is offline.
ne
microVideoCloudOfflin 0x400010DE Micro video cloud is offline.
e
UPSServerOffline 0x400010DF UPS monitor server is offline.

440
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


statisticReportRequestI 0x400010E0 Adding response information of statistics report
nfoBuildFailed failed.
statisticReportRespons 0x400010E1 Parsing response information of statistics report
eInfoParseFailed failed.
DisplayConfigInfoBuild 0x400010E2 Adding display configuration information failed.
Failed
DisplayConfigInfoParse 0x400010E3 Parsing display configuration information failed.
Failed
DisplayConfigInfoSaveF 0x400010E4 Saving display configuration information failed.
ailed
notSupportDisplayConf 0x400010E5 The display configuration type is not supported.
igType
passError 0x400010E7 Incorrect password.
upgradePackageLarge 0x400010EB Too large upgrade package.
sesssionUserReachesLi 0x400010EC No more user can log in via session.
mit
ISO 0x400010ED Invalid ISO8601 time format.
8601TimeFormatError
clusterDissolutionFaile 0x400010EE Deleting cluster failed.
d
getServiceNodeInfoFail 0x400010EF Getting service node information failed.
ed
getUPSInfoFailed 0x400010F0 Getting UPS configuration information failed.
getDataStatisticsRepor 0x400010F1 Getting data statistic report failed.
tFailed
getDisplayConfigInfoFai 0x400010F2 Getting display configuration failed.
led
namingAnalysisBoardN 0x400010F3 Renaming analysis board is not allowed.
otAllowed
onlyDrawRegionsOfCo 0x400010F4 Only drawing convex polygon area is supported.
nvexPolygon
bigDataServerRespons 0x400010F5 Parsing response message of big data service
eInfoParseFailed failed.

441
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


bigDataServerReturnFa 0x400010F6 No response is returned by big data service.
iled
microVideoReturnFaile 0x400010F7 No response is returned by micro video cloud
d service.
transcodingServerRetu 0x400010F8 No response is returned by transcoding service.
rnFailed
UPSServerReturnFailed 0x400010F9 No response is returned by UPS monitoring
service.
forwardingServer 0x400010FA No response is returned by forwarding service.
ReturnFailed
storageServer 0x400010FB No response is returned by storage service.
ReturnFailed
cloudAnalysisServerRet 0x400010FC No response is returned by cloud analytic
urnFailed service.
modelEmpty 0x400010FD No model is obtained.
mainAndBackupNodeC 0x400010FE Editing the management interface IP address of
annotModifyManagem master node and backup node is not allowed.
entNetworkInterfaceIP
IDTooLong 0x400010FF The ID is too long.
pictureCheckFailed 0x40001100 Detecting picture failed.
pictureModelingFailed 0x40001101 Modeling picture failed.
setCloudAnalsisDefault 0x40001102 Setting default province of cloud analytic
ProvinceFailed service failed.
InspectionAreasNumbe 0x40001103 No more detection regions can be added.
rExceedLimit
picturePixelsTooLarge 0x40001105 The picture resolution is too high.
picturePixelsTooSmall 0x40001106 The picture resolution is too low.
storageServiceIPEmpty 0x40001107 The storage server IP address is required.
bigDataServerRequestI 0x40001108 Creating request message of big data service
nfoBuildFail failed.
analysiTimedOut 0x40001109 Analysis time out.

442
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


high- 0x4000110A Please enable high-performance mode.
performanceModeDisa
bled.
configuringUPSMonito 0x4000110B Configurating the UPS monitoring server time
ringServerTimedOut out. Check IP address.
cloudAnalysisRequestI 0x4000110C Creating request message of cloud analytic
nformationBuildFailed service failed.
cloudAnalysisResponse 0x4000110D Parsing response message of cloud analytic
InformationParseFailed service failed.
allCloudAnalysisInterfa 0x4000110E Calling API for cloud analytic service failed.
ceFailed
cloudAnalysisModelCo 0x4000110F Model comparison of cloud analytic service
mpareFailed failed.
cloudAnalysisFacePictu 0x40001110 Getting face quality grading of cloud analytic
reQualityRatingFailed service failed.
cloudAnalysisExtractFe 0x40001111 Extracting feature of cloud analytic service
aturePointsFailed failed.
cloudAnalysisExtractPr 0x40001112 Extracting property of cloud analytic service
opertyFailed failed.
getAddedNodeInformat 0x40001113 Getting the added nodes information of data
ionFailed analysis server failed.
noMoreAnalysisUnitsA 0x40001114 No more data analysis servers can be added.
dded
detectionAreaInvalid 0x40001115 Invalid detection region.
shieldAreaInvalid 0x40001116 Invalid shield region.
noMoreShieldAreasAd 0x40001117 No more shield region can be drawn.
ded
onlyAreaOfRectangleS 0x40001118 Only drawing rectangle is allowed in detection
hapeAllowed area.
numberReachedLlimit 0x40001119 Number reached the limit.
wait1~3MinutesGetIPAf 0x4000111A Wait 1 to 3 minutes to get IP address after
terSetupDHCP configuring DHCP.

443
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


plannedTimeMustbeH 0x4000111B Schedule must be half an hour.
alfAnHour
oneDeviceCannotBuild 0x4000111C Creating master and backup cluster requires at
Cluster least two devices.
updatePackageFileNot 0x4000111E Upgrade package is not uploaded.
Uploaded
highPerformanceTasks 0x4000111F Drawing detection area is not allowed under
NotSupportDrawingDe high-performance mode.
tectionRegions
controlCenterIDDoesN 0x40001120 The control center ID does not exist.
otExist
regionIDDoesNotExist 0x40001121 The area ID does not exist.
licensePlateFormatErro 0x40001122 Invalid license plate format.
r
managementNodeDoe 0x40001123 The operation is not supported.
sNotSupportThisOperat
ion
searchByPictureResour 0x40001124 The conditions for searching picture by picture
ceNotConfiged are not configured.
videoFileEncapsulation 0x40001125 The video container format is not supported.
FormatNotSupported
videoPackageFailure 0x40001126 Converting video container format failed.
videoCodingFormatNot 0x40001127 Video coding format is not supported.
Supported
monitorOfDeviceArmin 0x40001129 The camera is armed. Disarm it and try again.
gdeleteArmingInfo
getVideoSourceTypeFai 0x4000112A Getting video source type failed.
led
smartRulesBuildFailed 0x4000112B Creating VAC rule failed.
smartRulesParseFailed 0x4000112C Parsing VAC rule failed.
timeRulesBuildFailed 0x4000112D Creating time rule failed.
timeRulesParseFailed 0x4000112E Parsing time rule failed.
monitoInfoInvalid 0x4000112F Invalid camera information.

444
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


addingFailedVersionMi 0x40001130 Adding failed. The device version mismatches.
smatches
theInformationReturne 0x40001131 No response is returned by the cloud analytic
dAfterCloudAnalysisIsE service.
mpty
selectingIpAddressOfH 0x40001132 Setting IP address for master node and backup
ostAndSpareNodeFaile node failed. Check the node status.
dCheckTheStatus
theSearchIdDoesNotEx 0x40001133 The search ID does not exist.
ist
theSynchronizationIdD 0x40001134 The synchronization ID does not exist.
oesNotExist
theUserIdDoesNotExist 0x40001136 The user ID does not exist.
theIndexCodeDoesNot 0x40001138 The index code does not exist.
Exist
theControlCenterIdDoe 0x40001139 The control center ID does not exist.
sNotExist
theAreaIdDoesNotExist 0x4000113A The area ID does not exist.
theArmingLinkageIdDo 0x4000113C The arming relationship ID does not exist.
esNotExist
theListLibraryIdDoesNo 0x4000113D The list library ID does not exist.
tExist
invalidCityCode 0x4000113E Invalid city code.
synchronizingThePass 0x4000113F Synchronizing backup system password failed.
wordOfSpareServerFail
ed
editingStreamingTypeIs 0x40001140 Editing streaming type is not supported.
NotSupported
switchingScheduledTas 0x40001141 Switching scheduled task to temporary task is
kToTemporaryTaskIsNo not supported.
tSupported
switchingTemporaryTas 0x40001142 Switching temporary task to scheduled task is
kToScheduledTaskIsNot not supported.
Supported

445
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


theTaskIsNotDispatche 0x40001143 The task is not dispatched or is updating.
dOrItIsUpdating
thisTaskDoesNotExist 0x40001144 This task does not exist in the cloud analytic
serice.
duplicatedSchedule 0x40001145 Schedule period cannot be overlapped.
continuousScheduleWi 0x40001146 The continuous schedule periods with same
thSameAlgorithmType algorithm type should be merged.
ShouldBeMerged
invalidStreamingTimeR 0x40001147 Invalid streaming time period.
ange
invalidListLibraryType 0x40001148 Invalid list library type.
theNumberOfMatched 0x40001149 The number of search results should be larger
ResultsShouldBeLarger than 0.
Than0
invalidValueRangeOfSi 0x4000114A Invalid similarity range.
milarity
invalidSortingType 0x4000114B Invalid sorting type.
noMoreListLibraryCanB 0x4000114C No more lists can be added to one device.
eLinkedToTheDevice
InvalidRecipientAddres 0x4000114D Invalid address format of result receiver.
sFormat
creatingClusterFailedT 0x4000114E Insert the dongle before creating cluster.
heDongleIsNotPlugged
In
theURLIsTooLong 0x4000114F No schedule configured for the task.
noScheduleIsConfigure 0x40001150 No schedule configured for the task.
dForTheTask
theDongleIsExpiried 0x40001151 Dongle has expired.
dongleException 0x40001152 Dongle exception.
invalidKey 0x40001153 Invalid authorization service key.
decryptionFailed 0x40001154 Decrypting authorization service failed.
encryptionFailed 0x40001155 Encrypting authorization service failed.

446
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


AuthorizeServiceRespo 0x40001156 Authorization service response exception.
nseError
incorrectParameter 0x40001157 Authorization service parameters error.
operationFailed 0x40001158 Operating authorization service error.
noAnalysisResourceOr 0x40001159 No cloud analytic resources or no data in the list
NoDataInTheListLibrary library.
calculationException 0x4000115A Calculation exception.
allocatingList 0x4000115B Allocating list.
thisOperationIsNotSup 0x4000115C This operation is not supported by the cloud
portedByTheCloudAnal analytic serice.
ytics
theCloudAnalyticsIsInt 0x4000115D The operation of cloud analytic serice is
errupted interrupted.
theServiceIsNotReady 0x4000115E The service is not ready.
searchingForExternalA 0x4000115F Searching external interfaces failed.
piFailed
noOnlineNode 0x40001160 No node is online.
noNodeAllocated 0x40001161 No allocated node.
noMatchedList 0x40001162 No matched list.
allocatingFailedTooMa 0x40001163 Allocation failed. Too many lists of big data
nyFacePictureLists service.
searchIsNotCompleted 0x40001164 Current searching is not completed. Search
SearchAgain again.
allocatingListIsNotCom 0x40001165 Allocating list is not completed.
pleted
searchingForCloudAnal 0x40001166 Searching cloud analytic serice overtime.
yticsResultsFailed
noDataOfTheCurrentLi 0x40001167 No data in the current library. Make sure there
braryFound is data in the Hbase.
noFacePictureLibraryIs 0x40001168 No face picture library is armed for big data
Armed service.

447
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


noAvailableDataSlicing 0x40001169 Invalid standard version information.
VersionInformationAr
mFirstAndSliceTheData
duplicatedOperationDa 0x4000116A Slicing failed. Duplicated operation.
taSlicingIsExecuting
slicinDataFailedNoArm 0x4000116B Slicing failed. No arming information in the face
edFacePictureLibrary big data.
GenerateBenchmarkFil 0x4000116C Generating sliced file failed. Slice again.
eFailedSlicingAgain
NonprimaryNodeIsPro 0x4000116D Slicing is not allowed by the backup node.
hibitedFromSlcingData
NoReadyNodeToCluste 0x4000116E Creating the cluster failed. No ready node.
rServers
NodeManagementServ 0x4000116F The node management server is offline.
iceIsOffline
theCamera(s)OfTheCo 0x40001170 Some cameras in control center are already
ntrolCenterAreAlready armed. Disarm them and try again.
Armed.DisarmThemFir
st
theCamera(s)OfTheAre 0x40001171 Some cameras in this area are already armed.
aAreAlreadyArmed.Dis Disarm them and try again.
armThemFirst
configuringHigh- 0x40001172 Configuring high frequency people detection
frequencyPeopleDetect failed.
ionFailed
searchingForHigh- 0x40001173 Searching detection event logs of high-
frequencyPeopleDetect frequency people detection failed.
ionLogsFailed.
gettingDetailsOfSearch 0x40001174 Getting the search result details of high
edHigh- frequency alarms failed.
frequencyPeopleDetect
ionLogsFailed.
theArmedCamerasAlre 0x40001175 Some cameras in control center are already
adyExistInTheControlC armed.
enter

448
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


disarmingFailedTheCa 0x40001177 Disarming failed. The camera is not armed.
meraIsNotArmed
noDataReturned 0x40001178 No response is returned by the big data service.
preallocFailure 0x40001179 Pre-​allocating algorithm resource failed.
overDogLimit 0x4000117A Configuration failed. No more resources can be
pre-allocated.
analysisServicesDoNot 0x4000117B Not supported.
Support
commandAndDispatch 0x4000117C Scheduling service of cloud analytic serice error.
ServiceError
engineModuleError 0x4000117D Engine module of cloud analytic serice error.
streamingServiceError 0x4000117E Streaming component of cloud analytic serice
error.
faceAnalysisModuleErr 0x4000117F Face analysis module of cloud analytic serice
or error.
vehicleAnalysisModule 0x40001180 Vehicle pictures analytic module of cloud
Error analytic serice error.
videoStructuralAnalysis 0x40001181 Video structuring module of cloud analytic
ModuleError serice error.
postprocessingModule 0x40001182 Post-processing module of cloud analytic serice
Error error.
frequentlyAppearedPe 0x40001183 High frequency alarm is already armed for
rsonAlarmIsAlreadyCo blacklist library.
nfiguredForListLibrary
creatingListLibraryFaile 0x40001184 Creating list library failed.
d
invalidIdentiryKeyOfLis 0x40001185 Invalid identity key of list library.
tLibrary
noMoreDevicesCanBe 0x40001186 No more camera can be added.
Armed
settingAlgorithmTypeF 0x40001187 Allocating task resource failed.
orDeviceFailed

449
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


gettingHighFrequencyP 0x40001188 Setting high frequency alarm failed.
ersonDetectionAlarmIn
formationFailed
invalidSearchConfition 0x40001189 Invalid result.
theTaskIsNotComplete 0x4000118B The task is not completed.
d
resourceOverRemainLi 0x4000118C No more resource can be pre-allocated.
mit
frequentlyAppearedPe 0x4000118D The high frequency alarm of this camera is
rsonAlarmIs configured. Delete the arming information and
AlreadyConfiguredForT try again.
heCameraDisarmFirstA
ndTryAgain
noMorePeopleNumCh 0x4000128A Maximum number of people number changing
angeRulesAdded rules reached.
noMoreViolentMotion 0x4000128D Maximum number of violent motion rules
RulesAdded reached.
noMoreLeavePositionR 0x4000128E Maximum number of leaving position rules
ulesAdded reached.
SMRDiskNotSupportRa 0x40001291 SMR disk does not support RAID.
id
vehicleEnginesNoReso 0x400012a6 Insufficient vehicle engine resources.
urce
noMoreRunningRulesA 0x400012a9 Maximum number of running rules reached.
dded
noMoreGroupRulesAd 0x400012aa Maximum number of people gathering rules
ded reached.
noMoreFailDownRules 0x400012ab Maximum number of people falling down rules
Added reached.
noMorePlayCellphone 0x400012ac Maximum number of playing cellphone rules
RulesAdded reached.
noMoreRetentionRules 0x400015ad Maximum number of people retention rules
Added reached.

450
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


noMoreSleepOnDutyR 0x400015ae Maximum number of sleeping on duty rules
ulesAdded reached.
noClientCertificate 0x40002036 The client certificate is not installed.
noCACertificate 0x40002037 The CA certificate is not installed.
authenticationFailed 0x40002038 Authenticating certificate failed. Check the
certificate.
clientCertificateExpired 0x40002039 The client certificate is expired.
clientCertificateRevocat 0x4000203A The client certificate is revoked.
ion
CACertificateExpired 0x4000203B The CA certificate is expired.
CACertificateRevocatio 0x4000203C The CA certificate is revoked.
n
connectFail 0x4000203D Connection failed.
loginNumExceedLimit 0x4000203F No more user can log in.
formattingFailed 0x40002056 Formatting HDD failed.
encryptedFormattingFa 0x40002057 Formatting encrypted HDD failed.
iled
wrongPassword 0x40002058 Verifying password of SD card failed. Incorrect
password.
audioIsPlayingPleaseW 0x40002067 Audio is playing. Please wait.
ait
twoWayAudioInProgre 0x40002068 Two-way audio in progress. Please wait.
ssPleaseWait
calibrationPointNumFu 0x40002069 The maximum number of calibration points
ll reached.
invalidLaneLine 0x40002096 Saving failed. Invalid lane line.
noDetectionArea 0x400050df No detection area
armingFailed 0x40008000 Arming failed.
disarmingFailed 0x40008001 Disarming failed.
clearAlarmFailed 0x40008002 Clearing alarm failed.
bypassFailed 0x40008003 Bypass failed.

451
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


bypassRecoverFailed 0x40008004 Bypass recovery failed.
outputsOpenFailed 0x40008005 Opening relay failed.
outputsCloseFailed 0x40008006 Closing relay failed.
registerTimeOut 0x40008007 Registering timed out.
registerFailed 0x40008008 Registering failed.
addedByOtherHost 0x40008009 The peripheral is already added by other
security control panel.
alreadyAdded 0x4000800A The peripheral is already added.
armedStatus 0x4000800B The partition is armed.
bypassStatus 0x4000800C Bypassed.
zoneNotSupport 0x4000800D This operation is not supported by the zone.
zoneFault 0x4000800E The zone is in fault status.
pwdConflict 0x4000800F Password conflicted.
audioTestEntryFailed 0x40008010 Enabling audio test mode failed.
audioTestRecoveryFaile 0x40008011 Disabling audio test mode failed.
d
addCardMode 0x40008012 Adding card mode.
searchMode 0x40008013 Search mode.
addRemoterMode 0x40008014 Adding keyfob mode.
registerMode 0x40008015 Registration mode.
exDevNotExist 0x40008016 The peripheral does not exist.
theNumberOfExDevLi 0x40008017 No peripheral can be added.
mited
sirenConfigFailed 0x40008018 Setting siren failed.
chanCannotRepeatedB 0x40008019 This channel is already linked by the zone.
inded
masterSlaveIsEnable 0x4000802c The master-slave relationship has taken effect,
the slave radar does not support this operation.
forceTrackNotEnabled 0x4000802d Mandatory tracking is disabled.

452
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


isNotSupportZoneConfi 0x4000802e This area does not support the zone type.
gByLocalArea
alarmLineCross 0x4000802f Trigger lines are overlapped.
zoneDrawingOutOfRan 0x40008030 The drawn zone is out of detection range.
ge
alarmLineDrawingOut 0x40008031 The drawn alarm trigger line is out of detection
OfRange range.
hasTargetInWarningAr 0x40008032 The warning zone already contains targets.
ea Whether to enable mandatory arming?
radarMoudleConnectF 0x40008033 Radar module communication failed.
ail
importCfgFilePassword 0x40008034 Incorrect password for importing configuration
Err files.
inProgramMode 0x4000801B The keypad is in programming mode.
inPaceTest 0x4000801C In pacing mode.
arming 0x4000801D Arming.
subscribeTypeErr 0x4000a016 This metadata type is not supported to be
subscribed.
HDMIResolutionIllegal / The HDMI video resolution cannot be larger
than that of main and sub stream.
startAppFail / Starting running application program failed.
yuvconflict / The raw video stream conflicted.
overMaxAppNum / No more application program can be uploaded.
alreadyExist / The application program already exists.
noFlash / Insufficient flash.
noFlash / The platform mismatches.
alreadyRunning / The application program is running.
notRunning / The application program is stopped.
packNotFound / The software packet does not exist.
noMemory / Insufficient memory.
invalLicense / Invalid Licnese.

453
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


switchtimedifflesslimit 0x4000123b Time difference between power on and off
should be less than 10 minutes.
OnlySupportHikAndCus 0x400012a3 IPv6 camera can only be added via Device
tomProtocol Network SDK or custom protocols.

StatusCode=5

Sub Status Code Error Code Description


badXmlFormat 0x50000001 Invalid XML format.

StatusCode=6

Sub Status Code Error Code Description


badParameters 0x60000001 Invalid parameter.
badHostAddress 0x60000002 Invalid host IP address.
badXmlContent 0x60000003 Invalid XML content.
badIPv4Address 0x60000004 Invalid IPv4 address.
badIPv6Address 0x60000005 Invalid IPv6 address.
conflictIPv4Address 0x60000006 IPv4 address conflicted.
conflictIPv6Address 0x60000007 IPv6 address conflicted.
badDomainName 0x60000008 Invalid domain name.
connectSreverFail 0x60000009 Connecting to server failed.
conflictDomainName 0x6000000A Domain name conflicted.
badPort 0x6000000B Port number conflicted.
portError 0x6000000C Port error.
exportErrorData 0x6000000D Importing data failed.
badNetMask 0x6000000E Invalid sub-net mask.
badVersion 0x6000000F Version mismatches.
badDevType 0x600000010 Device type mismatches.
badLanguage 0x600000011 Language mismatches.
incorrentUserNameOrPasswor 0x600000012 Incorrect user name or
d password.

454
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


invalidStoragePoolOfCloudServ 0x600000013 Invalid storage pool. The
er storage pool is not configured
or incorrect ID.
noFreeSpaceOfStoragePool 0x600000014 Storage pool is full.
riskPassword 0x600000015 Risky password.
UnSupportCapture 0x600000016 Capturing in 4096*2160 or
3072*2048 resolution is not
supported when H.264+ is
enabled.
userPwdLenUnder8 0x60000023 At least two kinds of
characters, including digits,
letters, and symbols, should be
contained in the password.
userPwdNameSame 0x60000025 Duplicated password.
userPwdNameMirror 0x60000026 The password cannot be the
reverse order of user name.
beyondARGSRangeLimit 0x60000027 The parameter value is out of
limit.
DetectionLineOutofDetectionR 0x60000085 The rule line is out of region.
egion
DetectionRegionError 0x60000086 Rule region error. Make sure
the rule region is convex
polygon.
DetectionRegionOutOfCountin 0x60000087 The rule region must be
gRegion marked as red frame.
PedalAreaError 0x60000088 The pedal area must be in the
rule region.
DetectionAreaABError 0x60000089 The detection region A and B
must be in the a rule frame.
ABRegionCannotIntersect 0x6000008a Region A and B cannot be
overlapped.
analysisEnginesNoResourceErr 0x60001000 No analysis engine.
or

455
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


analysisEnginesUsageExcced 0x60001001 The engine usage is
overloaded.
PicAnalysisNoResourceError 0x60001002 No analysis engine provided for
picture secondary recognition.
analysisEnginesLoadingError 0x60001003 Initializing analysis engine.
analysisEnginesAbnormaError 0x60001004 Analysis engine exception.
analysisEnginesFacelibImportin 0x60001005 Importing pictures to face
g picture library. Failed to edit
analysis engine parameters.
analysisEnginesAssociatedChan 0x60001006 The analysis engine is linked to
nel channel.
smdEncodingNoResource 0x60001007 Insufficient motion detection
encoding resources.
smdDecodingNoResource 0x60001008 Insufficient motion detection
decoding resources.
diskError 0x60001009 HDD error.
diskFull 0x6000100a HDD full.
facelibDataProcessing 0x6000100b Handling face picture library
data.
capturePackageFailed 0x6000100c Capturing packet failed.
capturePackageProcessing 0x6000100d Capturing packet.
noSupportWithPlaybackAbstra 0x6000100e This function is not supported.
ct Playback by video synopsis is
enabled.
insufficientNetworkBandwidth 0x6000100f Insufficient network
bandwidth.
tapeLibNeedStopArchive 0x60001010 Stop the filing operation of
tape library first.
identityKeyError 0x60001011 Incorrect interaction command.
identityKeyMissing 0x60001012 The interaction command is
lost.

456
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


noSupportWithPersonDensityD 0x60001013 This function is not supported.
etect The people density detection is
enabled.
ipcResolutionOverflow 0x60001014 The configured resolution of
network camera is invalid.
ipcBitrateOverflow 0x60001015 The configured bit rate of
network camera is invalid.
tooGreatTimeDifference 0x60001016 Too large time difference
between device and server.
noSupportWithPlayback 0x60001017 This function is not supported.
Playback is enabled.
channelNoSupportWithSMD 0x60001018 This function is not supported.
Motion detection is enabled.
channelNoSupportWithFD 0x60001019 This function is not supported.
Face capture is enabled.
illegalPhoneNumber 0x6000101a Invalid phone number.
illegalCertificateNumber 0x6000101b Invalid certificate No.
linkedCameraOutLimit 0x6000101c Connecting camera timed out.
achieveMaxChannelLimit 0x6000101e No more channels are allowed.
humanMisInfoFilterEnabledCha 0x6000101f No more channels are allowed
nNumError to enable preventing false
alarm.
humanEnginesNoResource 0x60001020 Insufficient human body
analysis engine resources.
taskNumberOverflow 0x60001021 No more tasks can be added.
collisionTimeOverflow 0x60001022 No more comparison duration
can be configured.
invalidTaskID 0x60001023 Invalid task ID.
eventNotSupport 0x60001024 Event subscription is not
supported.
invalidEZVIZSecretKey 0x60001034 Invalid verification code for Hik-
Connect.
needDoubleVerification 0x60001042 Double verification required

457
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


noDoubleVerificationUser 0x60001043 No double verification user
timeSpanNumOverLimit 0x60001044 Max. number of time buckets
reached
channelNumOverLimit 0x60001045 Max. number of channels
reached
noSearchIDResource 0x60001046 Insufficient searchID resources
noSupportDeleteStrangerLib 0x60001051 Deleting stranger library is not
supported
noSupportCreateStrangerLib 0x60001052 Creating stranger library is not
supported
behaviorAnalysisRuleInfoError 0x60001053 Behavior analysis rule
parameters error.
safetyHelmetParamError 0x60001054 Hard hat parameters error.
OneChannelOnlyCanBindOneE 0x60001077 No more engines can be
ngine bound.
TransitionUseEmmc 0x60002000 Starting device failed. The
EMMC is overused.
AdaptiveStreamNotEnabled 0x60002001 The stream self-​adaptive
function is not enabled.
AdaptiveStreamAndVariableBit 0x60002002 Stream self-​adptive and
rateEnabled variable bitrate function cannot
be enabled at the same time.
PTZNotInitialized 0x6000202E PTZ is not initialized.
PTZSelfChecking 0x6000202F PTZ is self-checking.
noSafetyHelmetRegion 0x60002023 The hard hat detection area is
not configured (if users save
their settings without
configuring the arming area,
they should be prompted to
configure one).
unclosedSafetyHelmet 0x60002024 The hard hat detection is
enabled (If users save their
settings after deleting the
arming area, they should be

458
Device Network SDK (Access Control on Card) Developer Guide

Sub Status Code Error Code Description


prompted to disable hard hat
detection first and then delete
the arming area).
PTZLocked 0x60002030 PTZ is locked.
deployExceedMax 0x60006018 The arming connections exceed
the maximum number.
detectorTypeMismatch 0x60008000 The detector type mismatched.
nameExist 0x60008001 The name already exists.
laneAndRegionOverlap None. The lanes are overlapped.
unitConfigurationNotInEffect / Invalid unit parameter.
ruleAndShieldingMaskConflict / The line-rule region overlaps
with the shielded area.
wholeRuleInShieldingMask / There are complete
thermometry rules in the
shielded area.
LogDiskNotSetReadOnlyInGrou 0x60001100 The log HDD in the HDD group
pMode cannot be set to read-only.
LogDiskNotSetReDundancyInGr 0x60001101 The log HDD in the HDD group
oupMode cannot be set to redundancy.

StatusCode=7

SubStatusCode Error Code Description


rebootRequired 0x70000001 Reboot to take effect.

459

You might also like