From 56f5de5eb6c1501175e7a36b10cf3d1b57284b47 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期二, 31 三月 2026 17:13:26 +0800
Subject: [PATCH] 2026年03月31日17:12:34
---
sdk/src/main/java/com/hdl/sdk/link/core/bean/gateway/GatewayBean.java | 111 ++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 105 insertions(+), 6 deletions(-)
diff --git a/sdk/src/main/java/com/hdl/sdk/link/core/bean/gateway/GatewayBean.java b/sdk/src/main/java/com/hdl/sdk/link/core/bean/gateway/GatewayBean.java
index b5fdba5..a79e450 100644
--- a/sdk/src/main/java/com/hdl/sdk/link/core/bean/gateway/GatewayBean.java
+++ b/sdk/src/main/java/com/hdl/sdk/link/core/bean/gateway/GatewayBean.java
@@ -54,9 +54,15 @@
*/
private String access_mode;
/**
- * 鏄惁涓荤綉鍏� true false
+ * 鏄惁涓荤綉鍏� true false,鐢ㄤ簬link缃戦┍鍔�
*/
private String master;
+
+
+ /**
+ * 鏄惁涓荤綉鍏� true false 鐢ㄤ簬鍏変紡椹卞姩
+ */
+ private boolean ogMaster;//绂荤綉閫嗗彉鍣ㄦ墠杩斿洖
/**
* 鏄惁鍔犲瘑
*/
@@ -82,8 +88,7 @@
private String sid;
-
- private String spk = "energy.hdl_inverter";
+ private String spk = "";
private String systemStatusDesc;//浜戠-鐘舵��
@@ -108,14 +113,108 @@
private String deviceType;
private String outputActivePower;//閫嗗彉鍣ㄨ緭鍑烘湁鍔熷姛鐜�
+
+ private boolean activate;//鏄惁婵�娲昏澶�(true锛氭縺娲伙紱false锛氭湭婵�娲�)
+
+
+ private String workStatusDesc;//宸ヤ綔鐘舵�侊紙璐熻浇涓績璁惧锛�
+
+ private boolean popUpgrade;//鏀硅澶囨槸鍚︽湁寮圭獥鍗囩骇
+ private boolean subPopUpgrade;//涓嬫寕璁惧鏄惁鏈夊脊绐楀崌绾�
+
+
+ public boolean isActivate() {
+ return activate;
+ }
+
+ private String deviceOidId;//璁惧浜戠oid锛坆ms璁惧锛夋墠鏈�
+ private List<FwVersionBean> fwVersion = new ArrayList<>();//鍥轰欢鐗堟湰锛孊MS璁惧鎵嶆湁
+ private String bmsSource;//閫嗗彉鍣ㄧ殑BMS绫诲瀷 鍐呴儴鐨勮繕鏄閮ㄧ殑 ;鐩墠绂荤綉閫嗗彉鍣ㄦ墠鏈� 鍐呴儴锛欼NTERNAL 澶栭儴锛欵XTERNAL 濡傛灉娌℃湁鍊煎綋鍐呴儴鐨勫鐞�
+
+ public String getBmsSource() {
+ return bmsSource == null ? "" : bmsSource;
+ }
+
+ public void setBmsSource(String bmsSource) {
+ this.bmsSource = bmsSource;
+ }
+ private boolean isSupportLocalSendCommands = true;//榛樿閮芥敮鎸佷袱绉嶆ā寮忥紙杩滅▼鍜屾湰鍦帮級锛孊MS璁惧鏀寔杩滅▼鍙戦�侊紝纭欢璇村悗闈篃浼氭敮鎸佹湰鍦板彂閫�
+
+ /**
+ * 鏄惁鏀寔鏈湴锛圱cp锛夊懡浠ゅ彂閫�(BMS璁惧鏀寔杩滅▼鍙戦��)
+ *
+ * @return true锛氶兘鏀寔涓ょ妯″紡锛堣繙绋嬪拰鏈湴锛�,false:鏀寔杩滅▼鍛戒护鍙戦�侊紝
+ */
+ public boolean isSupportLocalSendCommands() {
+ return isSupportLocalSendCommands;
+ }
+
+ public void setSupportLocalSendCommands(boolean isSupportLocal) {
+ isSupportLocalSendCommands = isSupportLocal;
+ }
+
+ public List<FwVersionBean> getFwVersion() {
+ return fwVersion;
+ }
+
+ public void setFwVersion(List<FwVersionBean> fwVersion) {
+ this.fwVersion = fwVersion;
+ }
+
+ public String getDeviceOidId() {
+ return deviceOidId == null ? "" : deviceOidId;
+ }
+
+ public void setDeviceOidId(String deviceOidId) {
+ this.deviceOidId = deviceOidId;
+ }
+
+
+ public void setActivate(boolean activate) {
+ this.activate = activate;
+ }
+
+ public String getWorkStatusDesc() {
+ return workStatusDesc == null ? "" : this.workStatusDesc;
+ }
+
+ public void setWorkStatusDesc(String workStatusDesc) {
+ this.workStatusDesc = workStatusDesc;
+ }
+
+ public boolean isSubPopUpgrade() {
+ return subPopUpgrade;
+ }
+
+ public void setSubPopUpgrade(boolean subPopUpgrade) {
+ this.subPopUpgrade = subPopUpgrade;
+ }
+
+ public boolean isPopUpgrade() {
+ return popUpgrade;
+ }
+
+ public void setPopUpgrade(boolean popUpgrade) {
+ this.popUpgrade = popUpgrade;
+ }
+
/**
* 鎴块棿褰掑睘
*/
private List<String> uids = new ArrayList<>();
+ public boolean isOgMaster() {
+ return ogMaster;
+ }
+
+ public void setOgMaster(boolean ogMaster) {
+ this.ogMaster = ogMaster;
+ }
+
public List<String> getUids() {
return uids;
}
+
public void setUids(List<String> uids) {
this.uids = uids;
@@ -399,7 +498,6 @@
}
-
public String getSystemStatusDesc() {
return systemStatusDesc == null ? "" : systemStatusDesc;
}
@@ -479,7 +577,7 @@
}
public String getDeviceType() {
- return deviceType==null?"":deviceType;
+ return deviceType == null ? "" : deviceType;
}
public void setDeviceType(String deviceType) {
@@ -493,4 +591,5 @@
public void setOutputActivePower(String outputActivePower) {
this.outputActivePower = outputActivePower;
}
-}
\ No newline at end of file
+}
+
--
Gitblit v1.8.0