update 电单车协议

This commit is contained in:
Guoqs
2024-09-04 08:58:23 +08:00
parent 3600293dc1
commit 057f431cd7
2 changed files with 32 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
package com.jsowell.common.enums.ebike;
public enum EBikeTypeEnum {
socket_1way(0x03, "单路插座"),
socket_2way(0x04, "双路插座"),
socket_10way(0x05, "10路充电桩"),
socket_16way(0x06, "16路充电桩"),
socket_12way(0x07, "12路充电桩"),
host(0x09, "主机"),
Leakage_protection_host(0x0A, "漏保主机"),
;
private final int value;
private final String desc;
public int getValue() {
return value;
}
public String getDesc() {
return desc;
}
EBikeTypeEnum(int value, String desc) {
this.value = value;
this.desc = desc;
}
}

View File

@@ -19,7 +19,8 @@ public enum PortStatusEnum {
PRE_INSPECTION_LOAD_SHORT_CIRCUIT(13, "预检-负载短路", "255"),
FILTERED_PRE_INSPECTION_RELAY_GLUE(14, "过滤性预检-继电器粘连", "255"),
CARD_CHIP_DAMAGE(15, "刷卡芯片损坏故障", "255"),
DETECTION_CIRCUIT_FAULT(16, "检测电路故障", "255");
DETECTION_CIRCUIT_FAULT(16, "检测电路故障", "255"),
;
private final int value;
private final String description;