| | |
| | | |
| | | b = bs[index + 1] ; |
| | | vo.alarm0MoneyRemain = (byte)(b & 0x1) ; |
| | | vo.alarmInnerDoor = (byte)((b >> 1) & 1) ; |
| | | vo.alarmOuterDoor = (byte)((b >> 2) & 1) ; |
| | | vo.alarmDoor = (byte)((b >> 1) & 1) ; |
| | | vo.alarmBatteryVolt = (byte)((b >> 2) & 1) ; |
| | | vo.alarmEleMiss = (byte)((b >> 3) & 1) ; |
| | | vo.alarmEleExceed = (byte)((b >> 4) & 1) ; |
| | | vo.alarmEleLowVolt = (byte)((b >> 5) & 1) ; |
| | | vo.stateIcEnable = (byte)((b >> 6) & 1) ; |
| | | vo.stateOpClValve = (byte)((b >> 7) & 1) ; |
| | | |
| | | b = bs[index + 2] ; |
| | | vo.alarmBlockValve = (byte)(b & 0x1) ; |
| | | } |
| | | |
| | | public static String parseTp(byte[] bs, short index){ |
| | |
| | | cdData.projectNo = (int)bs[index]; |
| | | |
| | | index ++ ; |
| | | cdData.opType = bs[index]; |
| | | cdData.clType = bs[index]; |
| | | |
| | | index++ ; |
| | | cdData.icCardAddr = ByteUtil.bytes2Hex(bs, false, index, 4) ; |