|  |  | 
 |  |  |  | 
 |  |  | import com.dy.common.mw.protocol.*; | 
 |  |  | import com.dy.common.mw.protocol.p206V1_0_0.*; | 
 |  |  | import com.dy.common.util.ByteUtilUnsigned; | 
 |  |  | import org.apache.logging.log4j.LogManager; | 
 |  |  | import org.apache.logging.log4j.Logger; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * @Author liurunyu | 
 |  |  |  * @Date 2023/12/23 9:48 | 
 |  |  |  * @LastEditTime 2023/12/23 9:48 | 
 |  |  |  * @Date 2024/01/13 10:40 | 
 |  |  |  * @LastEditTime 2024/01/13 10:40 | 
 |  |  |  * @Description | 
 |  |  |  */ | 
 |  |  | @AnnotationCodeUp(ifAny={ | 
 |  |  | 
 |  |  |      * @throws Exception 异常 | 
 |  |  |      */ | 
 |  |  |     protected void doParse(byte[] bs, int bsLen, String dataCode, Data data) throws Exception { | 
 |  |  |         DataV1_0_1 dV1 = (DataV1_0_1)data.getSubData() ; | 
 |  |  |         DataCd66Vo cdData = new DataCd66Vo() ; | 
 |  |  |         dV1.subData = 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) ; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | } |