| | |
| | | bsHead[index] = commonV_1.createCtrl((byte) 0, (byte) 0); |
| | | |
| | | index++; |
| | | GlCreate.createRtuAddr(para.rtuAddr, bsHead, index); |
| | | GlCreate.createRtuAddr4P206(para.rtuAddr, bsHead, index); |
| | | index += 5; |
| | | |
| | | ByteUtil.hex2Bytes(para.commandCode, bsHead, index); |
| | |
| | | index = 0; |
| | | byte[] bs = new byte[13]; |
| | | |
| | | GlCreate.createRtuAddr(cvo.rtuAddr, bs, index); |
| | | GlCreate.createRtuAddr4P206(cvo.rtuAddr, bs, index); |
| | | index += 5; |
| | | GlCreate.createPw(bs, index); |
| | | index += 2; |
| | |
| | | |
| | | GlCreate.createLen(bytes);//长度放字节数组中 |
| | | |
| | | byte[] bsTail = GlCreate.createCrcTail(bytes);//CRC和尾叠加字节数组中 |
| | | byte[] bsTail = GlCreate.createCrcTail4P206(bytes);//CRC和尾叠加字节数组中 |
| | | |
| | | bytes = ByteUtil.bytesMerge(bytes, bsTail); |
| | | |