1. CM53 道闸网关 — 道闸基本参数设置协议

请求说明:

协议 方法 PATH
HTTPS POST /openApi/camera/setParam

Body参数:

参数 类型 必填 说明
appId String 是 appId
expires String 是 过期时间
sign String 是 签名
deviceNo String 是 设备编号
cmd String 是 固定值:barrierGatewaySetParam
data String 是 设置参数
{
  "appId": "ym1a2b3c4d5e6f7g8",
  "expires": "1761004215",
  "sign": "9f2c1d8a7b6e5f4a3c2b1d0e9f8a7b6c",
  "deviceNo": "CM53A1B2C3D4",
  "cmd": "barrierGatewaySetParam",
  "data": "{\"voiceEnable\":1,\"evtInterval\":30,\"gatewayMode\":0,\"antiMisjudgmentEnable\":1,\"uploadLcmEvent\":1,\"httpServerPort\":8080,\"antiLiftRodEnable\":1,\"switchWrongEnable\":1,\"checkSwitchWrongInterval\":5,\"httpServerIp\":\"192.168.1.100\",\"httpApi\":\"/api/lane/event\",\"envMonitorCameraIp\":\"192.168.1.64\"}"
}

2.1 data 字段完整说明(12 项)

序号 第三方字段 设备字段 类型 界面名称 取值 / 范围 说明
1 voiceEnable voiceEnable Integer 语音使能 0:关闭;1:开启 网关语音播报总开关,关闭后所有语音提示静音
2 evtInterval evtinterval Integer 事件间隔时间(分钟) 0999(建议 160) 同一事件的最小上报间隔,用于抑制重复车道事件;单位分钟
3 gatewayMode gatewayMode Integer 模式 0:网关模式;1:独立模式 网关模式由平台/相机下发开闸;独立模式网关可自主判断(不依赖平台)
4 antiMisjudgmentEnable antiMisjudgmentEnable Integer 撞杆防误判使能 0:关闭;1:开启 开启后过滤「撞杆」类误判,避免频繁触发撞杆事件
5 uploadLcmEvent upload_lcmEvent Integer 车道事件上传 0:关闭;1:开启 控制设备是否向平台上报车道事件(laneIncident)。关闭后平台收不到事件,即使平台侧回调开关为开启
6 httpServerPort http_serverPort Integer HTTP 服务器端口 1~65535 网关内置 HTTP 服务端口,用于对接第三方停车系统
7 antiLiftRodEnable antiLiftRodEnable Integer 防抬杆检测使能 0:关闭;1:开启 开启后检测「闸杆被人工抬起」并上报事件
8 switchWrongEnable switchWrongEnable Integer 开关闸异常检测使能 0:关闭;1:开启 开启后检测开关闸超时 / 不到位并上报异常事件
9 checkSwitchWrongInterval check_switchWrong_interval Integer 开关闸异常检测时间间隔(秒) 0~999 判定开关闸超时的时间阈值;超过该时间未到位即视为异常。单位秒
10 httpServerIp http_serverIp String HTTP 服务器 IP IPv4 点分十进制 网关向第三方停车系统推送事件的服务器地址
11 httpApi httpApi String HTTP 接口 API 地址 以 / 开头,≤50 字符 事件推送的接口路径,与 http_serverIp、http_serverPort 组成完整 URL
12 envMonitorCameraIp envMonitorCameraIp String 环境监控摄像头 IP IPv4 点分十进制,可为空 环境相机(抓拍/监控)地址,未接环境相机时留空

返回参数:

参数 类型 必填 说明
code int 是 响应状态码
msg String 是 响应消息
appId String 是 appId
expires String 是 过期时间
sign String 签名
deviceNo String 是 设备编号
cmd String 是 固定值:barrierGatewaySetParam
data String 是 空字符串,固定值:””
{
  "code": 200,
  "msg": "操作成功",
  "appId": "ym1a2b3c4d5e6f7g8",
  "expires": "1761004215",
  "sign": "9f2c1d8a7b6e5f4a3c2b1d0e9f8a7b6c",
  "deviceNo": "CM53A1B2C3D4",
  "cmd": "barrierGatewaySetParam",
  "data": ""
}
作者:吴勇  创建时间:2026-10-24 15:54
最后编辑:吴勇  更新时间:2026-10-24 16:18