幽冥大陆(一百08)门禁局域网http白名单二次识别—东方仙盟练气期

在线比对识别

用途:设备识别后推送数据到平台地址,识别判断后返回信息到设备进行开门和提示

在线接口可脱离整个局域网单独在运行,有配置工具可直接切换比对模式和配置在线比对地址。

可以理解为此接口为一套单独的协议

请求方式

http post

设备请求参数:

参数

参数类型

是否必须

释义

deviceId

string

设备唯一标识 (mac)

dev_sno

string

设备号(设备MAC地址)

deviceSN

string

设备SN

token

string

token

type

string

识别方式:

type= stranger,代表陌生人

type=face,代表人脸识别;

type=qr,代表扫码识别;

type=id,代表人证比对;

type=ic,代表刷卡比对;

value

string

识别内容:

当type= stranger时,value内容为固定字符"data.capture"

当type=face时,value内容为人员id号码;

当type=qr时,value内容为识别到的二维码内容字符串;

当type=id时,value内容为身份证识别到的身份证号码;

name

string

人员姓名

temperature

string

识别温度值,只是作为后台记录使用;

data

object

数据

capture

string

现场抓拍照片,base64编码

(扫码无照片)

time

string

识别时间, 时间戳精确到毫秒

请求示例:

{

"dev_sno": "04:0C:F4:12:68:05",

"deviceld": "0A:0C:F4:12:68:05",

"devicesN": "T02F11601FS",

"temperature": "",

"token": "dc70ace460a00a093b5lefff3588d47b",

"type": "",

"value": "",

"data": {

"capture": "",

"datetime": ""

}

}

平台返回参数:

参数

参数类型

释义

status

int

0:成功;1:失败(非 0 失败)。成功时开门,失败时不开门。

msg

String

提示信息。返回内容就显示,不返回就不显示。

audio

String

语音(需使用智能语音模块,语音模块接串口2,此字段不适用于T12)

{ "status": 0, "msg": "识别成功", "audio": "识别成功" } 

提示:需要智能语音时,需要设置语音控制模式为 【自定义语音】 才能确保播的是后台返回的语音,只要开启就可以,后面的自定义语音内容不重要。

示例

url:http://192.168.1.135:8091/setDeviceNetwork

发送:
{"password":"123456","data":{"isDhcp":false,"ip":"192.168.1.136","gateway":"192.168.1.1","mask":"255.255.255.0","dns":"8.8.8.8"}}

返回:
{"message" :"","result" : 0}

阿雪技术观

在科技发展浪潮中,我们不妨积极投身技术共享。不满足于做受益者,更要主动担当贡献者。无论是分享代码、撰写技术博客,还是参与开源项目维护改进,每一个微小举动都可能蕴含推动技术进步的巨大能量。东方仙盟是汇聚力量的天地,我们携手在此探索硅基生命,为科技进步添砖加瓦。

Hey folks, in this wild tech - driven world, why not dive headfirst into the whole tech - sharing scene? Don't just be the one reaping all the benefits; step up and be a contributor too. Whether you're tossing out your code snippets, hammering out some tech blogs, or getting your hands dirty with maintaining and sprucing up open - source projects, every little thing you do might just end up being a massive force that pushes tech forward. And guess what? The Eastern FairyAlliance is this awesome place where we all come together. We're gonna team up 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值