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.
 
 
 
 
 

3.2 KiB

测试指令

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
            }
        ]
    }
}