| | |
| | | * 注解相关 |
| | | */ |
| | | public static final String protocolName = "p206V202404" ; |
| | | public static final short protocolVer = 201 ; |
| | | public static final int priority = 1 ;//优先级 |
| | | /** |
| | | * RTU上线数据(上线后第一包数据)最小长度,设置该属性以备进行完整性检查, |
| | |
| | | public static final int headMinLength = 3 ; |
| | | |
| | | //帧起始 |
| | | public static final byte P_Head_Byte = (byte)0x68 ; |
| | | public static final byte P_Head_Byte = (byte)0x69 ; |
| | | public static final byte P_Tail_Byte = (byte)0x16 ; |
| | | |
| | | //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_Head_Hex = "69" ; |
| | | public static final String P_Tail_Hex = "16" ; |
| | | |
| | | public static final byte lenHead2ctrl = 3 ; //从头到控制域(不包括)字节数组长度 |
| | |
| | | public static final int codeIndex = 12 ;//功能码字节数组下标 |
| | | public static final int dataIndex = 13 ;//具体数据字节数组下标 |
| | | |
| | | public static final String vsCardAddr = "00000000";//本系统应用的虚拟卡,卡物理地址采用10个0作为模拟 |
| | | |
| | | //////////////////////////////////////////////// |
| | | // |
| | | //远程升级相关 |
| | | // |
| | | //////////////////////////////////////////////// |
| | | public static final byte UG_P_Head_Byte = (byte)0xAA ; |
| | | public static final byte UG_P_Tail_Byte = (byte)0x16 ; |
| | | public static final int UG_codeIndex = 4 ;//功能码字节数组下标 |
| | | public static final int UG_dataIndex = 12 ;//具体数据字节数组下标 |
| | | |
| | | public static final int UG_dataLenIndex_start = 1 ;//帧长度开始所在 字节数组起始下标 |
| | | public static final int UG_dataLenIndex_end = 2 ;//帧长度结束所在 字节数组起始下标 |
| | | |
| | | public static final int UG_rtuAddrIndex_start = 6 ;//控制器地址 字节数组开始下标 |
| | | public static final int UG_rtuAddrIndex_end = 11 ;//控制器地址 字节数组开始下标 |
| | | |
| | | public static final byte UG_lenCmd = 2 ; //功能码字节数组长度 |
| | | public static final byte UG_lenRtuAddr = 6 ; //功能码字节数组长度 |
| | | public static final byte UG_lenHead2Cmd = 4 ; //从头到功能码(不包括)字节数组长度 |
| | | public static final byte UG_lenTail = 3 ; //帧尾部字节数组长度 |
| | | public static final byte UG_lenHead2RtuAddr = 12 ; //从头到RTU地址(包括)字节数组长度 |
| | | |
| | | |
| | | } |