lxw
2023-12-08 c31c0f58b4b52eb95ef8f230bd823abbd0304fcb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
package com.whyc.dto;
 
public class FBS9100_ComBase {
    //机房命令
    final public static  int CMD_Start=81;
    final public static  int CMD_Stop=83;
    final public static  int CMD_SetDischargeParm=40;
    final public static  int CMD_GetDischargeParm=41;
    final public static  int CMd_SetIp_Tem=90;        //    暂时
    final public static  int CMd_SetIp_Per=88;        //    永久
 
    /**测试类型:核容测试:37,内阻测试:50*/
    public final static int CMD_CHECK_CAP =37;
 
    final public static  int CMD_StartAck=82;
    final public static  int CMD_StopAck=84;
    final public static  int CMD_SetDischargeParmAck=39;
    final public static  int CMD_GetDischargeParmAck=48;
    final public static  int CMd_SetIpAck=89;        //修改成功
    
    final public static  int CMD_StartRES=50; 
    final public static  int CMD_StartRES_ACK=51;
    //------------ 离线养护功能参数 ---------------------------------
    public static final int        CMD_GetOffLineYHParam            =    0xB0;
    public static final int        CMD_GetOffLineYHParam_ACK        =    0xB1;
    public static final int        CMD_SetOffLineYHParam            =    0xB2;
    public static final int        CMD_SetOffLineYHParam_ACK        =    0xB3;
    
    public static final int        CMD_StartOffLine                =   0xB4;
    public static final int        CMD_StartOffLine_ACK            =   0xB5;
    public static final int        CMD_StopOffLine                 =   0xB6;
    public static final int        CMD_StopOffLine_ACK             =   0xB7;
    
    
    
 
    //系统参数命令
    public static final int     CMD_GetSYSSetParamAck            =    0x7E; //126
    public static final int     CMD_SetSYSSetParamAck            =    0x7F; //127
    public static final int     CMD_GetSYSSetParam                =    0x80;//获取系统参数128
    public static final int     CMD_SetSYSSetParam                =    0x81;//设置系统参数129
    public static final int     CMD_ResetSystemAck                =     0x0F;//15
    public static final int     CMD_ResetSystem                    =     0x10;//重启16
    public static final int        CMD_ClearSysAlarm               =   0xB8;                    //清除告警            
    public static final int        CMD_ClearSysAlarm_ACK           =   0xB9;
    //61851控制开关
    public static final int  CMD_ControlSwitch    = 0x82;    //控制开关开闭
    public static final int  CMD_ControlSwitch_Ack   = 0x83;  //控制开关开闭成功
 
    //养护除硫
    final public static  int CMD_ReadFodParam=160;//读取FOD参数
    final public static  int CMD_WriteFodParam=161;//设置FOD参数
    final public static  int CMD_Start_FODCL_test=162;//启动除硫  
    final public static  int CMD_Start_FODYH_test=163;//启动养护 
    final public static  int CMD_Stop_FOD_test=164;//停止除硫
    //养护除硫对应的ACK
    final public static  int CMD_ReadFodParamAck=167;
    final public static  int CMD_WriteFodParamAck=168;
    final public static  int CMD_Start_FODCL_testAck=169; 
    final public static  int CMD_Start_FODYH_testAck=170;
    final public static  int CMD_Stop_FOD_testAck=171;
    
    //一期二期设备分类
    final public static  int EQUIPMENTCLASSIFICATION_ONE=91000000;
    final public static  int EQUIPMENTCLASSIFICATION_TWO=910000000;
    
    //BTS设备命令
    final public static int CMD_61850_START_HR=2; //核容测试启动内阻测试停止
    final public static int CMD_61850_START_RES=1; //核容测试停止内阻测试启动
    final public static int CMD_61850_STOP=0; //核容测试内阻测试均停止
    final public static int CMD_61850_START_ACK=100; //核容测试或内阻测试启动成功
    final public static int CMD_61850_STOP_ACK = 101; //核容测试或内阻测试均停止成功
    final public static int CMD_61850_CHANGE = 99; //核容测试或内阻测试均停止成功
 
