| | |
| | | public void run() {
|
| | | Log.e(TAG, "run: battindex"+battIndex +"\t start at "+ Com.getDateTimeFormat(new Date(),Com.DTF_YMDhms));
|
| | | Date nowTime = new Date(); //当前时间
|
| | |
|
| | | int monRCount = 0; //单体读取
|
| | | int runCount = 0; //执行次数
|
| | | while(true){
|
| | |
| | | readSystemState("");
|
| | | }
|
| | |
|
| | | if(runCount % 20 == 0){
|
| | | if(runCount % 25 == 0){
|
| | | int maxCount = (int)Math.ceil((double)state.monCount/100); //最多需要读取次数
|
| | | int monindex = monRCount % maxCount; //单体索引
|
| | | //读取单体电压
|
| | |
| | | }else{
|
| | | isOutTime = false;
|
| | | }
|
| | |
|
| | | sleep(200);
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|