汉王科技面部识别终端
脱机通讯开发指南
汉王科技面部识别终端脱机通讯开发指南
第 2 页 共 79 页
汉王科技股份有限公司
版本 3.0
2015 年 7 月
声明
· 本开发指南版权归汉王科技股份有限公司所有,翻印必究。
· 本开发指南中述及的其他商标和产品名称是指拥有相应商标和产品名称的公司或者制造
的产品。汉王科技对其他公司的商标和产品名称不拥有任何所有权。
· 使用该开发包,由于人为或程序本身造成数据丢失,概不负责。
· 本开发指南中的信息如有更改,恕不另行通知。
变更记录
版本号
修改点说明
变更人
变更日期
审批人
审批日期
V1.0
创建
金有芝
2010-4-1
V2.0
修改
徐琰
2015-1-16
V3.0
修改
李博
2015-7-21
V3.1
修改
李博
2015-10-28
汉王科技面部识别终端脱机通讯开发指南
第 3 页 共 79 页
目 录
1 基本约定................................................................... 8
1.1 语法和保留字 ......................................................... 8
1.2 保留字的命名原则 ..................................................... 8
2 保留字列表及其含义 ......................................................... 9
2.1 命令字 ............................................................... 9
2.2 控制字 .............................................................. 15
3 命令详解.................................................................. 25
3.1 员工管理类命令 ...................................................... 25
GetEmployeeID ..................................................... 25
GetEmployee ....................................................... 25
SetEmployee ....................................................... 26
SetEmployeeSection ................................................ 28
DeleteEmployee .................................................... 30
DeleteAllEmployee ................................................. 30
SetNameTable ...................................................... 30
AddNameTable ...................................................... 31
DetectEmployeeData ................................................ 31
EnrollEmployee .................................................... 31
StartFaceIdentify ................................................. 33
SetDuplicationcheck ............................................... 33
SetUserTZ ......................................................... 34
GetUserTZ ......................................................... 34
SetHeadPhotoDisplay ............................................... 35
3.2 管理员管理类命令 .................................................... 36
GetManagerID ...................................................... 36
GetManager ........................................................ 36
SetManager ........................................................ 37
DeleteManager ..................................................... 38
汉王科技面部识别终端脱机通讯开发指南
第 4 页 共 79 页
InitDeviceAdmin ................................................... 38
GetManagerType .................................................... 38
SetManagerType .................................................... 39
GetManagerLog ..................................................... 39
3.3 记录管理类命令 ...................................................... 40
GetRecord ......................................................... 40
DeleteAllRecord ................................................... 41
DeleteBeforeRecord ................................................ 41
DeleteRecord ...................................................... 42
DeleteUploadedRecord .............................................. 42
3.4 设备基础管理类命令 .................................................. 42
InitDevice ........................................................ 42
GetMAC_SN ......................................................... 43
SetMAC_SN ......................................................... 43
DetectDevice ...................................................... 43
RestartDevice ..................................................... 44
SetDeviceInfo ..................................................... 44
GetDeviceInfo ..................................................... 44
GetDeviceModel .................................................... 45
GetVolume ......................................................... 45
SetVolume ......................................................... 46
GetDateTime ....................................................... 46
SetDateTime ....................................................... 46
GetDayLight ....................................................... 47
SetDayLight ....................................................... 47
GetDeviceCapacity ................................................. 47
3.5 设备通讯管理类命令 .................................................. 48
GetNetInfo ........................................................ 48
SetNetInfo ........................................................ 48
GetClientStatus ................................................... 49
汉王科技面部识别终端脱机通讯开发指南
第 5 页 共 79 页
SetClientStatus ................................................... 49
SetNetType ........................................................ 50
SetServerHost ..................................................... 50
SetNetUpgrade ....................................... 错误!未定义书签。
GetWifiInfo ....................................................... 51
SetWifiInfo ....................................................... 51
GetWiegandInfo .................................................... 52
SetWiegandInfo .................................................... 52
3.6 设备出入管理类命令 .................................................. 53
GetAttendanceInterval ............................................. 53
SetAttendanceInterval ............................................. 54
OpenDoorByWiegand ................................................. 54
GetBell ........................................................... 54
SetBell ........................................................... 55
GetWorkCode ....................................................... 55
SetWorkCode ....................................................... 56
ClearWorkCode ..................................................... 56
DeleteWorkCode .................................................... 57
GetWorkStatus ..................................................... 57
SetWorkStatus ..................................................... 57
ClearWorkStatus ................................................... 58
DeleteWorkStatus .................................................. 58
3.7 设备安全管理类命令 .................................................. 58
NetOpenDoor ....................................................... 58
SetAttendanceAccessSync ........................................... 59
SetRelayTime ...................................................... 59
GetRelayTime ...................................................... 59
GetRemoveAlarm .................................................... 60
SetRemoveAlarm .................................................... 60
GetFRAlarm ........................................................ 61