Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV
| | |
| | | int len = ByteUtilUnsigned.byte2Byte(bs, ProtocolConstantV206V1.dataLenIndex); |
| | | return len + ProtocolConstantV206V1.lenHead2ctrl + ProtocolConstantV206V1.lenTail; |
| | | }else{ |
| | | int len = ByteUtilUnsigned.bytes2Short_LE(bs, ProtocolConstantV206V1.UG_dataLenIndex_start); |
| | | int len = ByteUtilUnsigned.bytes2Short_BE(bs, ProtocolConstantV206V1.UG_dataLenIndex_start); |
| | | return len + ProtocolConstantV206V1.UG_lenHead2Cmd + ProtocolConstantV206V1.UG_lenTail; |
| | | } |
| | | } |
| | |
| | | @JSONField(serialize = false) |
| | | public static final int STATE_FAILOFFLINE = 5 ;//4-升级失败(离线) |
| | | @JSONField(serialize = false) |
| | | public static final int RAMADDRADD = 0x20 ;//程序存储内存在址增量 |
| | | public static final int RAMADDRADD = 0x200 ;//程序存储内存在址增量 |
| | | |
| | | public String rtuAddr ; |
| | | public int state ;// -1-离线,0-未开始,1-升级中,2-升级成功,3-升级失败(1包死),4-升级失败(非1包死),5-升级失败(离线) |