V1.108 2022-03-03
1.修改通信端口号为8060
2.组1组2的组端电压<1.7V===>0V
| | |
| | |
|
| | | sysState.makeDevCommDataFlowSum(cipher_buf.length);
|
| | |
|
| | | //System.err.println("数据长度"+cipher_buf.length+"\t返回数据:"+ ComFn.bytesToHexString(cipher_buf, cipher_buf.length));
|
| | | //System.out.println("数据长度"+cipher_buf.length+"\t返回数据:"+ ComFn.bytesToHexString(cipher_buf, cipher_buf.length));
|
| | | //Log.e(TAG, "SocketComm: "+ComFn.bytesToHexString(plain_buf, plain_buf.length));
|
| | | if(true == getDataFromCommBuf(cipher_buf)) {
|
| | | res_t = true;
|
| | |
| | |
|
| | | batt1_vol = bf.getFloat(); //电池组1电压
|
| | | batt2_vol = bf.getFloat(); //电池组2电压
|
| | | //消除无2组电池情况下有组端电压的情况
|
| | | if(batt1_vol < 1.7) {
|
| | | batt1_vol = 0;
|
| | | }
|
| | | if(batt2_vol <1.7) {
|
| | | batt2_vol = 0;
|
| | | }
|
| | | currBattNum = FGCD_ComBase.changeByteToInt(bf.get());
|
| | | endoscopeState = FGCD_ComBase.changeByteToInt(bf.get());
|
| | | for(int i = 0 ; i < backup.length ; i++) {
|