充放电一体机FGCD通信程序【二期初版】
Administrator
2022-03-03 777ae9e0893a56d8a141e94c6bcac8f88f072b1b
BattMonitor_FGCD-A059NT/src/com/dev/fgcd/data/FGCD_SysState.java
@@ -2,6 +2,7 @@
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.Date;
public class FGCD_SysState {
@@ -159,6 +160,7 @@
        for(int i = 0;i<backup.length;i++) {
           backup[i] = FGCD_ComBase.changeByteToInt(bf.get());
        }
        System.out.println(this);
        return true;
    }
    
@@ -186,15 +188,24 @@
    }
    
    
    @Override
    public String toString() {
        return "DischargeData [groupVol=" + groupVol + ", tatalVol=" + tatalVol + ", nowDate=" + nowDate
                + ", chageDate=" + chageDate + ", btnState=" + btnState + ", lowerCount=" + lowerCount + ", chargeCurr="
                + chargeCurr + ", testCap=" + testCap + ", maxVolNum=" + maxVolNum + ", maxVol=" + maxVol
                + ", minVolNum=" + minVolNum + ", minVol=" + minVol + "]";
    }
    /**
    @Override
   public String toString() {
      return "FGCD_SysState [BYTE_LEN=" + BYTE_LEN + ", dev_workstate=" + dev_workstate + ", groupVol=" + groupVol
            + ", tatalVol=" + tatalVol + ", nowDate=" + nowDate + ", chageDate=" + chageDate + ", test_timelong="
            + test_timelong + ", btnState=" + btnState + ", lowerCount=" + lowerCount + ", chargeCurr=" + chargeCurr
            + ", testCap=" + testCap + ", maxVolNum=" + maxVolNum + ", maxVol=" + maxVol + ", minVolNum="
            + minVolNum + ", minVol=" + minVol + ", hhProgress=" + hhProgress + ", hhCount=" + hhCount
            + ", hhstate=" + hhstate + ", montmps=" + Arrays.toString(montmps) + ", devtmp=" + devtmp
            + ", last_devtmp=" + last_devtmp + ", tmp_alm_lock=" + tmp_alm_lock + ", dev_alarm=" + dev_alarm
            + ", on_online_vol=" + on_online_vol + ", on_group_vol=" + on_group_vol + ", diode_state=" + diode_state
            + ", char_phase=" + char_phase + ", backup=" + Arrays.toString(backup) + ", dev_captest_stop_type="
            + dev_captest_stop_type + ", dev_data_flowsum=" + dev_data_flowsum + ", dev_commcount=" + dev_commcount
            + ", dev_errcommcount=" + dev_errcommcount + "]";
   }
   /**
     * 校验当前电流
     */
   public void checkTestCurr() {