全功能逆变/假负载61850通信程序
iec61852_forQGN/src/com/battdata_rt/BattData_RT_Array.java
@@ -83,7 +83,7 @@
         sql.sqlMysqlUseDB(Sql_Mysql.DB_BATT_INF);
         
         String sql_str = "SELECT DISTINCT "
                     + " FBSDeviceId,FBSDeviceIp,BattGroupName6,GroupIndexInFBSDevice,FBSDeviceName,comm_port,"
                     + " FBSDeviceId,FBSDeviceIp,BattGroupName6,GroupIndexInFBSDevice,FBSDeviceName,comm_port,station_phone,"
                     + " BattGroupId,BattGroupNum,MonCount,BattFloatCurrent,FloatVolLevel,MonCapStd,MonVolStd"
                     + " FROM " + Sql_Mysql.BattInf_Table
                     + " WHERE FLOOR(FBSDeviceId/10000)=61852"
@@ -102,6 +102,8 @@
            }
            boolean batt_group_exist = false;
            String reg_code = res.getString("BattGroupName6").trim();
            String station_phone = res.getString("station_phone").trim();
            String dev_ip = res.getString("FBSDeviceIp").trim();
            float float_vol_lev = res.getFloat("FloatVolLevel");
            float float_curr_lev = res.getFloat("BattFloatCurrent");
@@ -139,6 +141,12 @@
                     param_changed = true;
                  }
                  
                  if(false == station_phone.equals(brt.icdName)) {
                     //更新icd文件
                     brt.icdName = station_phone;
                     param_changed = true;
                  }
                  if(GroupIndexInFBSDevice != brt.GroupIndexInFBSDevice) {
                     brt.GroupIndexInFBSDevice = GroupIndexInFBSDevice;
                     param_changed = true;
@@ -171,6 +179,8 @@
               rtdata.FBSDeviceName = res.getString("FBSDeviceName").trim();
               rtdata.setDevRegCode(res.getString("BattGroupName6").trim());
               rtdata.GroupIndexInFBSDevice = res.getInt("GroupIndexInFBSDevice");
               rtdata.icdName = station_phone;
               if(rtdata.GroupIndexInFBSDevice > 3) {
                  rtdata.GroupIndexInFBSDevice = 3;
               }