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
| package com.sandu.ximon.admin.manager.iot.rrpc.enums;
|
| /**
| * @author ZZQ
| * 充电桩错误上报码
| * "故障码:(用二进制表示)
| * 0x00000000,二进制即为[bit31:bit0]
| * 对应故障bit位置1,正常置0"
| * bit31 bit30 bit29 bit28 bit27 bit26 bit25 bit24 bit23 bit22 bit21 bit20 bit19 bit18 bit17 bit16 bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
| * (具体错误内容参考通讯协议文档)
| */
| public enum C3ErrorEnum {
| /**
| * 通信流程超时
| */
| IO_OVER_TIME(31, "通信流程超时"),
| /**
| * 无电压
| */
| NO_VOL(30, "无电压"),
| /**
| * 无电流
| */
| NO_CUR(29, "无电流"),
| /**
| * 无功率
| */
| NO_POWER(28, "无功率"),
| /**
| * 充电功率过小
| */
| LOWER_POWER(27, "充电功率过小"),
| /**
| * 漏电
| */
| OUTPUT_ELE_LEAKAGE(26, "漏电"),
| /**
| * 设备温度过高
| */
| DEVICE_TEMPERATURE_HIGHER(25, "设备温度过高"),
| /**
| * 设备温度过低
| */
| DEVICE_TEMPERATURE_LOW(24, "设备温度过低"),
| /**
| * 充电超时
| */
| CHARING_OVER_TIME(23, "充电超时"),
| /**
| * 无网络
| */
| NO_NETWORK(22, "无网络"),
| /**
| * 连接主机超时
| */
| CONNECT_HOST_OVER_TIMED(21, "连接主机超时"),
| /**
| * 连接服务器超时
| */
| CONNECT_SERVICE_OVER_TIMED(20, "连接服务器超时"),
| /**
| * 触摸屏无响应
| */
| LED_ERROR(19, "触摸屏无响应"),
| /**
| * 写入Flash失败
| */
| INPUT_FLASH_ERROR(18, "写入Flash失败"),
| /**
| * 写入EEProm失败
| */
| INPUT_EEPROM_ERROR(17, "写入EEProm失败"),
| /**
| * 电压过低
| */
| LOWER_VOL(16, "电压过低"),
| /**
| * 电压过高
| */
| OVER_VOL(15, "电压过高"),
| /**
| * 地锁故障(不能锁上)
| */
| LOCK_ERROR(14, "地锁故障(不能锁上)"),
| /**
| * 地锁故障(不能解锁)
| */
| UNLOCK_ERROR(13, "地锁故障(不能解锁)"),
| /**
| * 充电口1故障
| */
| Charging_port_error(12, "充电口1故障"),
| /**
| * 充电口1不能连接车机
| */
| CONNECT_DEVICE_ERROR(10, "充电口1不能连接车机"),
|
| ;
|
| private final Integer code;
| private final String message;
|
| C3ErrorEnum(Integer code, String message) {
| this.code = code;
| this.message = message;
| }
|
| public String getMessage() {
| return message;
| }
|
| public Integer getCode() {
| return code;
| }
| }
|
|