> For the complete documentation index, see [llms.txt](https://bm168x.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bm168x.gitbook.io/project/v2r4c01_readme/xi-tong-dui-jie-shuo-ming-shu/dui-jie-se3-he-zi/3.2.6-xi-tong-guan-li/5.5-she-bei-pei-zhi-kong-zhi.md).

# 2. 设备配置控制

**功能描述：**

​ 修改SE3 AI迷你机配置功能命令。

**参数描述（JSON格式）：**

| 一级参数           | 二级参数                     | 类型     | 默认值 | 选择     | 说明                                                                                                                                                                                                           | 举例                                                                                                                                                                             |
| -------------- | ------------------------ | ------ | --- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| method         |                          | string | 无   | **必选** | control\_config                                                                                                                                                                                              | “control\_config”                                                                                                                                                              |
| messageId      |                          | string | 空   | 可选     | MQ消息的唯一标识ID                                                                                                                                                                                                  | “004a5b58-32e8-487e-a90a-2ce443877e7e”                                                                                                                                         |
| config\_field  |                          | dict   | 空   | **必选** | 需要更改的配置选项字段集合                                                                                                                                                                                                |                                                                                                                                                                                |
|                | support\_stranger\_group | bool   | 空   | 可选     | 陌生人自动入库字段选项，默认true为开启自动入库                                                                                                                                                                                    | true                                                                                                                                                                           |
|                | threshold                | float  | 空   | 可选     | 当前匹配阈值配置                                                                                                                                                                                                     | 82.0                                                                                                                                                                           |
|                | threshold\_range         | list   | 空   | 可选     | 匹配阈值转化空间, 里面有阈值初始值，最佳阈值和最大阈值                                                                                                                                                                                 | \[0.0, 82.0, 100.0]                                                                                                                                                            |
| extend\_params |                          | dict   | 空   | 可选     | 扩展字段                                                                                                                                                                                                         |                                                                                                                                                                                |
|                | notify\_path             | string | 无   | **必选** | <p>管理平台URL（相对地址），用于通过http方式回传命令执行结果。 相对地址的组合请参见 URL组合章节。<br>注意： 如果登陆时管理平台下发 uploadQueue 字段，则会通过MQ上传通道返回结果。<br>如果没有 uploadQueue 字段，并且 notify\_path 为非空，则会向 notify\_path 返回结果<br>如果两个字段都没有，则不会返回结果（即单向通信）。</p> | "[http://ip:port:/getResult](https://bm168x.gitbook.io/project/v2r4c01_readme/xi-tong-dui-jie-shuo-ming-shu/dui-jie-se3-he-zi/3.2.6-xi-tong-guan-li/http:/ip:port:/getResult)" |

**MQ命令示例：**

```json
{
    "method": "control_config", //此关键字和内容不能变
    "config_field": 
    	{
            "support_stranger_group":true,//配置陌生人自动入库		
            "threshold":82.0,        //配置最佳阈值
            "threshold_range":[0.0, 82.0, 100.0]   //配置阈值映射空间
        }, 
    "extend_params": {
        "notify_path": "URL" // 返回mq命令处理结果的地址
    }  //扩展字段，里面内容可以为空，但字段为必选
}
```

**返回结果示例：**

```json
{
    "success":true,
    "code":0,
    "message":"执行陌生人入库开关命令执行成功",
    "dev_sno":"dasdas23123" ,//设备唯一标识key
    "messageKey":"control_config" ,//每一类消息格式的key
    "result":{
    		"success_field":{
            	"support_stranger_group":true,//配置陌生人自动入库		
            	"threshold":82.0,        //配置最佳阈值
            	"threshold_range":[0.0, 82.0, 100.0]   //配置阈值映射空间
        	},
      		"faild_field":{}
        }, 
    }
}
```
