|  |  | 
 |  |  | import com.dy.common.mw.protocol.*; | 
 |  |  | import com.dy.common.mw.protocol.p206V202404.*; | 
 |  |  | import com.dy.common.mw.protocol.p206V202404.parse.global.GlParse; | 
 |  |  | import com.dy.common.mw.protocol.p206V202404.upVos.DataCd02Vo; | 
 |  |  | import com.dy.common.mw.protocol.p206V202404.upVos.DataCdC2Vo; | 
 |  |  | import com.dy.common.util.ByteUtil; | 
 |  |  | import org.apache.logging.log4j.LogManager; | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     protected void doParse(byte[] bs, int bsLen, String dataCode, Data data) throws Exception { | 
 |  |  |         DataV202404 dV1 = (DataV202404)data.getSubData() ; | 
 |  |  |         DataCdC2Vo cdData = new DataCdC2Vo() ; | 
 |  |  |         DataCdC2Vo cdData = new DataCdC2Vo(CodeV202404.getCodeName(dataCode)) ; | 
 |  |  |         dV1.subData = cdData ; | 
 |  |  |         int index = ProtocolConstantV206V202404.dataIndex ; | 
 |  |  |         cdData.controllerType = ByteUtil.bytes2Hex(bs, false, index, 1) ; | 
 |  |  | 
 |  |  |             cdData.success = false ; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         if(!cdData.success){ | 
 |  |  |             return ; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         index++ ; | 
 |  |  |         GlParse.parseRtuDt(bs, index); | 
 |  |  |  | 
 |  |  |         index+= 6 ; | 
 |  |  |         GlParse.parseAlarmAndState(bs, index, cdData); | 
 |  |  |         GlParse.parseAlarmAndState(bs, index, cdData);//四个字节 | 
 |  |  |     } | 
 |  |  | } |