| | |
| | | * 注解相关 |
| | | */ |
| | | public static final String protocolName = "p206V1_0_1" ; |
| | | public static final int priority = 1 ;//优先级 |
| | | public static final int priority = 2 ;//优先级 |
| | | /** |
| | | * RTU上线数据(上线后第一包数据)最小长度,设置该属性以备进行完整性检查, |
| | | * 即断包检查,使尽可能收全上线数据(取值范围1-100) |
| | | */ |
| | | public static final int onLineDataMinLength = 30 ;//采用阀控回执(其长度最短)的字节数 |
| | | public static final int onLineDataMinLength = 13 ;//采用心跳上行数据长度 |
| | | |
| | | /** |
| | | * RTU上报数据的头部最小长度,上报数据中,取这个最小长度的部分数据中, |
| | |
| | | public static final byte P_Head_Byte = (byte)0x68 ; |
| | | public static final byte P_Tail_Byte = (byte)0x16 ; |
| | | |
| | | public static final byte P_Default_mode = (byte)0x0F ;//默认工作模式 |
| | | //00H时遥测终端在兼容工作状态;01H时遥测终端在自报工作状态;02H时遥测终端在查询/应答工作状态;03H时遥测终端在调试/维修状态。 |
| | | public static final byte P_Default_mode = (byte)0x00 ;//默认工作模式 |
| | | |
| | | public static final String P_Head_Hex = "68" ; |
| | | public static final String P_Tail_Hex = "16" ; |
| | | |
| | | public static final byte lenHead2Code = 10 ; //从头到功能码字节数组长度 |
| | | public static final byte lenHead2ctrl = 3 ; //从头到控制域(不包括)字节数组长度 |
| | | public static final byte lenHead2Code = 10 ; //从头到功能码(包括)字节数组长度 |
| | | public static final byte lenTail = 2 ; //帧尾部字节数组长度 |
| | | /** |
| | | * 所在字节数组的位置(下标) |