| | |
| | | |
| | | import com.dy.common.mw.protocol.*; |
| | | import com.dy.common.mw.protocol.p206V1_0_0.*; |
| | | import com.dy.common.mw.protocol.p206V1_0_0.upVos.DataCd38And68Vo; |
| | | import com.dy.common.util.ByteUtil; |
| | | import com.dy.common.util.ByteUtilUnsigned; |
| | | import org.apache.logging.log4j.LogManager; |
| | | import org.apache.logging.log4j.Logger; |
| | |
| | | * @throws Exception 异常 |
| | | */ |
| | | protected void doParse(byte[] bs, int bsLen, String dataCode, Data data) throws Exception { |
| | | // DataV1_0_1 dV1 = (DataV1_0_1)data.getSubData() ; |
| | | // DataCd38Vo cdData = new DataCd38Vo() ; |
| | | // dV1.subData = cdData ; |
| | | // int remainMoneyAlarmInt = ByteUtilUnsigned.bytes2Short_LE(bs, ProtocolConstantV206V1_0_0.dataIndex) ; |
| | | // cdData.remainMoneyAlarm = remainMoneyAlarmInt/100.0D; |
| | | DataV1_0_1 dV1 = (DataV1_0_1)data.getSubData() ; |
| | | DataCd38And68Vo cdData = new DataCd38And68Vo() ; |
| | | dV1.subData = cdData ; |
| | | int remainMoneyAlarmInt = ByteUtil.BCD2Int_LE(bs, ProtocolConstantV206V1_0_0.dataIndex, ProtocolConstantV206V1_0_0.dataIndex + 1) ; |
| | | cdData.remainMoneyAlarm = remainMoneyAlarmInt/100.0D; |
| | | } |
| | | |
| | | } |