| | |
| | | * @throws Exception 异常 |
| | | */ |
| | | protected void doParse(byte[] bs, int bsLen, String dataCode, Data data) throws Exception { |
| | | DataV202404 dV1 = (DataV202404)data.getSubData() ; |
| | | DataV202404 dV202404 = (DataV202404)data.getSubData() ; |
| | | DataCd56Vo cdData = new DataCd56Vo(CodeV202404.getCodeName(dataCode)) ; |
| | | dV1.subData = cdData ; |
| | | dV202404.subData = cdData ; |
| | | int index = ProtocolConstantV206V202404.dataIndex ; |
| | | cdData.controllerType = ByteUtil.bytes2Hex(bs, false, index, 1) ; |
| | | |
| | |
| | | cdData.waterAlarm = ByteUtil.BCD2Int_LE(bs, index, index + 1) ; |
| | | |
| | | index += 2 ; |
| | | cdData.moneyAlarm = ByteUtil.BCD2Int_LE(bs, index, index + 1) ; |
| | | cdData.moneyAlarm = ByteUtil.BCD2Int_LE(bs, index, index + 1)/100 ; |
| | | |
| | | } |
| | | } |