liurunyu
2024-05-23 4209a352833999d7fbd1f44aa4da20ea729bea79
pipIrr-platform/pipIrr-web/pipIrr-mwTest-web/src/main/java/com/dy/pipIrrMwTestWeb/test/CommandCtrl.java
@@ -21,13 +21,21 @@
    @GetMapping(path = "test")
    public BaseResponse<String> test() {
        //return this.connect() ;//连接通信中间件测试
        //return this.cdXY(CodeV202404.cd_30) ;//发送固定参数XY的命令
        //return this.cdXY(CodeV202404.cd_9C) ;//发送固定参数XY的命令
        //return this.cd55(1) ;
        //return this.cd15() ;
        //return this.cd16() ;
        //return this.cd21() ;
        //return this.cd22() ;
        //return this.cd23() ;
        //return this.cd24() ;
        //return this.cd26() ;
        //return this.cd31() ;
        return this.cd92() ;
        //return this.cd86() ;
        //return this.cd87() ;
        //return this.cd92() ;
        //return this.cd93() ;
        return this.cd9C() ;
    }
    /**
@@ -80,8 +88,8 @@
        comVo.controllerType = CommandCtrl.controllerType ;
        comVo.projectNo = CommandCtrl.projectNo  ;
        comVo.channel = 1 ;//IP通道号(取值范围 1、2).
        comVo.ip = "111.222.123.321" ;//IP(例如 125.235.35.89)
        comVo.port = 60000 ;///端口号(0~65536)
        comVo.ip = "8.140.180.59" ;//IP(例如 125.235.35.89)
        comVo.port = 6001 ;///端口号(0~65536)
        return this.sendCom2Mw(this.command(CodeV202404.cd_21, comVo, null)) ;
    }
@@ -90,8 +98,8 @@
        ComCd22Vo comVo = new ComCd22Vo() ;
        comVo.controllerType = CommandCtrl.controllerType ;
        comVo.projectNo = CommandCtrl.projectNo  ;
        comVo.maxAmountYear = 12345 ;//机井年最大用水量单位:m3 整数,取值范围0~99999999
        comVo.limitLevel = 123.4; //水位下限 单位:m 取值范围:0~9999.99
        comVo.maxAmountYear = 99998888 ;//机井年最大用水量单位:m3 整数,取值范围0~99999999
        comVo.limitLevel = 9978.60; //水位下限 单位:m 取值范围:0~9999.99
        return this.sendCom2Mw(this.command(CodeV202404.cd_22, comVo, null)) ;
    }
@@ -101,8 +109,8 @@
        comVo.controllerType = CommandCtrl.controllerType ;
        comVo.projectNo = CommandCtrl.projectNo  ;
        comVo.channel = 1 ;//IP通道号(取值范围 1、2).
        comVo.domain = "www.baidu.com" ;//域名(例如 dayuyanjiuyuan.to),最大长度42字符
        comVo.port = 60000 ;///端口号(0~65536)
        comVo.domain = "dayuyanjiuyuan.top" ;//域名(例如 dayuyanjiuyuan.top),最大长度42字符
        comVo.port = 6001 ;///端口号(0~65536)
        return this.sendCom2Mw(this.command(CodeV202404.cd_23, comVo, null)) ;
    }
@@ -111,7 +119,7 @@
        ComCd24Vo comVo = new ComCd24Vo() ;
        comVo.controllerType = CommandCtrl.controllerType ;
        comVo.projectNo = CommandCtrl.projectNo  ;
        comVo.registerNo = "102030405060708090" ;//域名(例如 dayuyanjiuyuan.to),最大长度42字符
        comVo.registerNo = "10203040506070809000" ;//
        return this.sendCom2Mw(this.command(CodeV202404.cd_24, comVo, null)) ;
    }
@@ -120,8 +128,7 @@
        ComCd26Vo comVo = new ComCd26Vo() ;
        comVo.controllerType = CommandCtrl.controllerType ;
        comVo.projectNo = CommandCtrl.projectNo  ;
        comVo.ipChannel = 1  ;//IP通道号 0x01:1通道 0x02:2通道.
        comVo.maxAmountYear = 123456  ;//设备终端年用水量 单位:m3 整数,取值范围0~99999999
        comVo.maxAmountYear = 200  ;//设备终端年用水量 单位:m3 整数,取值范围0~99999999
        return this.sendCom2Mw(this.command(CodeV202404.cd_26, comVo, null)) ;
    }
@@ -208,6 +215,16 @@
        return this.sendCom2Mw(this.command(CodeV202404.cd_93, comVo, null)) ;
    }
   //平台/APP远程关闭水泵/阀门(AFN=0x93H/AFN=0xA3H)
    private BaseResponse cd9C(){
        ComCd9CVo comVo = new ComCd9CVo() ;
        comVo.controllerType = CommandCtrl.controllerType ;
        comVo.projectNo = CommandCtrl.projectNo  ;
        comVo.icCardAddr = "04BEA5BB" ;//
        return this.sendCom2Mw(this.command(CodeV202404.cd_9C, comVo, null)) ;
    }
    //平台/APP远程关闭水泵/阀门(AFN=0x93H/AFN=0xA3H)
    private BaseResponse cdA3(){
        ComCd93_A3Vo comVo = new ComCd93_A3Vo() ;