全功能逆变/假负载61850通信程序
DELL
2024-07-02 cf280153707c17c5a5264c184118d43656c7868c
启动核容是判断操作是否成功
2个文件已修改
2个文件已添加
45 ■■■■■ 已修改文件
iec61852_forQGN/bin/batt_61852_dev_x64_logs/error-20240701-1.log.gz 补丁 | 查看 | 原始文档 | blame | 历史
iec61852_forQGN/bin/batt_61852_dev_x64_logs/info-20240701-1.log.gz 补丁 | 查看 | 原始文档 | blame | 历史
iec61852_forQGN/bin/com/dec/fbs9100/BTS_61851_SocketClient.class 补丁 | 查看 | 原始文档 | blame | 历史
iec61852_forQGN/src/com/dec/fbs9100/BTS_61851_SocketClient.java 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
iec61852_forQGN/bin/batt_61852_dev_x64_logs/error-20240701-1.log.gz
Binary files differ
iec61852_forQGN/bin/batt_61852_dev_x64_logs/info-20240701-1.log.gz
Binary files differ
iec61852_forQGN/bin/com/dec/fbs9100/BTS_61851_SocketClient.class
Binary files differ
iec61852_forQGN/src/com/dec/fbs9100/BTS_61851_SocketClient.java
@@ -1578,7 +1578,8 @@
                if(!setBTSPublicKeyY(getUKEYRootDomStr(FBSDeviceName)+"/ncdGGIO1.SPCSO1"));
                comm_res = BTS_IEC61851_Write_CO_Node(FBSDeviceName + "/ncdGGIO1.SPCSO1.Oper", true);
                //comm_res = checkMakeSuccess(0);
                comm_res = true;
                comm_res = checkOperationSuccess();
                //comm_res = true;
                //---------------------------------Log Level.WARN-------------------------------------//
                logger.printf(Level.WARN, "DevIp:%s DevId:%d operate FBS9100_ComBase.CMD_StartDischarge, res:%b", FBSDeviceIp,m_FBSDevId, comm_res);
                //-------------------------------------------------------------------------------------//
@@ -1586,7 +1587,8 @@
                if(!setBTSPublicKeyY(getUKEYRootDomStr(FBSDeviceName)+"/ncdGGIO1.SPCSO2"));
                comm_res = BTS_IEC61851_Write_CO_Node(FBSDeviceName + "/ncdGGIO1.SPCSO2.Oper", true);
                //comm_res = checkMakeSuccess(2);
                comm_res = true;
                //comm_res = true;
                comm_res = checkOperationSuccess();
                //---------------------------------Log Level.WARN-------------------------------------//
                logger.printf(Level.WARN, "DevIp:%s operate FBS9100_ComBase.CMD_StartResDischarge, res:%b", FBSDeviceIp, comm_res);
                //-------------------------------------------------------------------------------------//
@@ -1594,7 +1596,8 @@
                if(!setBTSPublicKeyY(getUKEYRootDomStr(FBSDeviceName)+"/ncdGGIO1.SPCSO3"));
                comm_res = BTS_IEC61851_Write_CO_Node(FBSDeviceName + "/ncdGGIO1.SPCSO3.Oper", true);
                //comm_res = checkMakeSuccess(1);
                comm_res = true;
                //comm_res = true;
                comm_res = checkOperationSuccess();
                //---------------------------------Log Level.WARN-------------------------------------//
                logger.printf(Level.WARN, "DevIp:%s operate FBS9100_ComBase.CMD_StartKIDI, res:%b", FBSDeviceIp, comm_res);
                //-------------------------------------------------------------------------------------//
@@ -2042,7 +2045,7 @@
                if(!setBTSPublicKeyY("CPSS/cheGGIO" + bg_num + ".Para10.setMag.f"));
                writeNodeData(ZJDYCPSS + "/cheGGIO" + bg_num + ".Para10.setMag.f", "SP", m_FBS_AlmParam.moncap_low_val);
            }
            comm_res = true;
            //comm_res = true;
        } catch (Exception e) {
            // TODO Auto-generated catch block
            logger.error(e.toString(), e);
@@ -2083,6 +2086,40 @@
        }
        return success;
    }
    public boolean checkOperationSuccess() {
        boolean success = false;
        try {
            Thread.sleep(4500);
        } catch (InterruptedException e1) {
            logger.error(e1.toString(), e1);
        }
        int okcount = 0;
        for (int i = 0; i < 85; i++) {
            //System.out.println("验签校验返回signOpRes:" + readInt64NodeData(FBSDeviceName + "/btgGGIO1.signOpRes.mag.i", Fc.MX));
//            int value = (int) (readInt64NodeData(FBSDeviceName + "/ncdGGIO1.AnIn119.mag.i", Fc.MX));
            //操作失败原因
            int value = (int)readInt64NodeData(FBSDeviceName + "/btgGGIO1.AnIn28.mag.i",Fc.MX);
            if (value == FBS9100_ComBase.CMD_NULL) {
                // System.out.println("操作结果:" + value+"==="+MyUtil.power(2, count));
                okcount++;
                if (okcount >= 8) {
                    // System.out.println("校验成功===="+i);
                    success = true;
                    break;
                }
            } else {
                okcount = 0;
            }
            try {
                sleep(100);
            } catch (InterruptedException e) {
                logger.error(e.toString(), e);
            }
        }
        return success;
    }
    // int min = Arrays.stream(m_FBS_VCData.vol).min().getAsInt();
    // System.out.println(min);