W77(人脸识别一体机)
1.注册设备
简要描述
将设备和appid、appsecret绑定
请求URL
https://wdev.wmj.com.cn/deviceApi/register
请求方式
POST
请求格式
json
参数
{
"app_id": "",
"app_secret": "",
"device_sn": ""
}
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
app_id | 是 | string | 用户app_id |
app_secret | 是 | string | 用户app_secret |
device_sn | 是 | string | 设备序列号 |
返回示例
{
"code": 0,
"msg": "注册成功"
}
{
"code": 1005,
"msg": "设备已注册"
}
返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
code | int | 错误码 0成功其他异常 |
msg | int | 描述 |
备注
更多返回错误代码请看首页的错误代码描述
2.远程开门
变更人 | 变更时间 | 内容 | 生效版本 |
---|---|---|---|
Sdnbyzq | 2023.8.11 12:09 | 1.命令响应字段新增code 、msg 用于取代旧版本的stateCode 、result 、detail ,但旧版本仍然可用2.cmd_type字段值由 unlock 变更为open ,但unlock 仍然可用 | >= v3.0.6 |
请求说明
请求地址:https://wdev.wmj.com.cn/deviceApi/send
请求协议:POST
请求格式:application/json
请求示例:
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W6613884489",
"type":1,
"data": {
"cmd_type": "open",
"info":{
"uid":"00001"
}
}
}
回复示例:
{
"code": 0,
"data": {
"device_sn": "W6613884489",
"msg_id": 205,
"type": 1,
"cmd": "",
"cmd_type": "open",
"info": {
"code": 0,
"msg": "",
"result": "ok",
"stateCode": 200,
"uid": "00001"
}
}
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
app_id | String | 接口参数:app_id |
app_secret | String | 接口参数:app_secret |
device_sn | String | 接口参数:设备序列号 |
type | Integer | 接口参数:请求类型,固定为1 |
data | Object | 接口参数:透传数据,发送到目标device_sn |
data.cmd_type | String | 业务参数:操作命令 |
data.info | Object | 业务参数:命令信息 |
data.info.uid | String | 业务参数:uid,原值返回 |
data.info.stateCode | Integer | OLD 业务参数:命令处理状态码200:成功 其他:失败 |
data.info.code | Integer | NEW 业务参数:错误码,0成功 其他:失败 |
data.info.msg | string | NEW 业务参数:错误信息 |
注意: 对于标记为NEW
的字段是我们推荐使用的,但标记为OLD
的字段仍然可用
3.添加人脸
请求地址:https://wdev.wmj.com.cn/deviceApi/send
请求协议:POST
请求格式:application/json
请求示例:
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W7718857435",
"type":1,
"data": {
"cmd_type": "face_add",
"info": {
"name":"wang",
"face_id":"123456",
"img_url":"http://fm.wmj.com.cn/image/0.jpg",
}
}
}
回复:
{
"code": 0,
"data": {
"device_sn": "W7718857435",
"msg_id": 17,
"type": 1,
"cmd": "",
"cmd_type": "face_add",
"info": {
"code": 0,
"msg": "",
"face_algorithm": "arcsoft",
"feature": "AID6RAAAjEIPSGW9xvrovfxpJj4zYPC9d+wTvLEcqr0PSGW9auyTPGrsk7xL1Ag+sRyqvY8En73aURs9liGFvKv/w73H+ug98foGPg9IZb1rrey7jwSfPVN4+7xrrey7oa1su0u3ojwegrG9HoIxPQCHjD2DytI9sRwqviKflz2GrWy8AAAAAFN4+7zLF0+96RJ0vWKyR731TEC9HoKxO1N4e71Lt6I8liEFvR6CsT3nEvS9tBwqPcsXz7yWIYW8peLdvGrsk7yWIQW9D0hlPYLK0r0egjG9xvrovfVMwD1w7BM98UzAPI8En72GrWw8Z8+tvWut7LuWIYW93m6BPQKHDD4egrE7beyTvWKyRz2GrWy8yxdPvW3skz2PBJ+96RJ0PR6CMT2WIYU8cOwTPZYhhTwzYPC9zRfPvZYhhbxEtyK9OH3WvaXiXT1EtyK9EUjlvR6CMbzSF888sRyqvQCHDL1nz629ea1sPR6CMT1TePu88UzAPHfsEzy4OZA9liEFPW3sEz7pEnS9peJdvWut7DsegjE8HoIxvUS3oj2PBB8+a63su2rskzxLt6I8HoKxvaXi3bwPSGU94G6Bvbg5kL2CytK9S7eiPGbPrT0egrE8AIcMvW3sE731TMA9FmXLPd5ugT2J57i9YrJHPX+t7LzLF8+8RLciPWKyRz0egrG8uDmQPVN4+z20HCo9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Ou7fk0dvFQiJ72SStg86Z3/PCr3sDzTo4k8T/Tru1xNHTs7QT0+fk0dPdOjibxJi8m9T/Tru6l4Ez1ztr89VCInvWS5hD0+9Gu9KvewPFxNHTsTyXU9tHVOPemd/zzeoES9fk2dvU/067sq97A8fk0dPE/067upeJM9PvRrPX5NHbxcTR07Fcn1vdOjCT0TyfU9ZLmEPe2d/71UIie9KvewvCr3MD0IzDq9meG1vZJK2Dw+9Os9OY6OvQAAAABcTZ07O0E9vs+jib1UIqc9PvTrvI5KWL3eoES9KvewPM+jCb0TyXU91aBEvAjMOr0q97C8KvewPD70az0q9zA9VCKnPS73ML1+TR08aB9iPQjMuj1UIie9AAAAAJJKWD3pnf88c7a/PS73ML0u97A9fk0dvOmd/7yZLgc+fk0dPPk03b1P9Gs8AAAAAGgfYj0+9Gs9XE2du96gxL2peBM9T/RrPKl4Ez1P9Gu8jkpYve2df73eoES93qDEvLZ1zr3VoMQ87Z1/vX5NHT1Ji8k9tnXOvQjMuj1+TR28z6MJPnO2v72SStg8PvTrvLR1Tj3pnf88SotJvir3sLwq97A8OY6Ovc+jCb5oH2I9VCKnPS73sL1cTZ07ZLmEPc+jCb1oH2K9T/Tru3O2v70+9Gu90wnnvVxNHTuZ4bU9ViKnval4kz2meBO+3qBEvSr3sDxcTZ07aB9ivd6gxLxkuYQ9fk0dvdWgxDw+9Gu906OJvAjMuj3VoES8Ia0kvgjMOr3tnX+9qXgTvWYf4r3VoES86TeivTmOjj2peBO9CMw6vZJK2DzPo4m96Z3/vFxNnTvTo4m8PvRrvT7067zeoEQ9CMw6vdWgxDy0dU49E8l1Pek3oj1kuYS9aB9iPbZ1zr1+TR28meG1vQbMOr7DDKy9tHVOPS73ML20dU69OY6OvbR1zj3pN6K906OJvA==",
"result": "ok",
"sCertificateNumber": "2324323243",
"sn": "W6613884489",
"stateCode": 200,
"face_id":"2324323243",
"code":0,
"msg":""
}
}
}
固件版本<3.0.12请求参数:
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W6613884489",
"type":1,
"data": {
"cmd_type": "face_add",
"info": {
"sName":"王**",
"sCertificateNumber":"2324323243",
"sTelephoneNumber":"13888888888",
"iBeginTime":88739234,
"iEndTime":1698746352,
"iType":1,
"picURI":"http://fm.wmj.com.cn/xxx/0.jpg"
}
}
}
参数 | 类型 | 说明 |
---|---|---|
app_id | String | 接口参数:app_id |
app_secret | String | 接口参数:app_secret |
device_sn | String | 接口参数:设备序列号 |
type | Integer | 接口参数:请求类型,固定为1 |
data | Object | 接口参数:透传数据,发送到目标device_sn |
data.cmd_type | String | 业务参数:操作命令 |
data.info | Object | 业务参数:命令信息 |
data.info.sName | String | OLD 业务参数:用户名 |
data.info.sCertificateNumber | String | OLD 业务参数:人脸唯一标识 |
data..sTelephoneNumber | String | OLD 业务参数:电话号码 |
data.info.iBeginTime | Integer | OLD 业务参数:有效开始时间戳 |
data.info.iEndTime | Integer | OLD 业务参数:有效结束时间戳 |
data.info.iType | Integer | OLD 业务参数:人脸类型,默认0x000:永久有效 1:时间段有效 |
data.info.picURI | String | OLD 业务参数:人脸注册url |
data.info.face_algorithm | String | 业务返回参数:人脸识别算法 arcsoft:虹软 |
data.info.feature | String | 业务参数:人脸特征,Base64码 |
data.info.stateCode | Integer | OLD 业务参数:命令处理状态码200:成功 其他:失败 |
data.info.name | String | NEW 业务参数:用户名 |
data.info.face_id | String | NEW 业务参数:人脸唯一标识 |
data..phone_number | String | NEW 业务参数:电话号码 |
data.info.start_time | Integer | NEW 业务参数,默认为0:有效开始时间戳 |
data.info.end_time | Integer | NEW 业务参数,默认为0x7FFFFFFF:有效结束时间戳 |
data.info.type | Integer | NEW 业务参数:人脸类型,默认0x000x00 :永久有效0x01 :时间段有效0x10 :人脸识别通知到服务端 |
data.info.img_url | String | NEW 业务参数:人脸注册url |
data.info.download_timeout | Integer | NEW 业务参数:(可选)人脸图片下载超时时间(单位:秒),不传时默认为20秒 |
data.info.code | Integer | NEW 业务参数:错误码,0成功 其他:失败 |
data.info.msg | string | NEW 业务参数:错误信息 |
变更人 | 变更时间 | 内容 | 生效版本 |
---|---|---|---|
Sdnbyzq | 2023.8.11 12:09 | 命令响应字段新增code 、msg 用于取代旧版本的stateCode 、result 、detail ,但旧版本仍然可用 | >= v3.0.6 |
Sdnbyzq | 2023.11.16 16:46 | 人脸注册时新增字段download_timeout | >= 3.0.12 |
注意: 对于标记为NEW
的字段是我们推荐使用的,但标记为OLD
的字段仍然可用
字段feature
与picURI
/img_url
选其一即可
4.删除人脸
变更人 | 变更时间 | 内容 | 生效版本 |
---|---|---|---|
Sdnbyzq | 2023.8.11 12:09 | 命令响应字段新增code 、msg 用于取代旧版本的stateCode 、result 、detail ,但旧版本仍然可用 | >= v3.0.6 |
请求地址:https://wdev.wmj.com.cn/deviceApi/send
请求协议:POST
请求格式:application/json
请求示例:
OLD:
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W6613884489",
"type":1,
"data": {
"cmd_type": "face_del",
"info":{
"sCertificateNumber":"2324323243"
}
}
}
NEW:
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W7718857435",
"type":1,
"data": {
"cmd_type": "face_del",
"info":{
"face_id":"123456"
}
}
}
回复:
{
"code": 0,
"data": {
"device_sn": "W6613884489",
"msg_id": 16,
"type": 1,
"cmd": "",
"cmd_type": "face_del",
"info": {
"code": 0,
"msg": "",
"result": "ok",
"sCertificateNumber": "2324323243",
"stateCode": 200
}
}
}
参数 | 类型 | 说明 |
---|---|---|
app_id | String | 接口参数:app_id |
app_secret | String | 接口参数:app_secret |
device_sn | String | 接口参数:设备序列号 |
type | Integer | 接口参数:请求类型,固定为1 |
data | Object | 接口参数:透传数据,发送到目标device_sn |
data.cmd_type | String | 业务参数:操作命令 |
data.info | Object | 业务参数:命令信息 |
data.info.sName | String | 业务参数:用户名 |
data.info.sCertificateNumber | String | OLD 业务参数:人脸唯一标识 |
data.info.stateCode | Integer | OLD 业务参数:命令处理状态码200:成功 其他:失败 |
data.info.face_id | String | NEW 业务参数:人脸唯一标识 |
data.info.code | Integer | NEW 业务参数:错误码,0成功 其他:失败 |
data.info.msg | string | NEW 业务参数:错误信息 |
注意: 对于标记为NEW
的字段是我们推荐使用的,但标记为OLD
的字段仍然可用
5.查找人脸
变更人 | 变更时间 | 内容 | 生效版本 |
---|---|---|---|
Sdnbyzq | 2023.8.11 12:09 | 命令响应字段新增code 、msg 用于取代旧版本的stateCode 、result 、detail ,但旧版本仍然可用 | >= v3.0.6 |
请求地址:https://wdev.wmj.com.cn/deviceApi/send
请求协议:POST
请求格式:application/json
请求示例:
OLD:
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W6613884489",
"type":1,
"data": {
"cmd_type": "face_find",
"info":{
"sCertificateNumber":"2324323243"
}
}
}
NEW:
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W7718857435",
"type":1,
"data": {
"cmd_type": "face_find",
"info":{
"face_id":"123456"
}
}
}
回复:
{
"code": 0,
"data": {
"device_sn": "W7718857435",
"cmd_type": "face_find",
"info": {
"add_time": "2023-08-25 11:17:07",
"code": 0,
"end_time": 2147483647,
"face_id": "123456",
"iBeginTime": 0,
"iEndTime": 2147483647,
"iType": 16,
"msg": "",
"name": "wang",
"phone_number": "",
"result": "ok",
"sCertificateNumber": "123456",
"sName": "wang",
"sRegistrationTime": "2023-08-25 11:17:07",
"sTelephoneNumber": "",
"start_time": 0,
"stateCode": 200,
"type": 16
}
}
}
参数 | 类型 | 说明 |
---|---|---|
app_id | String | 接口参数:app_id |
app_secret | String | 接口参数:app_secret |
device_sn | String | 接口参数:设备序列号 |
type | Integer | 接口参数:请求类型,固定为1 |
data | Object | 接口参数:透传数据,发送到目标device_sn |
data.cmd_type | String | 业务参数:操作命令 |
data.info | Object | 业务参数:命令信息 |
data.info.sName | String | OLD 业务参数:用户名 |
data.info.sCertificateNumber | String | OLD 业务参数:人脸唯一标识 |
data.info.sRegistrationTime | OLD 业务参数:注册时间 | |
data.info.stateCode | Integer | OLD 业务参数:命令处理状态码200:成功 其他:失败 |
data.info.name | String | NEW 业务参数:用户名 |
data.info.add_time | NEW 业务参数:注册时间 | |
data.info.face_id | String | NEW 业务参数:人脸唯一标识 |
data..phone_number | String | NEW 业务参数:电话号码 |
data.info.start_time | Integer | NEW 业务参数,默认为0:有效开始时间戳 |
data.info.end_time | String | NEW 业务参数,默认为0x7FFFFFFF:有效结束时间戳 |
data.info.type | Integer | NEW 业务参数:人脸类型,默认0x000x00 :永久有效0x01 :时间段有效0x10 :人脸识别通知到服务端 |
data.info.img_url | String | NEW 业务参数:人脸注册url |
data.info.code | Integer | NEW 业务参数:错误码,0成功 其他:失败 |
data.info.msg | string | NEW 业务参数:错误信息 |
注意: 对于标记为NEW
的字段是我们推荐使用的,但标记为OLD
的字段仍然可用
6.更新人脸
变更人 | 变更时间 | 内容 | 生效版本 |
---|---|---|---|
Sdnbyzq | 2023.8.11 12:09 | 命令响应字段新增code 、msg 用于取代旧版本的stateCode 、result 、detail ,但旧版本仍然可用 | >= v3.0.6 |
请求地址:https://wdev.wmj.com.cn/deviceApi/send
请求协议:POST
请求格式:application/json
请求示例:sCertificateNumber
或face_id
为必须传的参数,其他需要变更的传入即可
OLD:
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W6613884489",
"type":1,
"data": {
"cmd_type": "face_edit",
"info":{
"sName":"张三",
"sCertificateNumber":"123456",
"sTelephoneNumber":"15145672548",
"iType":1,
"iBeginTime":88739234,
"iEndTime":16758467343
}
}
}
NEW:
{
"app_id":"c0e2ce9ae12e2a5c635a94fe5f3080c5",
"app_secret":"c0e2ce9ae12e2a5c635a94fe5f3080c5",
"device_sn": "W7718857435",
"type":1,
"data": {
"cmd_type": "face_edit",
"info":{
"name":"wang",
"face_id":"123456",
"phone_number":"12345678910",
"start_time":1,
"type":1,
"end_time":8888888888888
}
}
}
回复:
{
"code": 0,
"data": {
"device_sn": "W6613884489",
"msg_id": 22,
"type": 1,
"cmd": "",
"cmd_type": "face_edit",
"info": {
"code":0,
"msg":"",
"iBeginTime": 88739234,
"iEndTime": 16758467343,
"iType": 1,
"result": "ok",
"sCertificateNumber": "2324323243",
"sName": "张三",
"sTelephoneNumber": "15145672548",
"stateCode": 200
}
}
}
参数 | 类型 | 说明 |
---|---|---|
app_id | String | 接口参数:app_id |
app_secret | String | 接口参数:app_secret |
device_sn | String | 接口参数:设备序列号 |
type | Integer | 接口参数:请求类型,固定为1 |
data | Object | 接口参数:透传数据,发送到目标device_sn |
data.cmd_type | String | 业务参数:操作命令 |
data.info | Object | 业务参数:命令信息 |
data.info.sName | String | 业务参数:用户名 |
data.info.sCertificateNumber | String | 业务参数:人脸唯一标识 |
data.info.stateCode | Integer | OLD 业务参数:命令处理状态码200:成功 其他:失败 |
data.info.name | String | NEW 业务参数:用户名 |
data.info.face_id | String | NEW 业务参数:人脸唯一标识 |
data..phone_number | String | NEW 业务参数:电话号码 |
data.info.start_time | Integer | NEW 业务参数,默认为0:有效开始时间戳 |
data.info.end_time | String | NEW 业务参数,默认为0x7FFFFFFF:有效结束时间戳 |
data.info.type | Integer | NEW 业务参数:人脸类型,默认0x000x00 :永久有效0x01 :时间段有效0x10 :人脸识别通知到服务端 |
data.info.code | Integer | NEW 业务参数:错误码,0成功 其他:失败 |
data.info.msg | string | NEW 业务参数:错误信息 |
注意: 对于标记为NEW
的字段是我们推荐使用的,但标记为OLD
的字段仍然可用
7.设备参数设置
变更人 | 变更时间 | 内容 | 生效版本 |
---|---|---|---|
Sdnbyzq | 2023.8.11 12:09 | 命令响应字段新增code 、msg 用于取代旧版本的stateCode 、result 、detail ,但旧版本仍然可用 | >= v3.0.6 |
请求地址:https://wdev.wmj.com.cn/deviceApi/send
请求协议:POST
请求格式:application/json
请求示例:
设备信息配置按需传入即可,在data.info
下的配置字段值都为String
类型
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W6613884489",
"type":1,
"data": {
"cmd_type": "device_info_set",
"info":{
"volume":"200"
}
}
}
回复:
{
"code": 0,
"data": {
"device_sn": "W6613884489",
"msg_id": 23,
"type": 1,
"cmd": "",
"cmd_type": "device_info_set",
"info": {
"code":0,
"msg":"",
"result": "ok",
"stateCode": 200,
"volume": "100"
}
}
}
参数 | 类型 | 说明 |
---|---|---|
app_id | String | 接口参数:app_id |
app_secret | String | 接口参数:app_secret |
device_sn | String | 接口参数:设备序列号 |
type | Integer | 接口参数:请求类型,固定为1 |
data | Object | 接口参数:透传数据,发送到目标device_sn |
data.cmd_type | String | 业务参数:操作命令 |
data.info | Object | 业务参数:命令信息 |
data.info.stateCode | Integer | OLD 业务参数:命令处理状态码200:成功 其他:失败 |
data.info.code | Integer | NEW 业务参数:错误码,0成功 其他:失败 |
data.info.msg | string | NEW 业务参数:错误信息 |
注意: 对于标记为NEW
的字段是我们推荐使用的,但标记为OLD
的字段仍然可用
可选参数:所有参数和值都是字符串
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
title | 人脸识别设备终端 | String | 否 | 设备顶部文字显示 |
sn_prefix_format | 设备序列号:%1 | String | 否 | 设备序列号显示格式 |
face_prefix_format | 已注册人脸:%1 | String | 否 | 人脸数量显示格式 |
card_prefix_format | 已注册门卡:%1 | String | 否 | 卡数量显示格式 |
website_addr | www.wmj.com.cn | String | 否 | 显示网址 |
phoneNum | 0851-111-222-333 | String | 否 | 显示联系电话 |
volume | 0-100 | String | 否 | 设备语音播报音量 |
similarity_threshold | 80-100 | String | 否 | 人脸识别相似度阈值,大于该值认为识别成功 |
recognition_rect | 100 - 700 | String | 否 | 人脸识别起始阈值,示例值为120,描述了开始识别时识别出的人脸框大小,可用于控制识别的远近 |
net_err_reboot_time | 3 | String | 否 | 设备网络错误时,自检超时时间(单位:分钟),示例值为3分钟后重启 |
1.设置样例
1.1 设置设备开启识别抓拍功能
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W77*******",
"data": {
"cmd_type": "device_info_set",
"info":{
"face_capture_func":"enable", // 'enable'使能抓拍功能,'disable'使不能
"face_capture_width":"200", // 设置抓拍图片宽度,100 <= face_capture_width <= 400
"face_capture_height":"320" // 设置抓拍图片高度,160 <= face_capture_height <= 620
}
}
}
注意:图片原始宽高比例为 800 * 1280,为防止抓拍图片扭曲变形,建议等比例设置
1.2 设置设备开启抓拍上报功能 (version >= 3.0.18)
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W77*******",
"data": {
"cmd_type": "device_info_set",
"info":{
"capture_push_func":"enable", // 'enable'使能抓拍功能,'disable'使不能
"face_capture_width":"200", // 设置抓拍图片宽度,100 <= face_capture_width <= 400
"face_capture_height":"320" // 设置抓拍图片高度,160 <= face_capture_height <= 620
}
}
}
注意:图片原始宽高比例为 800 * 1280,为防止抓拍图片扭曲变形,建议等比例设置
8.获取设备参数
变更人 | 变更时间 | 内容 | 生效版本 |
---|---|---|---|
Sdnbyzq | 2023.8.11 12:09 | 命令响应字段新增code 、msg 用于取代旧版本的stateCode 、result 、detail ,但旧版本仍然可用 | >= v3.0.6 |
请求地址:https://wdev.wmj.com.cn/deviceApi/send
请求协议:POST
请求格式:application/json
请求示例:
与配置相同,按需请求
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W6613884489",
"type":1,
"data": {
"cmd_type": "device_info_get",
"info":{
"volume":"",
"version":""
}
}
}
回复:
{
"code": 0,
"data": {
"device_sn": "W6613884489",
"msg_id": 24,
"type": 1,
"cmd": "",
"cmd_type": "device_info_get",
"info": {
"code":0,
"msg":"",
"result": "ok",
"stateCode": 200,
"version": "3.0.0",
"volume": "100"
}
}
}
参数 | 类型 | 说明 |
---|---|---|
app_id | String | 接口参数:app_id |
app_secret | String | 接口参数:app_secret |
device_sn | String | 接口参数:设备序列号 |
type | Integer | 接口参数:请求类型,固定为1 |
data | Object | 接口参数:透传数据,发送到目标device_sn |
data.cmd_type | String | 业务参数:操作命令 |
data.info | Object | 业务参数:命令信息 |
data.info.stateCode | Integer | OLD 业务参数:命令处理状态码200:成功 其他:失败 |
data.info.code | Integer | NEW 业务参数:错误码,0成功 其他:失败 |
data.info.msg | string | NEW 业务参数:错误信息 |
注意: 对于标记为NEW
的字段是我们推荐使用的,但标记为OLD
的字段仍然可用
9.设置屏幕二维码
变更人 | 变更时间 | 内容 | 生效版本 |
---|---|---|---|
Sdnbyzq | 2023.8.11 12:09 | 命令响应字段新增code 、msg 用于取代旧版本的stateCode 、result 、detail ,但旧版本仍然可用 | >= v3.0.6 |
请求地址:https://wdev.wmj.com.cn/deviceApi/send
请求协议:POST
请求格式:application/json
请求示例:
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W6613884489",
"type":1,
"data": {
"cmd_type": "set_qrcode",
"info":{
"qrcode_data":"http://www.bing.com",
"update_time":10
}
}
}
回复:
{
"code": 0,
"data": {
"device_sn": "W6613884489",
"msg_id": 25,
"type": 1,
"cmd": "",
"cmd_type": "set_qrcode",
"info": {
"code":0,
"msg":"",
"qrcode_data": "http://www.google.com",
"result": "ok",
"stateCode": 200,
"update_time": 10
}
}
}
参数 | 类型 | 说明 |
---|---|---|
app_id | String | 接口参数:app_id |
app_secret | String | 接口参数:app_secret |
device_sn | String | 接口参数:设备序列号 |
type | Integer | 接口参数:请求类型,固定为1 |
data | Object | 接口参数:透传数据,发送到目标device_sn |
data.cmd_type | String | 业务参数:操作命令 |
data.info | Object | 业务参数:命令信息 |
data.info.qrcode_data | String | 业务参数:二维码数据 |
data.info.update_time | String | 业务参数:二维码更新时间 |
data.info.stateCode | Integer | OLD 业务参数:命令处理状态码200:成功 其他:失败 |
data.info.code | Integer | NEW 业务参数:错误码,0成功 其他:失败 |
data.info.msg | string | NEW 业务参数:错误信息 |
注意: 对于标记为NEW
的字段是我们推荐使用的,但标记为OLD
的字段仍然可用
10.人脸识别通知
1.识别抓拍未开启通知
{
"cmd_type": "notify",
"device_sn": "W6613884489",
"type": 2,
"info": {
"fSimilarity": 0.9047250747680664,
"iType": 1,
"sAddtionalInfo": "",
"sCertificateNumber": "2324323243",
"sTime": "2023-06-16 10:57:39",
"sn": "W6613884489",
"similarity": 0.9047250747680664,
"type": 1,
"addtional_info": "",
"face_id": "2324323243",
"time": "2023-06-16 10:57:39",
}
}
参数 | 类型 | 说明 |
---|---|---|
cmd_type | String | 业务参数:操作命令 |
info.iType | Integer | OLD 业务参数:通知类型0x00 :永久有效0x01 :默认人脸识别通知0x10 :未开门人脸识别通知 |
info.fSimilarity | Double | OLD 业务参数:人脸识别相似度 |
info.sAddtionalInfo | String | OLD 业务参数:附加参数 |
info.sCertificateNumber | String | OLD 业务参数:人脸唯一标识 |
info.sTime | String | LD`业务参数:识别时间 |
info.type | Integer | NEW 业务参数:通知类型0x00 :永久有效0x01 :默认人脸识别通知0x10 :未开门人脸识别通知 |
info.similarity | Double | NEW 业务参数:人脸识别相似度 |
info.addtional_info | String | OLD 业务参数:附加参数 |
info.face_id | String | NEW 业务参数:人脸唯一标识 |
info.time | String | NEW 业务参数:识别时间 |
2.识别抓拍开启通知
{
"cmd_type": "notify",
"device_sn": "W7718857435",
"info": {
"capture_image": "/9j/4AAQSkZJRgABAQEBKwENAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAFAAMgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+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r+VQsT0FWVtXYYOakWwO7kUWAzmh3dSfwpyaZ5gB3kZ9q2VsM4GKtJZEfhRyhYwV0jP8X5iphpDAcEV0CWu3HFPMHFPlA5ttMcDkCit5ocA0UrAextGDyTwOvNV5YtqlyeBk1bKkDc7BhnoajOQB6D17fX/AD2rbYkzng56e1QNFt46j6VqyRBuBx/nr/n3qB4fmIAyfw/z3qlIaZmNED2xUD2/tWm8IxkYOO/WojGwOMZNVuVcyXtAe1VZLIelbmzJwRzTGhUik0NHOSaepzlc1UfTMHgcV1Rtge1RNbYGCKnlGclLpgbORVVtKx06V2D2uecVE1oPSlyhY5E6aR2NM/s4+hrq2sx6Uw2gHajlCyOY/s32oGmgfw10xtR6Un2UelHKKxzo072pw08eldB9lHpS/ZvajlAw0sQOwqUWQ4wtbAt8dqXyPanYDMW1A7U8W+OgrS8ik8qiwrlAw47CmNFWiYuOlRPHRYm5lSx4BoqzOnB4opWFc9PddjqRHyeCwGevTNKQ+4ZX6L61JtUEYYHsuOv/AOv6CmN8zDGOmRk45wR/SqaJIsbhz27A/wCFJtDLjkHrT+SoXGQR8hPOc+3GP8/gpAcYXevHTdjgdeMe1Kw7kZiLHAVvbPf2qEw8kAY9zxVtsPGG3be6tnHPtTRGd4UHjGMEfeH/AOqlqh3KDQcdgQelMMGT04zitHy+mcMRwTxnPqab5asAoBbsRgcY70+ZlJmc9uVznj8KjaIquTjHfNaohG88ZGOcdabJbYXO47Rwc+vSjmHcyGiHJIwAepppgB5xWn5G8kAqfmwQOe3/AOuovKUKQD15wOhqroLmc1vntUZt/atTyCGwQeT070Nb8nimO5km3HpTTb+1a/2cMCRzj0GaQWbMgYDg5wfp/wDroFcyDBjtR5HtWobQg9OfSmm2IyCKAuZpgpDDWj5FNMNArmf5NJ5XtV8xU0xUWJuZ7RVC8WOa02iqCSLtRYm5jXEfFFW7iLg0UrCuf//Z",
"fSimilarity": 0.9538192749023438,
"face_id": "ST1701160067",
"iType": 1,
"sCertificateNumber": "ST1701160067",
"sTime": "2023-11-28 16:41:32",
"similarity": 0.9538192749023438,
"sn": "W7718857435",
"time": "2023-11-28 16:41:32",
"type": 1
}
}
参数 | 类型 | 说明 |
---|---|---|
cmd_type | String | 业务参数:操作命令 |
info.iType | Integer | OLD 业务参数:通知类型0x00 :永久有效0x01 :默认人脸识别通知0x10 :未开门人脸识别通知 |
info.fSimilarity | Double | OLD 业务参数:人脸识别相似度 |
info.sAddtionalInfo | String | OLD 业务参数:附加参数 |
info.sCertificateNumber | String | OLD 业务参数:人脸唯一标识 |
info.sTime | String | OLD 业务参数:识别时间 |
info.addtional_info | String | OLD 业务参数:附加参数 |
info.type | Integer | NEW 业务参数:通知类型0x00 :永久有效0x01 :默认人脸识别通知0x10 :未开门人脸识别通知 |
info.similarity | Double | NEW 业务参数:人脸识别相似度 |
info.face_id | String | NEW 业务参数:人脸唯一标识 |
info.time | String | NEW 业务参数:识别时间 |
info.capture_image | String | 识别抓拍图片,格式为Base64 |
11.删除所有人脸
变更人 | 变更时间 | 内容 | 生效版本 |
---|---|---|---|
Sdnbyzq | 2023.8.11 12:09 | 命令响应字段新增code 、msg 用于取代旧版本的stateCode 、result 、detail ,但旧版本仍然可用 | >= v3.0.6 |
请求地址:https://wdev.wmj.com.cn/deviceApi/send
请求协议:POST
请求格式:application/json
请求示例:
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W6613884489",
"type":1,
"data": {
"cmd_type": "face_clr",
"info":{}
}
}
回复:
{
"code": 0,
"data": {
"device_sn": "W6613884489",
"cmd_type": "face_clr",
"info": {
"code":0,
"msg":"",
"result": "ok",
"stateCode": 200
}
}
}
参数 | 类型 | 说明 |
---|---|---|
app_id | String | 接口参数:app_id |
app_secret | String | 接口参数:app_secret |
device_sn | String | 接口参数:设备序列号 |
data | Object | 接口参数:透传数据,发送到目标device_sn |
data.cmd_type | String | 业务参数:操作命令 |
data.info | Object | 业务参数:命令信息 |
data.info.stateCode | Integer | OLD 业务参数:命令处理状态码200:成功 其他:失败 |
data.info.code | Integer | NEW 业务参数:错误码,0成功 其他:失败 |
data.info.msg | string | NEW 业务参数:错误信息 |
注意: 对于标记为NEW
的字段是我们推荐使用的,但标记为OLD
的字段仍然可用
12.门卡管理
简要描述
卡管理:
添加
、删除
、修改
、查询
、清空
请求URL
https://wdev.wmj.com.cn/deviceApi/send
请求方式
POST
请求格式
json
请求示例
{
"app_id":"",
"app_secret":"",
"device_sn": "W77*******",
"data": {
"cmd_type": "card_***",
"info": {
"card_id": "27598faf",
"start_time": 1676904446,
"end_time": 1710662359,
"name":"测试卡"
}
}
}
参数说明
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
app_id | 是 | string | 接口参数:用户app_id |
app_secret | 是 | string | 接口参数:用户app_secret |
device_sn | 是 | string | 接口参数:设备序列号 |
data.cmd_type | 是 | string | 业务参数:命令类型 card_add: 新增 card_del: 删除 card_edit: 编辑 card_clr: 清空所有卡 card_find: 获取卡详情 |
*data.info.card_id * | 是 | string | 业务参数:卡序列号 |
data.info.start_time | 否 | integer | 业务参数: 启用时间,默认当前时间 |
data.info.end_time | 否 | integer | 业务参数: 停用时间,默认0x7FFFFFFF |
data.info.name | 否 | string | 业务参数:卡备注,默认为空 |
返回示例
//接口调用成功
{
"code": 0,
"data": {
"device_sn": "W77*******",
"cmd_type": "card_***",
"info": {
"card_id": "DB948509",
"end_time": 1810662359,
"code":0,
"msg":"",
"start_time": 1676904446,
"name":""
}
}
}
//接口调用失败
{
"code": 1001,
"msg": "网络超时"
}
返回参数说明
参数名 | 必有 | 类型 | 说明 |
---|---|---|---|
code | 是 | int | 接口参数:错误码 0: 成功 其他: 异常 |
data.info.code | 是 | int | 业务参数: 0: 成功 其他: 失败 |
data.info.msg | 是 | string | 业务参数:状态描述 |
data.info.card_id | 否 | string | 业务参数:卡序列号 |
data.info.start_time | 否 | int | 业务参数:启用时间 |
data.info.end_time | 否 | int | 业务参数:停用时间 |
data.info.name | 否 | string | 业务参数:卡备注,默认为空 |
13..刷卡通知
{
"cmd_type": "card_notify",
"device_sn": "W7713884489",
"type": 2,
"info": {
"sn": "W7713884489",
"type": 1,
"addtional_info": "",
"card_id": "12345678",
"time": "2023-06-16 10:57:39",
}
}
参数 | 类型 | 说明 |
---|---|---|
cmd_type | String | 业务参数:操作命令 |
info.type | Integer | 业务参数:通知类型0x00 ,0x01 :默认门卡识别通知0x10 :未开门门卡识别通知 |
info.addtional_info | String | 业务参数:附加参数 |
info.card_id | String | 业务参数:人脸唯一标识 |
info.time | String | 业务参数:识别时间 |
14.从设备发卡
简要描述
下发指令至设备,使设备进入发卡模式。该模式下,已注册卡刷卡时正常识别,未注册卡刷卡时视为注册该卡。
请求URL
https://wdev.wmj.com.cn/deviceApi/send
请求方式
POST
请求格式
json
请求示例
{
"app_id":"",
"app_secret":"",
"device_sn": "W77*******",
"data": {
"cmd_type": "device_add_card",
"info": {
"state":1, // 1: 设备发卡模式 0:关闭设备发卡模式,
"timeout":60, // 发卡超时时间,单位秒
"name":"XiaoMing",
"start_time":12345,
"end_time":2147483647
}
}
}
参数说明
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
app_id | 是 | string | 接口参数:用户app_id |
app_secret | 是 | string | 接口参数:用户app_secret |
device_sn | 是 | string | 接口参数:设备序列号 |
data.cmd_type | 是 | string | 业务参数:命令类型 device_add_card: 设备发卡 |
*data.info.state * | 是 | integer | 业务参数:命令状态 1: 开启设备发卡模式 0: 关闭设备发卡模式 2: 查询设备当前是否处于发卡模式 |
*data.info.timeout * | 是 | integer | 业务参数:超时时间,单位秒(s),默认为10s,10秒后关闭设备发卡模式 |
data.info.start_time | 否 | integer | 业务参数: 启用时间,默认0 |
data.info.end_time | 否 | integer | 业务参数: 停用时间,默认0x7FFFFFFF |
data.info.name | 否 | string | 业务参数:卡备注,默认为空 |
返回示例
//接口调用成功
{
"code": 0,
"data": {
"device_sn": "W77*******",
"cmd_type": "device_add_card",
"info": {
"state":1,
"code": 0,
"msg": ""
}
}
}
//接口调用失败
{
"code": 1001,
"msg": "网络超时"
}
返回参数说明
参数名 | 必有 | 类型 | 说明 |
---|---|---|---|
code | 是 | int | 接口参数:错误码 0: 成功 其他: 异常 |
data.info.code | 是 | int | 业务参数: 0: 成功 其他: 失败 |
data.info.msg | 是 | string | 业务参数:状态描述 |
data.info.state | 是 | int | 业务参数:当前设备发卡状态 |
2.设备发卡通知
{
"cmd_type": "add_card_notify",
"device_sn": "W7718857435",
"info": {
"card_id": "0BBE7D09",
"end_time": 2147483647,
"name": "XiaoMing",
"start_time": 12345
}
}
参数说明
参数名 | 必有 | 类型 | 说明 |
---|---|---|---|
data.info.card_id | 是 | string | 业务参数:卡序列号 |
data.info.start_time | 是 | int | 业务参数:启用时间 |
data.info.end_time | 是 | int | 业务参数:停用时间 |
data.info.name | 是 | string | 业务参数:卡备注 |
15.从设备加人脸
简要描述
下发指令至设备,使设备进入添加人脸模式。该模式下,已注册人脸刷脸时正常识别,未注册人脸刷脸时视为注册该人脸。
请求URL
https://wdev.wmj.com.cn/deviceApi/send
请求方式
POST
请求格式
json
请求示例
{
"app_id":"",
"app_secret":"",
"device_sn": "W77*******",
"data": {
"cmd_type": "device_add_face",
"info": {
"state":1, // 1: 开启设备添加人脸 0:关闭设备添加人脸,
"timeout":60, // 发卡超时时间,单位秒
"name":"Public",
"start_time":12345,
"end_time":2147483607,
"phone_number":"",
"type":1,
"face_id_prefix":"ST" //
}
}
}
参数说明
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
app_id | 是 | string | 接口参数:用户app_id |
app_secret | 是 | string | 接口参数:用户app_secret |
device_sn | 是 | string | 接口参数:设备序列号 |
data.cmd_type | 是 | string | 业务参数:命令类型 device_add_face: 设备添加人脸 |
*data.info.state * | 是 | integer | 业务参数:命令状态 1: 开启设备添加人脸模式 0: 关闭设备添加人脸模式 2: 查询设备当前是否处于添加人脸模式 |
*data.info.timeout * | 是(state==1时) | integer | 业务参数:超时时间,单位秒(s),默认为10s,10秒后关闭设备添加人脸模式 |
data.info.name | 否 | String | 业务参数:用户名 |
data.info.face_id_prefix | 否 | String | 业务参数:人脸唯一标识前缀,设备添加人脸时,其face_id = face_id_prefix + 添加时间戳 |
data..phone_number | 否 | String | 业务参数:电话号码 |
data.info.start_time | 否 | Integer | 业务参数,默认为0:有效开始时间戳 |
data.info.end_time | 否 | Integer | 业务参数,默认为0x7FFFFFFF:有效结束时间戳 |
data.info.type | 否 | Integer | 业务参数:人脸类型,默认0x000x00 :永久有效0x01 :时间段有效0x10 :人脸识别通知到服务端 |
返回示例
//接口调用成功
{
"code": 0,
"data": {
"device_sn": "W77*******",
"cmd_type": "device_add_face",
"info": {
"state":1,
"code": 0,
"msg": ""
}
}
}
//接口调用失败
{
"code": 1001,
"msg": "网络超时"
}
返回参数说明
参数名 | 必有 | 类型 | 说明 |
---|---|---|---|
code | 是 | int | 接口参数:错误码 0: 成功 其他: 异常 |
data.info.code | 是 | int | 业务参数: 0: 成功 其他: 失败 |
data.info.msg | 是 | string | 业务参数:状态描述 |
data.info.state | 是 | int | 业务参数:当前设备状态 |
2.设备添加人脸通知
{
"cmd_type": "add_face_notify",
"device_sn": "W77*******",
"info": {
"end_time": 2147483607,
"face_id": "ST1701160067",
"feature": "AID6RAAAjEINFzm9pTbpvZVuKD5pSCq9AAAAALLlx70NFzm9COrsOgjq7DppSKo9bS2fvbyvMb2hHQc+WupsvAAAAADBlKY9BE1PPasbXr0+6uw7aUiqPbyvMb1uEpQ8zUOFPQjq7LrJXpC9HqsMPUvRCj73nfA9StEKvs1DhT11EhQ9qxvePKU26b0AAAAAsuXHvbjKvL0LTc88U+rsvCOQgb0X4aK9zUOFvAgyxD119wi+vK+xPP1MTzwETU+9TOrsPFrqbLxYtFa9zUMFPQJo2r2rG968T+psvcGUpj39TE88COrsunXqbDt7EhQ8SwX4vc1DBT3zuPu8tOXHPfed8D28rzE8PursO7yvMTwETc+8BE1PvXXqbDudbP+9exIUPMV5Gz0c4aK8zUOFPW4SlLyuANO9WupsvM1DhTwc4aI8wJQmvgRNTz39TE+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EHtUD2Ge1S4lHGyad7VWk0z/AGa7VtPB7VC2nD0qXELHFNph9KibTCB0rtW07/ZqJtNyOlLlCxxf9nEdqadPP92ux/s3vikOmf7NLkCxx5sG9KUae392uvGmg/w09dMH92jlCxyK2B/u1Mtgf7tdWNL9v0py6Z7U1ELHMJp5/u1Zj0/HUV0a6af7tTpp2O3NVyiOejsfarcdh3xW7Hp59Kspp59KfKIwo7HHarkVj04rZSxx2qdLP2ppCbMuOy9qK3EtSO1FVYm5/9k=",
"name": "Public",
"start_time": 12345,
"type": 1
}
}
参数说明
参数名 | 必有 | 类型 | 说明 |
---|---|---|---|
data.info.name | 是 | String | 业务参数:用户名 |
data.info.face_id | 是 | String | 业务参数:人脸唯一标识前缀, |
data..phone_number | 否 | String | 业务参数:电话号码 |
data.info.start_time | 否 | Integer | 业务参数,默认为0:有效开始时间戳 |
data.info.end_time | 否 | Integer | 业务参数,默认为0x7FFFFFFF:有效结束时间戳 |
data.info.type | 是 | Integer | 业务参数:人脸类型,默认0x000x00 :永久有效0x01 :时间段有效0x10 :人脸识别通知到服务端 |
data.info.feature | 是 | String | 业务参数:Base64格式的注册人脸特征值 |
data.info.image | 是 | String | 业务参数:Base64格式的注册人脸图片,宽高比例200*320 |
16.语音设置
变更人 | 变更时间 | 内容 | 生效版本 |
---|---|---|---|
Sdnbyzq | 2023.12.15 9:56 | -- | >= v3.0.17 |
简要描述: 设备语音设置
请求地址:https://wdev.wmj.com.cn/deviceApi/send
请求协议:POST
请求格式:application/json
请求示例:
{
"app_id": "xxx",
"app_secret": "xxx",
"device_sn": "W7710910407",
"timeout": 60,
"data": {
"cmd_type": "audio_settings",
"info": {
"reg_success_audio": "http://example.cn/Test/wav/qtg.wav",
"enter_face_reg_mode_audio": "http://example.cn/Test/wav/tcdjrlms.wav",
"enter_card_reg_mode_audio": "http://example.cn/Test/wav/tcfkms.wav",
"exit_face_reg_mode_audio": "http://example.cn/Test/wav/jrdjrlms.wav",
"exit_card_reg_mode_audio": "http://example.cn/Test/wav/jrfkms.wav",
"remote_door_open_audio": "http://example.cn/Test/wav/jrfkms.wav",
"face_expired_audio": "http://example.cn/Test/wav/tcfkms.wav",
"card_expired_audio": "http://example.cn/Test/wav/di.wav",
"face_rec_success_audio": "http://example.cn/Test/wav/lrcg.wav",
"card_rec_success_audio": "http://example.cn/Test/wav/lrcg.wav",
"face_rec_fail_audio": "http://example.cn/Test/wav/lrsb.wav",
"card_rec_fail_audio": "http://example.cn/Test/wav/di.wav",
//"reset": 1
}
}
}
请求参数说明:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
app_id | 是 | string | 接口参数:用户app_id |
app_secret | 是 | string | 接口参数:用户app_secret |
device_sn | 是 | string | 接口参数:设备序列号 |
timeout | 否 | integer | 接口参数:接口超时时间 |
data.cmd_type | 是 | string | 业务参数:命令audio_settings |
data.info.reg_success_audio | 否 | string | 业务参数:注册成功语音 |
data.info.enter_face_reg_mode_audio | 否 | string | 业务参数:进入人脸注册模式语音 |
data.info.enter_card_reg_mode_audio | 否 | string | 业务参数:进入卡注册模式语音 |
data.info.exit_face_reg_mode_audio | 否 | string | 业务参数:退出人脸注册模式语音 |
data.info.exit_card_reg_mode_audio | 否 | string | 业务参数:退出卡注册模式语音 |
data.info.remote_door_open_audio | 否 | string | 业务参数:远程开门语音 |
data.info.face_expired_audio | 否 | string | 业务参数:人脸已过期语音 |
data.info.card_expired_audio | 否 | string | 业务参数:卡已过期语音 |
data.info.face_rec_success_audio | 否 | string | 业务参数:脸识别成功语音 |
data.info.card_rec_success_audio | 否 | string | 业务参数:卡识别成功语音 |
data.info.face_rec_fail_audio | 否 | string | 业务参数:脸识别失败语音 |
data.info.card_rec_fail_audio | 否 | string | 业务参数:卡识别失败语音 |
data.info.reset | 否 | integer | 业务参数:重置语音为出厂状态 |
回复示例:
{
"code": 0,
"data": {
"device_sn": "W7710910407",
"cmd_type": "audio_settings",
"info": {
"card_expired_audio": 0,
"card_rec_fail_audio": 0,
"card_rec_success_audio": 0,
"code": 0,
"enter_card_reg_mode_audio": 0,
"enter_face_reg_mode_audio": 0,
"exit_card_reg_mode_audio": 0,
"exit_face_reg_mode_audio": 0,
"face_expired_audio": 0,
"face_rec_fail_audio": 0,
"face_rec_success_audio": 0,
"msg": "",
"reg_success_audio": 0,
"remote_door_open_audio": 0,
"result": "ok",
"stateCode": 200
}
}
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
app_id | String | 接口参数:app_id |
app_secret | String | 接口参数:app_secret |
data | Object | 接口参数:目标device_sn |
data.device_sn | String | 接口参数:设备序列号 |
data.cmd_type | String | 业务参数:操作命令 |
data.info | Object | 业务参数:命令信息 |
data.info.code | Integer | 业务参数:错误码,0成功 其他:失败 |
data.info.msg | string | 业务参数:错误信息 |
data.info.配置字段 | Integer | 业务参数:0: 对应的设置成功 1:对应设备失败 |
17.抓拍通知设置
1.抓拍通知
{
"cmd_type": "capture_notify",
"device_sn": "W7710910407",
"info": {
"capture_image": "/9j/4AAQSkZJRgABAQEBKwENAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAFAAMgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQA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5qWPrTEzb0vyluEaaMtEASdrYOewxjkde4xjvngpth0NFDYHzRI/PJ+uahLfWkkcg9ePWmZNICUH3pwJxUIPfjFSDrQBOvWrMaHGT0ptvAWIJFXxCMEkUmMn0y4MFyrZ68GvRrGXzbOOTOQRXmMXDc8EV6To8bpoVpvPzFN34E5H6EVz1l1Nqb6F8cis6Rf3xJq6sg6ZqvKBvyK5zYibAFZ97OFQir79Kx71Qc1UQvYzpJQVNZ0wDOTV6SIbapMOc5reJEmJEuD0q9AcCqqECrMZ4zVmZITzzSmTy0J9qjL45NV5pd3y561SRLYm7ipFcjvVcMDTwwrRIg1bS/ZGAJ4ro7O93gc1xaNyOa07O4MTDniqsB3kOJFBFTqhFZmlXIcLznNb4iyARUiY+znMJ6Ag0UzZtoo0Fc/9k=",
"sn": "W7710910407",
"time": "2023-12-15 15:24:40"
}
}
参数 | 类型 | 说明 |
---|---|---|
cmd_type | String | 业务参数:通知类型 |
info.time | String | 业务参数:抓拍时间 |
info.capture_image | String | 业务参数:抓拍图片,格式为Base64 |
info.sn | String | 业务参数:通知设备SN |
18.广告设置
变更人 | 变更时间 | 内容 | 生效版本 |
---|---|---|---|
Sdnbyzq | 2024.01.05 12:20 | MP4广告视频播放 | >= v5.0.1 |
要求
仅支持MP4格式的视频,视频流格式h264,音频流格式aac,用户需自行适配视频格式。图片尺寸:800*1280
请求说明
请求地址:https://wdev.wmj.com.cn/deviceApi/send
请求协议:POST
请求格式:application/json
请求示例:
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W7711581223",
"data": {
"cmd_type": "advertising_set",
"info":{
"url":"http://example.cn/video/guizhou.mp4",
"operate":0, // 0: 下载 1:查询下载状态 2:disable AV 3:enable AV 4:设置
//"volume":0,
"timeout":240
}
}
}
回复示例:
{
"code": 0,
"data": {
"device_sn": "W6613884489",
"cmd_type": "advertising_set",
"info": {
"code": 0,
"msg": ""
}
}
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
app_id | String | 接口参数:app_id |
app_secret | String | 接口参数:app_secret |
device_sn | String | 接口参数:设备序列号 |
type | Integer | 接口参数:请求类型,固定为1 |
data | Object | 接口参数:透传数据,发送到目标device_sn |
data.cmd_type | String | 业务参数:操作命令 |
data.info | Object | 业务参数:命令信息 |
data.info.operate | String | 业务参数:命令操作选项0 : 下载 1 :查询下载状态 2 : disable 广告 3 :enable 广告 4 : 设置详情请参考下方范例 |
data.info.url | String | 业务参数:视频下载url |
data.info.timeout | Integer | 业务参数:视频下载超时时间(单位:秒) |
data.info.volume | Integer | 业务参数:视频播放音量大小 0-100 |
data.info.code | Integer | 业务参数:错误码,0成功 其他:失败 |
data.info.msg | string | 业务参数:错误信息 |
使用范例
使能视频播放
设备默认为使能状态{ "app_id":"xxx", "app_secret":"xxx", "device_sn": "W7711581223", "data": { "cmd_type": "advertising_set", "info":{ "operate":3 } } }
使不能视频播放
{ "app_id":"xxx", "app_secret":"xxx", "device_sn": "W7711581223", "data": { "cmd_type": "advertising_set", "info":{ "operate":2 } } }
更新设备内视频
{ "app_id":"xxx", "app_secret":"xxx", "device_sn": "W7711581223", "data": { "cmd_type": "advertising_set", "info":{ "url":"http://example.cn/video/guizhou.mp4", "operate":0, "timeout":240 } } }
查询视频下载状态
// 请求 { "app_id":"xxx", "app_secret":"xxx", "device_sn": "W7711581223", "data": { "cmd_type": "advertising_set", "info":{ "operate":1 } } } // 回复 { "app_id":"xxx", "app_secret":"xxx", "device_sn": "W7711581223", "data": { "cmd_type": "advertising_set", "info":{ "code": 0, "msg": "", "operate": 1, "state": -1, // -1 下载失败 0:正在下载 1:下载完成 } } }
设置视频播放音量
{ "app_id":"xxx", "app_secret":"xxx", "device_sn": "W7711581223", "data": { "cmd_type": "advertising_set", "info":{ "operate":4, "volume":0 } } }
++ 19.获取所有人脸变更人 变更时间 内容 生效版本 Sdnbyzq 2024.1.16 16:20 查找所有人脸ID >= v3.0.20
请求地址:https://wdev.wmj.com.cn/deviceApi/send
请求协议:POST
请求格式:application/json
请求示例:
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W771885743x",
"type":1,
"data": {
"cmd_type": "face_find_all",
"info":{}
}
}
回复:
{
"code": 0,
"data": {
"device_sn": "W771885743x",
"cmd_type": "face_find_all",
"info": {
"list": [
"351515554694917398"
],
"code": 0,
"msg": ""
}
}
}
参数 | 类型 | 说明 |
---|---|---|
app_id | String | 接口参数:app_id |
app_secret | String | 接口参数:app_secret |
device_sn | String | 接口参数:设备序列号 |
data | Object | 接口参数:透传数据,发送到目标device_sn |
data.cmd_type | String | 业务参数:操作命令 |
data.info | Object | 业务参数:命令信息 |
data.info.list | String | 业务参数:人脸ID列表 |
data.info.code | Integer | 业务参数:错误码,0成功 其他:失败 |
data.info.msg | string | 业务参数:错误信息 |
20.获取所有门卡
变更人 | 变更时间 | 内容 | 生效版本 |
---|---|---|---|
Sdnbyzq | 2024.1.16 16:20 | 查找所有人脸ID | >= v3.0.20 |
请求地址:https://wdev.wmj.com.cn/deviceApi/send
请求协议:POST
请求格式:application/json
请求示例:
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W771885743x",
"type":1,
"data": {
"cmd_type": "card_find_all",
"info":{}
}
}
回复:
{
"code": 0,
"data": {
"device_sn": "W771885743x",
"cmd_type": "card_find_all",
"info": {
"list": [
"12345610",
"12375611",
"DB8D8509",
"5B27A909",
"06A78999",
"16727DA0",
"B6DC7FA0",
"AB259509"
],
"code": 0,
"msg": ""
}
}
}
参数 | 类型 | 说明 |
---|---|---|
app_id | String | 接口参数:app_id |
app_secret | String | 接口参数:app_secret |
device_sn | String | 接口参数:设备序列号 |
data | Object | 接口参数:透传数据,发送到目标device_sn |
data.cmd_type | String | 业务参数:操作命令 |
data.info | Object | 业务参数:命令信息 |
data.info.list | String | 业务参数:门卡ID列表 |
data.info.code | Integer | 业务参数:错误码,0成功 其他:失败 |
data.info.msg | string | 业务参数:错误信息 |
21.关闭led补光灯
变更人 | 变更时间 | 内容 | 生效版本 |
---|---|---|---|
Sdnbyzq | 2024.1.16 16:20 | 关闭LED补光灯 | >= v5.0.3 |
请求地址:https://wdev.wmj.com.cn/deviceApi/send
请求协议:POST
请求格式:application/json
请求示例:
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W771885743x",
"type":1,
"data": {
"cmd_type": "device_info_set",
"info":{
"white_led_open": "echo low > /sys/class/gpio/gpio117/direction"
}
}
}
回复:
{
"code": 0,
"data": {
"device_sn": "W7711581xxx",
"msg_id": 146,
"type": 1,
"cmd": "",
"app_id": "",
"cmd_type": "device_info_set",
"info": {
"code": 0,
"msg": "",
"result": "ok",
"stateCode": 200,
"white_led_open": "echo low > /sys/class/gpio/gpio117/direction"
}
}
}
打开补光灯:low 修改成 high
22.设置验证人脸后动作
请求地址:https://wdev.wmj.com.cn/deviceApi/send
请求协议:POST
请求格式:application/json
条件:人脸设备固件版本>=5.0.8
请求示例:
{
"app_id": "{{wmjv2appid}}",
"app_secret": "{{wmjv2appsecret}}",
"device_sn": "W7716962349",
"type":1,
"data": {
"cmd_type": "device_info_set",
"info":{
"face_recognized_action": "default&post",//设置为default&post时动继电器且向云端post识别数据,设置为post时,只向云端post识别数据。
"face_post_url": "https://cd.wmj.com.cn/receive_callback.php",
"face_post_resulte_ignore": "enable",
"face_post_timeout":"10",
"face_capture_func":"disable",//enable开启抓拍,disable关闭抓拍
"face_capture_width":"400",
"face_capture_height":"640",
"capture_open_func":"disable",
"capture_push_func": "disable",
"face_recognized":"等待云端验证..." //屏幕上的提示
}
}
}
设置回复:
{
"code": 0,
"data": {
"device_sn": "W7716962349",
"msg_id": 151,
"type": 1,
"cmd": "",
"app_id": "",
"cmd_type": "device_info_set",
"info": {
"code": 0,
"face_post_resulte_ignore": "enable",
"face_post_timeout": "10",
"face_post_url": "https://cd.wmj.com.cn/receive_callback.php",
"face_recognized_action": "default&post",
"msg": "",
"result": "ok",
"stateCode": 200
}
}
}
apipost工具操作演示:
回调人脸比对后的数据格式:
{
"capture_image": "抓拍图片的base64",
"fSimilarity": 0.9697543978691101,
"face_id": "269041731730270",
"iType": 1,
"sCertificateNumber": "269041731730270",
"sTime": "2024-11-16 12:12:28",
"similarity": 0.9697543978691101,
"sn": "W7716962349",
"time": "2024-11-16 12:12:28",
"type": 1
}
回调接收测试链接:cd.wmj.com.cn/receiv... (这是设置到设备里面去的地址)
实时显示回调查看:cd.wmj.com.cn
设备上显示的效果:
服务端处理完回调信息后调用开门接口开门。
23.重启设备
变更人 | 变更时间 | 内容 | 生效版本 |
---|---|---|---|
Sdnbyzq | 2023.12.15 9:56 | -- | >= v3.0.17 |
简要描述: 命令返回成功后,设备将在3秒后重启
请求地址:https://wdev.wmj.com.cn/deviceApi/send
请求协议:POST
请求格式:application/json
请求示例:
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W7713884489",
"type":1,
"data": {
"cmd_type": "restart",
"info":{}
}
}
回复示例:
{
"code": 0,
"data": {
"device_sn": "W7713884489",
"cmd_type": "restart",
"info": {
"code": 0,
"msg": "",
"result": "ok",
"stateCode": 200
}
}
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
app_id | String | 接口参数:app_id |
app_secret | String | 接口参数:app_secret |
device_sn | String | 接口参数:设备序列号 |
type | Integer | 接口参数:请求类型,固定为1 |
data | Object | 接口参数:透传数据,发送到目标device_sn |
data.cmd_type | String | 业务参数:操作命令 |
data.info | Object | 业务参数:命令信息 |
data.info.code | Integer | 业务参数:错误码,0成功 其他:失败 |
data.info.msg | string | 业务参数:错误信息 |
24.重置设备(清空数据)
变更人 | 变更时间 | 内容 | 生效版本 |
---|---|---|---|
Sdnbyzq | 2023.12.15 9:56 | -- | >= v3.0.17 |
简要描述: 设备重置
请求地址:https://wdev.wmj.com.cn/deviceApi/send
请求协议:POST
请求格式:application/json
请求示例:
// 重置设备所有数据,类似恢复出厂设置
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W7713884489",
"data": {
"cmd_type": "reset",
"info":{}
}
}
// 重置配置信息,但不重置人脸及门卡数据
{
"app_id":"xxx",
"app_secret":"xxx",
"device_sn": "W7713884489",
"data": {
"cmd_type": "reset",
"info":{
"configuration_reset":1
}
}
}
请求参数说明:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
app_id | 是 | string | 接口参数:用户app_id |
app_secret | 是 | string | 接口参数:用户app_secret |
device_sn | 是 | string | 接口参数:设备序列号 |
data.cmd_type | 是 | string | 业务参数:命令reset |
data.info.face_reset | 否 | integer | 业务参数:重置人脸 |
data.info.card_reset | 否 | integer | 业务参数:重置卡 |
data.info.configuration_reset | 否 | integer | 业务参数:重置参数,设备将会重启 |
注意: info
为{}
时即为初始化设备,其他情况以传入参数为准
回复示例:
{
"code": 0,
"data": {
"device_sn": "W7713884489",
"cmd_type": "reset",
"info": {
"code": 0,
"msg": "",
"result": "ok",
"stateCode": 200
}
}
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
app_id | String | 接口参数:app_id |
app_secret | String | 接口参数:app_secret |
data | Object | 接口参数:目标device_sn |
data.device_sn | String | 接口参数:设备序列号 |
data.cmd_type | String | 业务参数:操作命令 |
data.info | Object | 业务参数:命令信息 |
data.info.code | Integer | 业务参数:错误码,0成功 其他:失败 |
data.info.msg | string | 业务参数:错误信息 |
最后编辑:极客师傅 更新时间:2025-04-27 13:15