|  |  | 
 |  |  |         阀门:报警 | 
 |  |  |         */ | 
 |  |  |         DataAlarmVo avo = new DataAlarmVo() ; | 
 |  |  |         byte b = bs[index + 1] ; | 
 |  |  |         byte b = bs[index] ; | 
 |  |  |         avo.batteryVolt = (byte)((b & 0x2) >> 1) ; | 
 |  |  |         avo.meter = (byte)((b & 0x20) >> 5) ; | 
 |  |  |  | 
 |  |  |         b = bs[index] ; | 
 |  |  |         b = bs[index + 1] ; | 
 |  |  |         avo.loss = (byte)((b & 0x2) >> 1) ; | 
 |  |  |         avo.valve = (byte)((b & 0x4) >> 2) ; | 
 |  |  |         return avo ; | 
 |  |  | 
 |  |  |  | 
 |  |  |     public static DataStateVo parseState(byte[] bs, short index){ | 
 |  |  |         DataStateVo avo = new DataStateVo() ; | 
 |  |  |         byte b = bs[index + 1] ; | 
 |  |  |         byte b = bs[index] ; | 
 |  |  |         avo.icCard = (byte)((b & 0x4) >> 2) ; | 
 |  |  |         avo.working = (byte)((b & 0x10) >> 4) ; | 
 |  |  |         avo.valveState = (byte)((b & 0x10) >> 4) ; | 
 |  |  |         avo.powerType = (byte)((b & 0x40) >> 6) ; | 
 |  |  |         return avo ; | 
 |  |  |     } |