|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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.DataCd3CAnd65Vo; | 
|---|
|  |  |  | import com.dy.common.util.ByteUtilUnsigned; | 
|---|
|  |  |  | import org.apache.logging.log4j.LogManager; | 
|---|
|  |  |  | import org.apache.logging.log4j.Logger; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @Author liurunyu | 
|---|
|  |  |  | * @Date 2024/01/13 10:40 | 
|---|
|  |  |  | * @LastEditTime 2024/01/13 10:40 | 
|---|
|  |  |  | * @Date 2024/4/10 18:42 | 
|---|
|  |  |  | * @LastEditTime 2024/4/10 18:42 | 
|---|
|  |  |  | * @Description | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @AnnotationCodeUp(ifAny={ | 
|---|
|  |  |  | CodeV1_0_1.cd_65 | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @SuppressWarnings("unused") | 
|---|
|  |  |  | public class Cd_65_Up implements CodeParse { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private static final Logger log = LogManager.getLogger(Cd_65_Up.class); | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | protected void doParse(byte[] bs, int bsLen, String dataCode, Data data) throws Exception { | 
|---|
|  |  |  | DataV1_0_1 dV1 = (DataV1_0_1)data.getSubData() ; | 
|---|
|  |  |  | DataCd65Vo cdData = new DataCd65Vo() ; | 
|---|
|  |  |  | dV1.dataCd65Vo = cdData ; | 
|---|
|  |  |  | short index = ProtocolConstantV206V1_0_0.dataIndex ; | 
|---|
|  |  |  | String ip1 = "" + ByteUtilUnsigned.byte2Byte(bs, index++) ; | 
|---|
|  |  |  | String ip2 = "" +ByteUtilUnsigned.byte2Byte(bs, index++) ; | 
|---|
|  |  |  | String ip3 = "" +ByteUtilUnsigned.byte2Byte(bs, index++) ; | 
|---|
|  |  |  | String ip4 = "" +ByteUtilUnsigned.byte2Byte(bs, index++) ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | cdData.ip = ip1 + "." + ip2 + "." + ip3 + "." + ip4 ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | String port = "" +ByteUtilUnsigned.bytes2Short_LE(bs, index++) ; | 
|---|
|  |  |  | cdData.port = Integer.parseInt(port) ; | 
|---|
|  |  |  | DataCd3CAnd65Vo cdData = new DataCd3CAnd65Vo() ; | 
|---|
|  |  |  | dV1.subData = cdData ; | 
|---|
|  |  |  | int minute = ByteUtilUnsigned.bytes2Short_LE(bs, ProtocolConstantV206V1_0_0.dataIndex) ; | 
|---|
|  |  |  | cdData.minute =minute ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|