lxw
2020-07-11 9db52f2f2dd3665fe9da1ae5657e0167c3a34d40
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
package com.fgkj.dao;
 
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;        //    永久
    //机房命令对应的ack
    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 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;
    
    //系统参数命令
    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
    
    
    //读取GPRS模块的信号质量
    public static final int     CMD_ReadGPRSCSQ                 =   0x91;
    public static final int     CMD_ReadGPRSCSQAck                 =   0x92;
    //读取设备进程信息
    public static final int     CMD_READGPRS_BTS_TASK_INF                 =  0x17;
    public static final int     CMD_READGPRS_BTS_TASK_INFACK                 =  0x16;
    
    //读取电池参数
    public static final int        CMD_GetBattParam                =    0x36;  //获取电池参数
    public static final int        CMD_SetBattParam                =    0x37;  //设置电池参数
    public static final int        CMD_GetBattParamACK                =    0x38;
    public static final int        CMD_SetBattParamACK                =    0x39;
    
    //gprs通讯的命令
    public static final String   CSQ                 =   "usr.cn#AT+";
    
    //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测试
    
    //bts设备工作状态对应关系workstate
    final public static  int ONLINE_TEST=0;  //在线检测
    final public static  int DISCHARGE=1;     //放电测试
    final public static  int CHARGE=2;    //充电测试
    final public static  int RES_TEST=3;      //内阻测试
    final public static  int NONE=4;       //未知
    
    //bts放电测试页面中的测试类型的对应关系
    final public static int CMD_TESTCMD_HR = 37;    //核容测试
    final public static int CMD_TESTCMD_RES = 50;    //内阻测试
    final public static int CMD_TESTCMD_NULL = 0;    //不设置测试类型
}