You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

6.0 KiB

测试指令

弹窗相关指令

<!-- alert、confirm、prompt -->


Report:(19002)
{

    "command":"AlertEvent",
    "data":{
        "alertContext":"UUID",
        "dsiplayInfo":"显示信息",
        "alertEventId": 12 //暂时忽略不计
    }
}

Command:(19001)

{

    "command":"AlertEventUsrConfirm",
    "params":{
        "alertContext":"UUID"
    }
}


{

    "command":"AlertEventFrontEndConfirm",
    "params":{
        "alertContext":"UUID"
    }
}


ws://192.168.8.10:19001


开始消毒
{"command":"startDisinfection","loglevel":12,"messageId":"startDisinfection","roomVolume":0}

导出记录
{"command":"exportDisinfectionRecord","keys":["2024-0516-094233","2024-0516-092446","2024-0516-092339"],"messageId":"exportDisinfectionRecord"}

读取设备状态 
{"command": "getState"}

指示灯测试
{"command": "TestPage_WarningLightCtrl","r": 0,"g": 0,"b": 0,"w": 0}


/*******************************************************************************
 *                                  设备状态                                    *
 *******************************************************************************/


 


/*******************************************************************************
 *                                  测试页面                                   *
 *******************************************************************************/

拉杆箱消毒剂
-喷液泵转
{
    "command": "DBDBTestPage__sprayLiquidPump_run",
    "params":{
        "gpm":123
    }
}


-读取压力传感器(index == 1,2)
{
    "command": "DBDBTestPage__readPressureSensor",
    "params":{
        "index":123
    }
}
{ "ack": { "pressure": 123 }, "ackcode": 0, "messageId": null, "timeStamp": 1715941946739 }


-喷液空压机控制
{
    "command": "DBDBTestPage__sprayAirCompressorPowerCtrl",
    "params":{
        "power":1
    }
}

-气密性空压机-控制
{
    "command": "DBDBTestPage__airTightnessTestAirCompressorPowerCtrl",
    "params":{
        "power":1
    }
}


-加热空压机控制
{
    "command": "DBDBTestPage__heaterCtrl",
    "params":{
        "power":1
    }
}
-加热空压机安全电磁阀控制
{
    "command": "DBDBTestPage__heaterCtrlSafeValve",
    "params":{
        "power":1
    }
}
-加热片电流读取
{
    "command": "DBDBTestPage__heaterReadElectricCurrent"
}
-加热片温度读取
{
    "command": "DBDBTestPage__heaterReadTemperatureData"
}
{ "ack": { "temperature": 45 }, "ackcode": 0, "messageId": null, "timeStamp": 1715942093615 }

-风机控制(0->100)
{
    "command": "DBDBTestPage__miniPwmBlowerCtrl",
    "params":{
        "power100":90
    }
}

-外部通道控制(可以选择通道},disinfectionChannel,dehumidificationChannel,degradationChannel)
{
    "command": "DBDBTestPage__extValveCtrl",
    "params":{
        "channel":"disinfectionChannel"
    }

-外部电磁阀板是否在线
{
    "command": "DBDBTestPage__extValBoardIsOnline"
}
{ "ack": { "isOnline": false }, "ackcode": 0, "messageId": null, "timeStamp": 1715942221499 }
{
    "command": "selftest_setH2O2Val",
    "params": {
        "random": false,
        "sensors": [
            {
                "sensorid": 0,
                "h2o2": 0,
                "humid": 50,
                "temp": 50,
                "sat": 50,
                "state": 1
            },
            {
                "sensorid": 1,
                "h2o2": 0,
                "humid": 51,
                "temp": 51,
                "sat": 51,
                "state": 1
            },
            {
                "sensorid": 2,
                "h2o2": 0,
                "humid": 52,
                "temp": 52,
                "sat": -1,
                "state": 1
            }
        ]
    }
}
// 消毒机拉杆箱
{
  "command": "RealtimeSensorDataReport",
  "sensor_data": {
    "draw_bar_box_disinfection": {
      "heatingStrip": {
        "current": 0,
        "temperature": 0
      },
      "pressure": [
        0,
        0
      ]
    },
    "h2o2_1": 0,
    "h2o2_2": -1,
    "h2o2_3": -1,
    "h2o2_sensor_state_1": true,
    "h2o2_sensor_state_2": false,
    "h2o2_sensor_state_3": false,
    "humid_1": 34,
    "humid_2": -1,
    "humid_3": -1,
    "saturation_1": 32,
    "saturation_2": 0,
    "saturation_3": 0,
    "temp_1": 30,
    "temp_2": -1,
    "temp_3": -1
  },
  "timeStamp": 1716281819391
}


{
    "ackcode": 0,
    "disinfectionConfig": {
        "continued_gs": 0,
        "continued_humi": 0,
        "continued_satur": 0,
        "injection_pump_speed": -441009434,
        "loglevel": 0,
        "stoped_gs": 0,
        "stoped_humi": 0,
        "stoped_satur": 0
    },
    "messageId": null,
    "state": {
        "disinfectionState": {
            "dvalue": 0.0,
            "estimatedRemainingTimeS": 0,
            "id": "",
            "nowlog": 0.0,
            "preHeat": false,
            "preHeatRaminTimeS": 0,
            "targetlog": 0,
            "workState": 5
        },
        "disinfectionWorkState": 5,
        "disinfection_id": "",
        "estimatedRemainingTimeS": 0,
        "isLogin": false,
        "loginuser": "",
        "permissionLevel": 11,
        "preHeat": false,
        "preHeatRaminTimeS": 0,
        "sensor_data": {
            "draw_bar_box_disinfection": {
                "heatingStrip": {
                    "current": 0,
                    "temperature": 0
                },
                "pressure": [
                    0,
                    0
                ]
            },
            "h2o2_1": 0,
            "h2o2_2": -1,
            "h2o2_3": -1,
            "h2o2_sensor_state_1": true,
            "h2o2_sensor_state_2": false,
            "h2o2_sensor_state_3": false,
            "humid_1": 35,
            "humid_2": -1,
            "humid_3": -1,
            "saturation_1": 33,
            "saturation_2": 0,
            "saturation_3": 0,
            "temp_1": 30,
            "temp_2": -1,
            "temp_3": -1
        }
    },
    "subboardstate": {
        "extChannelCtrlBoard": {
            "online": 0
        }
    },
    "timeStamp": 1716281920885
}