| | |
| | | sql.sqlMysqlUseDB(Sql_Mysql.DB_BATT_INF);
|
| | |
|
| | | String sql_str = "SELECT DISTINCT "
|
| | | + " FBSDeviceId,FBSDeviceIp,BattGroupName6,GroupIndexInFBSDevice,FBSDeviceName,"
|
| | | + " FBSDeviceId,FBSDeviceIp,BattGroupName6,GroupIndexInFBSDevice,FBSDeviceName,comm_port,"
|
| | | + " BattGroupId,BattGroupNum,MonCount,BattFloatCurrent,FloatVolLevel,MonCapStd,MonVolStd"
|
| | | + " FROM " + Sql_Mysql.BattInf_Table
|
| | | + " WHERE FLOOR(FBSDeviceId/10000)=61852"
|
| | |
| | | float float_vol_lev = res.getFloat("FloatVolLevel");
|
| | | float float_curr_lev = res.getFloat("BattFloatCurrent");
|
| | | int GroupIndexInFBSDevice = res.getInt("GroupIndexInFBSDevice");
|
| | | int commPort = res.getInt("comm_port"); //通信端口
|
| | | if(commPort == 0) {
|
| | | commPort = 102;
|
| | | }
|
| | | |
| | | if(GroupIndexInFBSDevice > 3) {
|
| | | GroupIndexInFBSDevice = 3;
|
| | | }
|
| | |
| | |
|
| | | if(GroupIndexInFBSDevice != brt.GroupIndexInFBSDevice) {
|
| | | brt.GroupIndexInFBSDevice = GroupIndexInFBSDevice;
|
| | | param_changed = true;
|
| | | }
|
| | | |
| | | if(commPort != brt.getCommPort()) {
|
| | | brt.setCommPort(commPort);
|
| | | param_changed = true;
|
| | | }
|
| | |
|
| | |
| | | if(rtdata.MonCount < 0) {
|
| | | rtdata.MonCount = 0;
|
| | | }
|
| | | |
| | | rtdata.setCommPort(commPort); //设置通信端口
|
| | | rtdata.MonStdCap = res.getFloat("MonCapStd");
|
| | | rtdata.MonStdVol = res.getFloat("MonVolStd");
|
| | | rtdata.setBattFloatVolCurrLevel(res.getFloat("FloatVolLevel"), res.getFloat("BattFloatCurrent"));
|