    //FBS9600S设备内阻测试的启动命令
    final public static int CMD_9600_Start = 1;
 
 
    //6185设备工作状态对应关系workstate
    final public static int DEV_ONLINE_CHARGE = 0;  //在线浮充
    final public static int DEV_PRE_CHARGE = 1;     //预充电
    final public static int DEV_NUCLEAR_CAP = 2;    //核容测试
    final public static int DEV_POWER_CUT = 3;      //停电测试
    final public static int DEV_RES_TEST = 4;       //内阻测试
    final public static int DEV_KD_TEST = 5;        //kd测试
 
    //-----------------------------61850均衡参数
    public static final int CMD_GetJunHengParam = 0xC1;     //读取均衡参数
    public static final int CMD_GetJunHengParamAck = 0xC2;     //读取均衡参数成功
    public static final int CMD_SetJunHengParam = 0xC3;     //设置均衡参数
    public static final int CMD_SetJunHengParamAck = 0xC4;     //设置均衡参数成功
 
    //-----------------------------并联设备参数
    public static final int CMD_GetMultModeParam = 0x3A;     //读取并联电源模块参数
    public static final int CMD_GetMultModeParam_Ack = 0x3C;     //读取并联电源模块参数成功
    public static final int CMD_SetMultModeParam = 0x3B;     //设置并联电源模块参数
    public static final int CMD_SetMultModeParam_Ack = 0x3D;     //设置并联电源模块参数成功
 
    /**
     * 电源一体机 充电/放电/活化测试命令/文件命令/FBO4830控制
     */
    //-----------------------------启动/停止放电测试命令
    public static final int CMD_StartDischarge = 0x25;  //启动放电
    public static final int CMD_StartDischargeAck = 0x26;  //启动放电成功
    public static final int CMD_StopDischarge = 0x23;  //停止放电
    public static final int CMD_StopDischargeAck = 0x24;  //停止放电成功
    public static final int CMD_PauseDischarge = 0x21;  //暂停放电
    public static final int CMD_PauseDischargeAck = 0x22;  //暂停放电成功
    //-----------------------------启动/停止充电测试命令
    public static final int CMD_StartCharTest = 0xB1;  //启动充电
    public static final int CMD_StartCharTestAck = 0xB2;  //启动充电成功
    public static final int CMD_StopCharTest = 0xB3;  //停止充电
    public static final int CMD_StopCharTestAck = 0xB4;  //停止充电成功
    public static final int CMD_PauseCharTest = 0xB5;  //暂停充电
    public static final int CMD_PauseCharTestAck = 0xB6;  //暂停充电成功
    //-----------------------------启动活化测试命令
    public static final int CMD_StartHUOHUATest = 0xC1;  //启动活化测试
    public static final int CMD_StartHUOHUATestACK = 0xC2;  //启动活化测试成功
    public static final int  CMD_StopHUOHUATest    = 0xC3;  //停止活化测试
    public static final int  CMD_StopHUOHUATestACK   = 0xC4;  //停止活化测试成功
    public static final int  CMD_PauseHUOHUATest    = 0xC5;  //暂停活化测试
    public static final int  CMD_PauseHUOHUATestACK   = 0xC6;  //暂停活化测试成功
 
    //----------------------------锂电池DCDC
    public static final int CMD_GetLiDCDCParam=0x8B;        //读取锂电DCDC参数
    public static final int CMD_GetLiDCDCParam_Ack = 0x8D;    //读取锂电DCDC参数成功
    public static final int CMD_SetLiDCDCParam = 0x8C;        //设置锂电DCDC参数
    public static final int CMD_SetLiDCDCParam_Ack = 0x8E;    //设置锂电DCDC参数成功
 
