| | |
| | | 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);
|
| | | //-------------------------------------------------------------------------------------//
|
| | |
| | | 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);
|
| | | //-------------------------------------------------------------------------------------//
|
| | |
| | | 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);
|
| | | //-------------------------------------------------------------------------------------//
|
| | |
| | | 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);
|
| | |
| | | }
|
| | | 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);
|