mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
调试修改MQTT通讯解析
This commit is contained in:
Binary file not shown.
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"launchdate": "2025-09-01",
|
||||
"database": {"host": "localhost", "port": 3306, "user": "root", "passwd": "123456", "dbname": "ees"},
|
||||
"database": {"host": "localhost", "port": 3306, "user": "root", "passwd": "123456", "dbname": "ess"},
|
||||
"token":"",
|
||||
"http": {"port": 19800},
|
||||
"http": {"port": 19801},
|
||||
"mqtt": {"host":"mqtt://43.136.119.46:6203","username":"jsyhsec","password":"123456"},
|
||||
"weburl": "http://127.0.0.1:19600/"
|
||||
"weburl": "http://127.0.0.1:19601/"
|
||||
}
|
||||
@@ -2,11 +2,11 @@
|
||||
"EMS":{
|
||||
"deviceType":101,
|
||||
"addr_YC":[
|
||||
["A相电压", "0x107E", "0.0", " V", "0.1"],
|
||||
["A相电压", "0x107E", "0.0", " V", "1"],
|
||||
["A相电流", "0x1084", "0.0", " A"],
|
||||
["B相电压", "0x1080", "0.0", " V", "0.1"],
|
||||
["B相电压", "0x1080", "0.0", " V", "1"],
|
||||
["B相电流", "0x1086", "0.0", " A"],
|
||||
["C相电压", "0x1082", "0.0", " V", "0.1"],
|
||||
["C相电压", "0x1082", "0.0", " V", "1"],
|
||||
["C相电流", "0x1088", "0.0", " A"]
|
||||
],
|
||||
"addr_YX": [ ]
|
||||
@@ -14,11 +14,11 @@
|
||||
"PCS":{
|
||||
"deviceType":102,
|
||||
"addr_YC":[
|
||||
["A相电压", "0x0010", "0.0", " V", "0.1"],
|
||||
["A相电压", "0x0010", "0.0", " V", "1"],
|
||||
["A相电流", "0x0019", "0.0", " A"],
|
||||
["B相电压", "0x0011", "0.0", " V", "0.1"],
|
||||
["B相电压", "0x0011", "0.0", " V", "1"],
|
||||
["B相电流", "0x001A", "0.0", " A"],
|
||||
["C相电压", "0x0011", "0.0", " V", "0.1"],
|
||||
["C相电压", "0x0011", "0.0", " V", "1"],
|
||||
["C相电流", "0x001B", "0.0", " A"]
|
||||
],
|
||||
"addr_YX": [ ]
|
||||
@@ -26,11 +26,11 @@
|
||||
"PCU":{
|
||||
"deviceType":103,
|
||||
"addr_YC":[
|
||||
["A相电压", "0x0013", "0.0", " V", "0.1"],
|
||||
["A相电压", "0x0013", "0.0", " V", "1"],
|
||||
["A相电流", "0x001C", "0.0", " A"],
|
||||
["B相电压", "0x0014", "0.0", " V", "0.1"],
|
||||
["B相电压", "0x0014", "0.0", " V", "1"],
|
||||
["B相电流", "0x001D", "0.0", " A"],
|
||||
["C相电压", "0x0015", "0.0", " V", "0.1"],
|
||||
["C相电压", "0x0015", "0.0", " V", "1"],
|
||||
["C相电流", "0x001E", "0.0", " A"]
|
||||
],
|
||||
"addr_YX": [ ]
|
||||
@@ -38,26 +38,26 @@
|
||||
"BMS":{
|
||||
"deviceType":104,
|
||||
"addr_YC":[
|
||||
["SOC", "0x0001", "0", " %"],
|
||||
["SOH", "0x0002", "0", " %"],
|
||||
["SOC", "0x0001", "0", " %", "0.1"],
|
||||
["SOH", "0x0002", "0", " %", "0.1"],
|
||||
["电压", "0x0003", "0.0", " V", "0.1"],
|
||||
["电流", "0x0005", "0.0", " A"],
|
||||
["电流", "0x0005", "0.0", " A", "0.1"],
|
||||
["单体最大电压", "0x0021", "0.0", " V", "0.1"],
|
||||
["单体最小电压", "0x0024", "0.0", " V", "0.1"],
|
||||
["单体最大温度", "0x0029", "0.0", " ℃"],
|
||||
["单体最小温度", "0x002C", "0.0", " ℃"]
|
||||
["单体最大温度", "0x0029", "0.0", " ℃", "0.1"],
|
||||
["单体最小温度", "0x002C", "0.0", " ℃", "0.1"]
|
||||
],
|
||||
"addr_YX": [ ]
|
||||
},
|
||||
"BCU":{
|
||||
"deviceType":105,
|
||||
"addr_YC":[
|
||||
["簇电压", "0x0003", "0.0", " V"],
|
||||
["簇电流", "0x0005", "0", " A"],
|
||||
["簇温度", "0x0007", "0.0", " ℃"],
|
||||
["簇电压", "0x0003", "0.0", " V", "0.1"],
|
||||
["簇电流", "0x0005", "0", " A", "0.1"],
|
||||
["簇温度", "0x0007", "0.0", " ℃", "0.1"],
|
||||
["簇电阻", "0x0009", "0.0", " Ω"],
|
||||
["簇SOC", "0x000B", "0", " %"],
|
||||
["簇SOH", "0x000C", "0", " %"]
|
||||
["簇SOC", "0x000B", "0", " %", "0.1"],
|
||||
["簇SOH", "0x000C", "0", " %", "0.1"]
|
||||
],
|
||||
"addr_YX": [ ]
|
||||
},
|
||||
@@ -783,7 +783,9 @@
|
||||
"addr":[
|
||||
{"key": "0x0001", "datatype": "uint16", "remark": "所属通道号1"},
|
||||
{"key": "0x0002", "datatype": "uint16", "remark": "所属温湿度号1~10"},
|
||||
{"key": "0x0003", "datatype": "int16", "remark": "温度(0.1℃)"}
|
||||
{"key": "0x0003", "datatype": "int16", "remark": "温度(0.1℃)"},
|
||||
{"key": "0x0004", "datatype": "int16", "remark": "湿度(0.1℃)"}
|
||||
|
||||
]
|
||||
},
|
||||
"Fire40_YX":{
|
||||
@@ -792,6 +794,8 @@
|
||||
{"key": "0x0002", "datatype": "uint16", "remark": "主控数量1"},
|
||||
{"key": "0x0003", "datatype": "uint16", "remark": "主控ID1"},
|
||||
{"key": "0x0004", "datatype": "uint16", "remark": "主控状态0:正常 1:预警 2:火警"},
|
||||
{"key": "0x0005", "datatype": "uint32", "remark": "主控硬件版本"},
|
||||
{"key": "0x0007", "datatype": "uint32", "remark": "主控软件版本"},
|
||||
{"key": "0x0009", "datatype": "uint16", "remark": "主电状态0:使用市电 1:使用备电"},
|
||||
{"key": "0x000A", "datatype": "uint32", "remark": "备电电流(0.1A)"},
|
||||
{"key": "0x000C", "datatype": "uint32", "remark": "备电电压(0.1V)"},
|
||||
@@ -854,5 +858,13 @@
|
||||
{"key": "0x100D", "datatype": "uint16", "remark": "进水压力传感器0:正常,1:告警"},
|
||||
{"key": "0x100E", "datatype": "uint16", "remark": "出水压力传感器0:正常,1:告警"}
|
||||
]
|
||||
},
|
||||
"Gateway_YC":{
|
||||
"addr":[
|
||||
{"key": "40001", "datatype": "uint16", "remark": "模式"},
|
||||
{"key": "40002", "datatype": "uint16", "remark": "峰谷时间段"},
|
||||
{"key": "40021", "datatype": "uint16", "remark": "自定时间段"},
|
||||
{"key": "40038", "datatype": "uint16", "remark": "其他参数"}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -54,7 +54,7 @@ text += ',\n' + read_sheet(wb, "Fire40_YX", "消防4.0遥信")
|
||||
text += ',\n' + read_sheet(wb, "Cooling_YC", "冷机遥测")
|
||||
text += ',\n' + read_sheet(wb, "Cooling_YX", "冷机遥信")
|
||||
|
||||
with open('registeraddr.json', 'w', encoding='utf-8') as f:
|
||||
with open('regaddrs.json', 'w', encoding='utf-8') as f:
|
||||
f.write("{\n" + text + "\n}")
|
||||
|
||||
|
||||
@@ -85,5 +85,5 @@ def read_sheet_alarm(wb, device_type, sht_name):
|
||||
text_err = ""
|
||||
text_err = read_sheet_alarm(wb, 103, "PCU遥信")
|
||||
text_err += ',\n' + read_sheet_alarm(wb, 104, "PCS遥信")
|
||||
with open('registeraddrErr.json', 'w', encoding='utf-8') as f:
|
||||
with open('regddrsErr.json', 'w', encoding='utf-8') as f:
|
||||
f.write("{\n" + text_err + "\n}")
|
||||
109
bin/Release/assets/config/regaddrsShow.json
Normal file
109
bin/Release/assets/config/regaddrsShow.json
Normal file
@@ -0,0 +1,109 @@
|
||||
{
|
||||
"EMS":{
|
||||
"deviceType":101,
|
||||
"addrYC":[
|
||||
["A相电压", "0x107E", "0.0", " V", "1"],
|
||||
["A相电流", "0x1084", "0.0", " A"],
|
||||
["B相电压", "0x1080", "0.0", " V", "1"],
|
||||
["B相电流", "0x1086", "0.0", " A"],
|
||||
["C相电压", "0x1082", "0.0", " V", "1"],
|
||||
["C相电流", "0x1088", "0.0", " A"]
|
||||
],
|
||||
"addrCurve": ["0x107E", "0x1084", "0x1096"]
|
||||
},
|
||||
"PCS":{
|
||||
"deviceType":102,
|
||||
"addrYC":[
|
||||
["A相电压", "0x0010", "0.0", " V", "1"],
|
||||
["A相电流", "0x0019", "0.0", " A"],
|
||||
["B相电压", "0x0011", "0.0", " V", "1"],
|
||||
["B相电流", "0x001A", "0.0", " A"],
|
||||
["C相电压", "0x0011", "0.0", " V", "1"],
|
||||
["C相电流", "0x001B", "0.0", " A"]
|
||||
],
|
||||
"addrCurve": ["0x0010", "0x0019", "0x0025"]
|
||||
},
|
||||
"PCU":{
|
||||
"deviceType":103,
|
||||
"addrYC":[
|
||||
["A相电压", "0x0013", "0.0", " V", "1"],
|
||||
["A相电流", "0x001C", "0.0", " A"],
|
||||
["B相电压", "0x0014", "0.0", " V", "1"],
|
||||
["B相电流", "0x001D", "0.0", " A"],
|
||||
["C相电压", "0x0015", "0.0", " V", "1"],
|
||||
["C相电流", "0x001E", "0.0", " A"]
|
||||
],
|
||||
"addrCurve": ["0x0013", "0x001C", "0x0028"]
|
||||
},
|
||||
"BMS":{
|
||||
"deviceType":104,
|
||||
"addrYC":[
|
||||
["SOC", "0x0001", "0", " %", "0.1"],
|
||||
["SOH", "0x0002", "0", " %", "0.1"],
|
||||
["电压", "0x0003", "0.0", " V", "0.1"],
|
||||
["电流", "0x0005", "0.0", " A", "0.1"],
|
||||
["单体最大电压", "0x0021", "0.0", " V", "0.1"],
|
||||
["单体最小电压", "0x0024", "0.0", " V", "0.1"],
|
||||
["单体最大温度", "0x0029", "0.0", " ℃", "0.1"],
|
||||
["单体最小温度", "0x002C", "0.0", " ℃", "0.1"]
|
||||
],
|
||||
"addrCurve": ["0x0003", "0x0005", ""]
|
||||
},
|
||||
"BCU":{
|
||||
"deviceType":105,
|
||||
"addrYC":[
|
||||
["簇电压", "0x0003", "0.0", " V", "0.1"],
|
||||
["簇电流", "0x0005", "0", " A", "0.1"],
|
||||
["簇温度", "0x0007", "0.0", " ℃", "0.1"],
|
||||
["簇电阻", "0x0009", "0.0", " Ω"],
|
||||
["簇SOC", "0x000B", "0", " %", "0.1"],
|
||||
["簇SOH", "0x000C", "0", " %", "0.1"]
|
||||
],
|
||||
"addrCurve": ["0x0003", "0x0005", ""]
|
||||
},
|
||||
"MEM":{
|
||||
"deviceType":3,
|
||||
"addrYC":[
|
||||
["A相电压", "0x000B", "0.0", " V"],
|
||||
["A相电流", "0x000D", "0.0", " A"],
|
||||
["B相电压", "0x000F", "0.0", " V"],
|
||||
["B相电流", "0x0011", "0.0", " A"],
|
||||
["C相电压", "0x0013", "0.0", " V"],
|
||||
["C相电流", "0x0015", "0.0", " A"]
|
||||
],
|
||||
"addrCurve": ["0x000B","0x0011","0x0023"]
|
||||
},
|
||||
"TH": {
|
||||
"deviceType":10,
|
||||
"addrYC":[
|
||||
["温度", "0x0003", "0.0", " ℃", "0.1"],
|
||||
["湿度", "0x0004", "0.0", " %", "0.1"]
|
||||
]
|
||||
},
|
||||
"Cooling": {
|
||||
"deviceType":14,
|
||||
"addrYC":[
|
||||
["开关", "0x1003", "0", "", "1"],
|
||||
["采样模式", "0x1004", "0", "", "1"],
|
||||
["制冷状态", "0x1005", "0", "", "1"],
|
||||
["制热状态", "0x1006", "0", "", "1"],
|
||||
["高温告警", "0x1007", "0", "", "1"],
|
||||
["低温告警", "0x1008", "0", "", "1"],
|
||||
["高压告警", "0x1009", "0", "", "1"],
|
||||
["低压告警", "0x100A", "0", "", "1"]
|
||||
]
|
||||
},
|
||||
"Charger": {
|
||||
"deviceType":106,
|
||||
"addrYC":[
|
||||
["需求电压", "31071", "0.0", " V"],
|
||||
["需求电流", "31073", "0.0", " A"],
|
||||
["需求功率", "31075", "0.0", " kW"],
|
||||
["功率限值", "31077", "0.0", " kW"],
|
||||
["输出电压", "31079", "0.0", " V"],
|
||||
["输出电流", "31081", "0.0", " A"],
|
||||
["输出功率", "31083", "0.0", " kW"]
|
||||
],
|
||||
"addrCurve": ["31079", "31081", "31083"]
|
||||
}
|
||||
}
|
||||
BIN
bin/Release/assets/config/~$EMU对外通信点表最终修改1版_v9.xlsx
Normal file
BIN
bin/Release/assets/config/~$EMU对外通信点表最终修改1版_v9.xlsx
Normal file
Binary file not shown.
Reference in New Issue
Block a user