| | |
| | | import com.dy.common.mw.protocol.p206V2.CodeV2; |
| | | import com.dy.common.mw.protocol.p206V2.ParseParamsForDownV2; |
| | | import com.dy.common.mw.protocol.p206V2.ProtocolConstantV206V2; |
| | | import com.dy.common.mw.protocol.p206V2.parse.global.GlCreate; |
| | | import com.dy.common.mw.protocol.p206V1.parse.global.GlCreate; |
| | | import com.dy.common.util.ByteUtil; |
| | | |
| | | /** |
| | |
| | | index += 2 ; |
| | | GlCreate.createRtuAddr4PUg(para.rtuAddr, preBytes, index); |
| | | |
| | | GlCreate.createLen4PUg(preBytes);//长度放字节数组中 |
| | | |
| | | byte[] bsTail = GlCreate.createCrcTail4Ug(preBytes) ;//CRC和尾叠加字节数组中 |
| | | |
| | | return ByteUtil.bytesMerge(preBytes, bsTail) ; |