互联测控终端
  1. 系统设置
互联测控终端
  • 登录
    • 登录
  • 场景刀具
    • 场景(刀具)查询
    • 场景(刀具)极大值清零
    • 场景(刀具)立即生效
    • 场景(刀具)修改
    • 特殊场景
    • 恢复正常加工
    • 特殊加工延时
    • 批量场景(刀具)修改
    • 分页读取刀具
    • 使用率历史数据查询
    • 历史振动数据查询
    • 历史极大值及AI推荐值查询
    • 批量修改参数
    • 分页读取刀具 单场景读取
    • 分页读取刀具 数组
    • 分页读取刀具 区间
    • 分页读取刀具 带场景
  • 系统设置
    • 网卡设置
      POST
    • 网卡立即生效
      POST
    • 网络连接测试
      POST
    • 获取系统设置
      POST
    • 系统设置
      POST
    • 系统配置字典查询
      POST
    • 服务重启
      POST
    • 传感器固件升级
      POST
    • 服务器网络连接设置
      POST
    • 传感器设置
      POST
    • 复制参数
      POST
    • 执行shell
      POST
    • 传感器设置读取
      POST
    • 传感器属性设置
      POST
    • 传感器断电重启
      POST
    • 风扇设置
      POST
    • 添加读取NC
      POST
    • 编辑读取NC
      POST
    • 删除读取NC
      POST
    • 编辑NC读取信息
      POST
    • 配置页面NC重启
      POST
    • NC采集开关设置
      POST
    • 公用刀号设置
      POST
    • 恢复出厂设置
      POST
    • 系统操作日志查询
      POST
    • 报警模式设置
      POST
    • 设置WIFI
      POST
    • ssh远程设置
      POST
    • 上下限设置
      POST
    • 上下限读取
      POST
    • 上下限读取 Copy
      POST
    • 极性设置
      POST
    • 刀具报警统计
      POST
  • 日志
    • 日志分页查询
    • 清理日志
    • 系统运行日志
  • 实时数据
    • 上位机
    • 网页实时数据WebSocket
    • 当前场景信息查询
  1. 系统设置

公用刀号设置

POST
/api/system/set
setInfo内部字段与格式与返回的sysInfo一致

请求参数

Body 参数application/json
setInfo
object 
必需
detectors
array [object {5}] 
必需
warnMode
integer 
报警模式
必需
warnTime
integer 
报警时长
必需
示例
{
	"setInfo": {
		"detectors": [{
			"highPass": 2, // 高通
			"index": 0,  // 索引 按返回值填充
			"lowPass": 1, // 低通
			"state": 0,  //状态 0关闭 1开启
			"type": 5  //类型
		}, {
			"highPass": 3,
			"index": 1,
			"lowPass": 2,
			"state": 0,
			"type": 6
		}, {
			"highPass": 4,
			"index": 2,
			"lowPass": 3,
			"state": 0,
			"type": 7
		}, {
			"highPass": 5,
			"index": 3,
			"lowPass": 4,
			"state": 0,
			"type": 8
		}],
		
		"warnMode": 218,  // 报警模式
		"warnTime": 2585, // 报警时长
		"schedule":4,  // 排班表类型(没有此项单发workTime无效~!)
		"workTime":[490,1280,1280,490,720,780,840,900]
	}
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/system/set' \
--header 'Content-Type: application/json' \
--data-raw '{
	"setInfo": {
		"detectors": [{
			"highPass": 2, // 高通
			"index": 0,  // 索引 按返回值填充
			"lowPass": 1, // 低通
			"state": 0,  //状态 0关闭 1开启
			"type": 5  //类型
		}, {
			"highPass": 3,
			"index": 1,
			"lowPass": 2,
			"state": 0,
			"type": 6
		}, {
			"highPass": 4,
			"index": 2,
			"lowPass": 3,
			"state": 0,
			"type": 7
		}, {
			"highPass": 5,
			"index": 3,
			"lowPass": 4,
			"state": 0,
			"type": 8
		}],
		
		"warnMode": 218,  // 报警模式
		"warnTime": 2585, // 报警时长
		"schedule":4,  // 排班表类型(没有此项单发workTime无效~!)
		"workTime":[490,1280,1280,490,720,780,840,900]
	}
}'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
currentKnifeNum
integer 
必需
currentSceneNum
integer 
必需
deviceName
string 
必需
knifeNum
integer 
必需
msg
integer 
必需
sceneNum
integer 
必需
sceneSize
integer 
必需
specialSceneNum
integer 
必需
sysInfo
object 
必需
IOConfig
integer 
必需
adminPassword
integer 
必需
autoLearnState
integer 
必需
autoRatioState
integer 
必需
copIP
string 
必需
copMAC
string 
必需
copVersion
string 
必需
currentWarnCount
integer 
必需
currentWarnGapTime
integer 
必需
detectorSize
integer 
必需
detectors
array [object {15}] 
必需
elecKeepTime
integer 
必需
fpgaVersion
integer 
必需
funcConfig
integer 
必需
funcVersion
integer 
必需
fwVersion
string 
必需
highElecKeepTime
integer 
必需
interfaces
array [object {5}] 
必需
iotState
integer 
必需
knifeMode
integer 
必需
mcuIP
string 
必需
mcuMAC
string 
必需
mcuVersion
string 
必需
multiG01Optim
integer 
必需
nc
object 
必需
ncInfos
array [object {21}] 
必需
ncState
integer 
必需
netTestState
integer 
必需
pcIP
string 
必需
pcMAC
string 
必需
ratioMode
integer 
必需
sceneMode
integer 
必需
schedule
integer 
必需
sensors
array [object {8}] 
必需
specialSceneCleanTime
integer 
必需
version
integer 
必需
warnGapTime
integer 
必需
warnMode
integer 
必需
warnTime
integer 
必需
workTime
array[integer]
必需
tabId
integer 
必需
timestamp
integer 
必需
示例
{
    "code": 0,
    "currentKnifeNum": 0,
    "currentSceneNum": 0,
    "deviceName": "string",
    "knifeNum": 0,
    "msg": 0,
    "sceneNum": 0,
    "sceneSize": 0,
    "specialSceneNum": 0,
    "sysInfo": {
        "IOConfig": 0,
        "adminPassword": 0,
        "autoLearnState": 0,
        "autoRatioState": 0,
        "copIP": "string",
        "copMAC": "string",
        "copVersion": "string",
        "currentWarnCount": 0,
        "currentWarnGapTime": 0,
        "detectorSize": 0,
        "detectors": [
            {
                "alarm": 0,
                "autoRatioValue": 0,
                "dataIndex": 0,
                "dataLength": 0,
                "highPass": 0,
                "index": 0,
                "iot": 0,
                "lowPass": 0,
                "max": 0,
                "real": 0,
                "sensor": 0,
                "sensorMAC": 0,
                "state": 0,
                "type": 0,
                "version": 0
            }
        ],
        "elecKeepTime": 0,
        "fpgaVersion": 0,
        "funcConfig": 0,
        "funcVersion": 0,
        "fwVersion": "string",
        "highElecKeepTime": 0,
        "interfaces": [
            {
                "gateWay": "string",
                "ip": "string",
                "mac": "string",
                "name": "string",
                "netmask": "string"
            }
        ],
        "iotState": 0,
        "knifeMode": 0,
        "mcuIP": "string",
        "mcuMAC": "string",
        "mcuVersion": "string",
        "multiG01Optim": 0,
        "nc": {
            "brand": "string",
            "index": 0,
            "ip": "string",
            "model": "string",
            "port": 0,
            "protocol": 0,
            "sampleInterval": 0,
            "version": "string"
        },
        "ncInfos": [
            {
                "addr": "string",
                "addrBit": 0,
                "addrInt": 0,
                "bias": 0,
                "byteOrder": 0,
                "dataId": 0,
                "dataProcess": 0,
                "dataProcessFormula": "string",
                "dataType": 0,
                "index": 0,
                "isBit": true,
                "isUse": true,
                "length": 0,
                "mode": 0,
                "name": "string",
                "resultLength": 0,
                "resultStart": 0,
                "scale": 0,
                "send": "string",
                "sendBytesLength": 0,
                "value": 0
            }
        ],
        "ncState": 0,
        "netTestState": 0,
        "pcIP": "string",
        "pcMAC": "string",
        "ratioMode": 0,
        "sceneMode": 0,
        "schedule": 0,
        "sensors": [
            {
                "deviceCheck": "string",
                "deviceID": "string",
                "deviceIP": "string",
                "deviceName": "string",
                "deviceType": 0,
                "deviceTypeStr": "string",
                "mainVersion": "string",
                "subVersion": "string"
            }
        ],
        "specialSceneCleanTime": 0,
        "version": 0,
        "warnGapTime": 0,
        "warnMode": 0,
        "warnTime": 0,
        "workTime": [
            0
        ]
    },
    "tabId": 0,
    "timestamp": 0
}
上一页
NC采集开关设置
下一页
恢复出厂设置
Built with