    public static final int CMD_GetSXDCDCData = 0x8F;    //读取双向DCDC内部数据
    public static final int CMD_GetSXDCDCData_Ack = 0x92;    //读取双向DCDC内部数据成功
 
    public static final int CMD_GetLiBMSData = 0x95;        //读取锂电池BMS模拟量
    public static final int CMD_GetLiBMSData_Ack = 0x93;    //读取锂电池BMS模拟量成功
 
    public static final int CMD_GetLiBMSState = 0x96;        //读取锂电池BMS告警量
    public static final int CMD_GetLiBMSState_Ack = 0x94;        //读取锂电池BMS告警量成功
 
 
    //------------------------------下载文件命令
    public static final int CMD_DownLoadFBDFile = 0xA3;   //开始下载
    public static final int CMD_DownLoadFBDFile_ACK = 0xA4;   //下载成功
    //------------------------------读取文件列表
    public static final int CMD_ReadFBDFile = 0xA1;   //读取历史文件
    public static final int CMD_ReadFBDFile_ACK = 0xA2;   //读取历史文件成功
    //------------------------------停止文件下载
    public static final int CMD_StopFile = 0xA5;   //停止下载文件
    public static final int CMD_StopFile_ACK = 0xA6;   //停止下载文件成功
 
    public static final int CMD_SetNowBatt = 0xBA;  //设置当前电池组
    public static final int CMD_SetNowBatt_ACK = 0xBB;  //设置当前电池组成功
 
    public static final int CMD_ForceSetNowBatt = 0xC7;  //强制切换电池组
    public static final int CMD_ForceSetNowBatt_ACK = 0xC8;  //强制切换电池组成功
 
    public static final int CMD_StartShowPic = 0xBC;  //开始显示内窥镜图片
    public static final int CMD_StartShowPic_ACK = 0xBD;  //开始显示内窥镜图片成功
 
    public static final int CMD_StopShowPic = 0xBE;  //停止显示内窥镜图片
    public static final int CMD_StopShowPic_ACK = 0xBF;  //停止显示内窥镜图片成功
 
    //电操开关控制
    public static final int CMD_EOperatingSwitch_ControlSwitch = 0x57;        //电操开关控制命令
    public static final int CMD_EOperatingSwitch_ControlSwitchAck = 0x58;        //电操开关控制成功
 
 
    //并联电源
    public static final int CMD_GetMutilMode_Param = 0xB4;     //读取并联电源参数
    public static final int CMD_GetMutilMode_Param_Ack = 0xB2;     //读取并联电源参数成功
 
    public static final int CMD_SetMutilMode_Param = 0xB5;     //设置并联电源参数
    public static final int CMD_SetMutilMode_Param_Ack = 0xB6;     //设置并联电源参数成功
 
    //配网电源-电池
    public static final int    CMD_GetBattParam    =    0x36;    //读取电池参数54
    public static final int    CMD_GetBattParamACK    =    0x38;    //读取电池参数成功56
    public static final int    CMD_SetBattParam    =    0x37;    //设置电池参数55
    public static final int    CMD_SetBattParamACK    =    0x39;    //设置电池参数成功57
 
    //LD6
    public static final int LD6_CMD_STARTTEST = 81;            //启动测试
    public static final int LD6_CMD_STARTTEST_ACK = 82;        //启动测试成功
    public static final int LD6_CMD_STOPTEST = 83;            //停止测试
    public static final int LD6_CMD_STOPTEST_ACK = 84;        //停止测试成功
    public static final int LD6_CMD_SETPARAM = 40;            //设置放电参数
    public static final int LD6_CMD_SETPARAM_ACK = 39;        //设置放电参数成功
    public static final int LD6_CMD_GETPARAM = 41;            //获取放电参数
    public static final int LD6_CMD_GETPARAM_ACK = 48;        //获取放电参数成功
 
    //61850同步时间
    public static final int     CMD_updateXZTime                =   0xD1;                //设置协转时间
    public static final int     CMD_updateXZTimeAck                =   0xD2;                //设置协转时间成功
 
}