-
Notifications
You must be signed in to change notification settings - Fork 12
/
commands.json
184 lines (183 loc) · 16.5 KB
/
commands.json
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
{
"//comment1":"Commandsequences defines which commands to send in a row.",
"commandsequences": [
{"name": "set-wifi", "seq":["get_wifi_device_id","get_wifi_device_info","set_wifi_ssid","set_wifi_pw","restart_wifi"],"desc": "sets wifi datalogger network via wireless AP","args": "[datalogger ip address] [ssid] [password]" },
{"name": "factory-reset-wifi", "seq":["factory_reset_wifi"],"desc": "wifi datalogger factory reset","args": "[datalogger ip address]" },
{"name": "restart-wifi", "seq":["restart_wifi"],"desc": "wifi datalogger reset","args": "[datalogger ip address]" },
{"name": "query-modbus", "seq":["query_modbus"],"desc": "query modbus register","args": "[datalogger ip address] [raw_modbus_packet_hex]" },
{"name": "get-device-info", "seq":["get_wifi_device_id","get_wifi_device_info"],"desc": "gets wifi datalogger device id and other info","args": "[datalogger ip address]" },
{"name": "get-smx-param", "seq":["get_smx_param"],"desc": "Get ISolar SMX II 3.6 inverter param value","args": "[datalogger ip address]" },
{"name": "set-smx-param", "seq":["set_smx_param"],"desc": "Set ISolar SMX II 3.6 inverter param value WARNING: this is dangerous and experimental!","args": "[datalogger ip address] [parameter number] [new value]" }
],
"//comment2":"Commands defines modbus tcp commands: some commands are for the wifi plug pro(clean modbus tcp frame: 2byte transaction id, 2byte protocol id, 2byte length, data: 1byte unit id, 1byte funtion code, etc. ), others are handled by the gateway and sent to the modbus rtu device on serial line.",
"//comment3":"Modbus commands for the device: 2byte transaction id, 2byte protocol id, 2byte length, data: 1byte unit id, 1byte funtion code, (modbus rtu packet: 1byte unit id, 1byte funtion code(for the inverter), 2byte register address, 2byte register offset, 2byte crc( crc16/MODBUS: from the beginning of the modbus rtu packet)) ",
"commands": [
{"name": "get_wifi_device_id","cmd": "{SEQ}0001000aff01160b0a16102d012c"},
{"name": "set_wifi_ssid","cmd": "{SEQ}0001{LEN}ff0329{ARG2}"},
{"name": "set_wifi_pw","cmd": "{SEQ}0001{LEN}ff032b{ARG3}"},
{"name": "restart_wifi","cmd": "{SEQ}00010004ff031d31"},
{"name": "factory_reset_wifi","cmd": "{SEQ}00010004ff031d32"},
{"name": "get_wifi_device_info","cmd": "{SEQ}00010003ff0205"},
{"name": "get_wifi_device_id","cmd": "{SEQ}0001000aff01160b0a16102d012c"},
{"name": "query_modbus","cmd": "{ARG2}","raw": true},
{"name": "get-smx-out-prio","cmd": "{SEQ}0001000aff04ff03e2040001e66d", "/*!example form param get/set: whole modbus rtu packet in modbus tcp*/":""},
{"name": "set_smx_param","cmd": "{SEQ}0001{LEN}ff04ff10{ARGP2}{ARGV3}{CRC}", "definition": "get_smx_param"},
{"name": "get_smx_param","cmd": "{SEQ}0001{LEN}ff04ff03{PARAM}{CRC}", "definition":
[
{"num":"1","name":"OutputPriority","address":"E204","type":"UInt16BE","unit": ["SOL","UTI","SBU"]},
{"num":"2","name":"OutputFrequency","address":"E209","type":"UInt16BE","rate": 0.01,"format":1,"unit": "Hz" },
{"num":"3","name":"AcInputVoltageRange","address":"E20B","type":"UInt16BE","unit": ["APL","UPS"]},
{"num":"4","name":"TurnToMainsVoltage","address":"E01B","type":"UInt16BE","rate": 0.2,"format":1,"unit": "V"},
{"num":"5","name":"TurnToInverterVoltage","address":"E022","type":"UInt16BE","rate": 0.2,"format":1,"unit": "V"},
{"num":"6","name":"ChargerSourcePriority","address":"E20F","type":"UInt16BE","unit": ["CSO","CUB","SNU","OSO"]},
{"num":"7","name":"MaxChargerCurrent","address":"E20A","type":"UInt16BE","rate":0.1,"format":1,"unit": "A"},
{"num":"8","name":"BatteryType","address":"E004","type":"UInt16BE","unit": ["USE","SLd","FLd","GEL","LF07/LF08/LF09","NCA"]},
{"num":"9","name":"BatteryBoostChargeVoltage","address":"E008","type":"UInt16BE","rate": 0.2,"format":1,"unit": "V"},
{"num":"10","name":"BatteryBoostChargeTime","address":"E012","type":"UInt16BE","format":0,"unit": "Sec"},
{"num":"11","name":"BatteryFloatingChargeVoltage","address":"E009","type":"UInt16BE","rate": 0.2,"format":1,"unit": "V"},
{"num":"12","name":"BatteryOverDischargeVoltage","address":"E00D","type":"UInt16BE","rate": 0.2,"format":1,"unit": "V"},
{"num":"13","name":"BatteryOverDischargeDelayTime","address":"E010","type":"UInt16BE","format":0,"unit": "Sec"},
{"num":"14","name":"BatteryUnderVoltageAlarm","address":"E00C","type":"UInt16BE","rate": 0.2,"format":1,"unit": "V"},
{"num":"15","name":"BatteryDischargeLimitVoltage","address":"E00E","type":"UInt16BE","rate": 0.2,"format":1,"unit": "V"},
{"num":"16","name":"BatteryEqualizationEnable","address":"E206","type":"UInt16BE","unit": ["DIS","ENA"]},
{"num":"17","name":"BatteryEqualizationVoltage","address":"E007","type":"UInt16BE","rate": 0.2,"format":1,"unit": "V"},
{"num":"18","name":"BatteryEqualizedTime","address":"E011","type":"UInt16BE","format":0,"unit": "Min"},
{"num":"19","name":"BatteryEqualizedTimeOut","address":"E023","type":"UInt16BE","format":0,"unit": "Min"},
{"num":"20","name":"BatteryEqualizationInterval","address":"E013","type":"UInt16BE","format":0,"unit": "Day"},
{"num":"21","name":"BatteryEqualizationImmediately","address":"DF0D","type":"UInt16BE","unit": ["DIS","ENA"]},
{"num":"22","name":"PowerSavingMode","address":"E20C","type":"UInt16BE","unit": ["DIS","ENA"]},
{"num":"23","name":"RestartWhenOverLoad","address":"E20D","type":"UInt16BE","unit": ["DIS","ENA"]},
{"num":"24","name":"RestartWhenOverTemperature","address":"E20E","type":"UInt16BE","unit": ["DIS","ENA"]},
{"num":"25","name":"AlarmEnable","address":"E210","type":"UInt16BE","unit": ["DIS","ENA"]},
{"num":"26","name":"InputChangeAlarm","address":"E211","type":"UInt16BE","unit": ["DIS","ENA"]},
{"num":"27","name":"BypassOutputWhenOverLoad","address":"E212","type":"UInt16BE","unit": ["DIS","ENA"]},
{"num":"28","name":"MaxACChargerCurrent","address":"E205","type":"UInt16BE","rate":0.1,"format":1,"unit": "A"},
{"num":"29","name":"SplitPhase","address":"E214","type":"UInt16BE","unit": ["DIS","ENA"]},
{"num":"30","name":"RS485Address","address":"E200","type":"UInt16BE","unit": ""},
{"num":"31","name":"ParallelModeNotSupported?","address":"E201","type":"UInt16BE","unit": ["DIS","ENA"]},
{"num":"32","name":"BMSEnableNotSupported?","address":"E215","type":"UInt16BE","unit": ["DIS","485 BMS","CAN BMS"]},
{"num":"33","name":"BMSProtocolNotSupported?","address":"E21B","type":"UInt16BE","unit": ["Pace","Rata","Allgrand","Oliter","PCT","Sunwoda","Dyness","WOW","Pylontech","WS Technicals","Uz Energy"]},
{"num":"34","name":"Reserved","address":"E114","type":"UInt16BE","unit": ""},
{"num":"35","name":"BatteryUndervoltageRecovery","address":"E00B","type":"UInt16BE","rate": 0.2,"format":1,"unit": "V"},
{"num":"36","name":"MaxPVChargerCurrent","address":"E001","type":"UInt16BE","rate":0.1,"format":1,"unit": "A"},
{"num":"37","name":"BatteryChargeRecovery","address":"E00A","type":"UInt16BE","rate": 0.2,"format":1,"unit": "V"},
{"num":"38","name":"OutputVoltageSet","address":"E208","type":"UInt16BE","rate": 0.1,"format":1,"unit": "V"},
{"num":"39","name":"SystemDateTime","address":"020C","type":3,"format":100,"unit": ""},
{"num":"40","name":"InputPasswordNotSupported?","address":"E203","type":"UInt16BE","unit": ""},
{"num":"41","name":"ChangePasswordNotSupported?","address":"E202","type":"UInt16BE","unit": ""},
{"num":"42","name":"CustomerID","address":"E117","type":"UInt16BE","unit": ""},
{"num":"43","name":"PowerRate","address":"E118","type":"UInt16BE","rate": 0.1,"format":1,"unit": "kW"},
{"num":"44","name":"PVVoltageRate","address":"E11F","type":"UInt16BE","unit": "V"},
{"num":"45","name":"MaxChargeCurrentByPV","address":"E120","type":"UInt16BE","rate":0.1,"format":1,"unit": "A"},
{"num":"46","name":"FunctionEnable1NotSupported?","address":"E11D","type":"UInt16BE","unit": ""},
{"num":"47","name":"FunctionEnable2NotSupported?","address":"E11E","type":"UInt16BE","unit": ""},
{"num":"50","name":"MachinePowerState","address":"df00","type":"UInt16BE","unit": ["SHUTDOWN","BOOT"]},
{"num":"51","name":"MachineReset","address":"df01","type":"UInt16BE","unit": ["NORESET","RESET"]},
{"num":"60","name":"ModelBatteryVoltage","address":"e003","type":"UInt16BE", "unit": "V"},
{"num":"100","name":"APPVersion","address":"0014","type":"UInt16BE","rate":0.01,"format":2,"unit": ""},
{"num":"101","name":"BootloaderSWVersion","address":"0015","type":"UInt16BE","rate":0.01,"format":2,"unit": ""},
{"num":"102","name":"CompileTime","address":"0021","type":20,"unit": ""},
{"num":"103","name":"ProductSN","address":"0035","type":20,"unit": ""},
{"num":"104","name":"MachineState","address":"0210","type":"UInt16BE","rate":1,"format": 0,"unit":["Power on","Stand by","Initialization","Soft start","Running in line","Running in inverter","Invert to line","Line to invert","remain","remain","Shutdown","Fault"]},
{"num":"105","name":"CurrentFault","address":"0204","type":4,"format":101,"unit":["OK","Battery under voltage alarm",
"Battery over current software",
"Battery disconnect",
"Battery under voltage(stop discharge)",
"Battery over current hardware",
"Charger over voltage",
"Bus over voltage hardware",
"Bus over voltage software",
"Pv over voltage",
"Pv over current software",
"Pv over current hardware",
"Line loss",
"Bypass over load",
"Inverter output over load",
"Inverter output over current",
"",
"Inverter output short circuit",
"",
"PV DC-DC over temperature",
"Inverter over temperature",
"The fan is blocked or fails",
"EEPROM error",
"Machine type error",
"",
"",
"Bypass relay short circiut",
"",
"",
"Bus under voltage",
"The battery capacity is lower than 10%",
"The battery capacity is lower than 5%",
"Low battery capacity shutdown",
"",
"CAN communication fault of parallel system",
"The parallel ID is incorrect",
"Parallel machine synchronous shutdown",
"Parallel share current error",
"The battery voltage difference in parallel mode is too large",
"The mains input source in parallel mode is inconsistent",
"Hardware synchronization signal in parallel mode is faulty",
"The DC component of the inverter voltage is abnormal",
"The parallel program version is inconsistent",
"The parallel connection in parallel mode is faulty",
"Incorrect serial number information",
"The parallel mode is incorrectly set",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"The BMS communication is faulty ",
"BMS minor fault ",
"BMS under temperature",
"BMS over temperature",
"BMS over current",
"BMS under voltage",
"BMS over voltage"
]},
{"num":"106","name":"PVVoltage","address":"0107","type":"UInt16BE","rate":0.1,"format": 1,"unit":"V"},
{"num":"107","name":"PVCurrent","address":"0108","type":"UInt16BE","rate":0.1,"format": 1,"unit":"A"},
{"num":"108","name":"PVPower","address":"0109","type":"UInt16BE","rate":1,"format": 1,"unit":"W"},
{"num":"109","name":"LineVoltage","address":"0213","type":"UInt16BE","rate":0.1,"format": 1,"unit":"V"},
{"num":"110","name":"LineCurrent","address":"0214","type":"UInt16BE","rate":0.1,"format": 1,"unit":"A"},
{"num":"111","name":"LineFrequency","address":"0215","type":"UInt16BE","rate":0.01,"format": 2,"unit":"Hz"},
{"num":"112","name":"BatteryVoltage","address":"0101","type":"UInt16BE","rate":0.1,"format": 1,"unit":"V"},
{"num":"113","name":"BatteryCurrent","address":"0102","type":"Int16BE","rate":0.1,"format": 1,"unit":"A"},
{"num":"114","name":"BatterySoc","address":"0100","type":"UInt16BE","rate":1,"format": 0,"unit":"%"},
{"num":"115","name":"ChargeCurrentByLine","address":"021E","type":"Int16BE","rate":0.1,"format": 1,"unit":"A"},
{"num":"116","name":"LoadVoltage","address":"0216","type":"UInt16BE","rate":0.1,"format": 1,"unit":"V"},
{"num":"117","name":"LoadCurrent","address":"0219","type":"UInt16BE","rate":0.1,"format": 1,"unit":"A"},
{"num":"118","name":"LoadActivePower","address":"021B","type":"UInt16BE","rate":1,"format": 0,"unit":"W"},
{"num":"119","name":"LoadApparentPower","address":"021C","type":"UInt16BE","rate":1,"format": 0,"unit":"VA"},
{"num":"120","name":"LoadRatio","address":"021F","type":"UInt16BE","rate":1,"format": 0,"unit":"%"},
{"num":"121","name":"TemperatureDC","address": "0220","type":"Int16BE","rate":0.1,"format": 1,"unit":"˚C"},
{"num":"122","name":"TemperatureAC","address": "0221","type":"Int16BE","rate":0.1,"format": 1,"unit":"˚C"},
{"num":"123","name":"TemperatureTR","address": "0222","type":"Int16BE","rate":0.1,"format": 1,"unit":"˚C"},
{"num":"124","name":"InverterCurrent","address": "0217","type":"UInt16BE","rate":0.1,"format": 1,"unit":"A"},
{"num":"125","name":"InverterFrequency","address": "0218","type":"UInt16BE","rate":0.01,"format": 2,"unit":"Hz"},
{"num":"126","name":"BatteryChargeStep","address": "010B","type":"UInt16BE","rate":1,"format": 0,"unit":["Not start","Const current","Const voltage","reserved","Float charge","reserved","Active charge","Active charge"]},
{"num":"127","name":"BusVoltage","address": "0212","type":"UInt16BE","rate":0.1,"format": 1,"unit":"V"},
{"num":"128","name":"LoadPowerConsumptionOnTheDay","address": "F030","type":"UInt16BE","rate":0.1,"format": 1,"unit":"KWH"},
{"num":"129","name":"LoadPowerConsumptionOnTheDayFromMains","address": "F03D","type":"UInt16BE","rate":0.1,"format": 1,"unit":"KWH"},
{"num":"130","name":"PVCumulativePowerGeneration","address": "F038","type":"UInt16BE","rate":0.1,"format": 1,"unit":"KWH"},
{"num":"131","name":"CumulativeCharge","address": "F046","type":"UInt16BE","rate":0.1,"format": 1,"unit":"AH"},
{"num":"132","name":"AccumulatedBatteryChargeHours","address": "F034","type":"UInt16BE","rate":1,"format": 0,"unit":"AH"},
{"num":"133","name":"AccumulatedBatteryDischargeTime","address": "F036","type":"UInt16BE","rate":1,"format": 0,"unit":"AH"},
{"num":"134","name":"LoadCumulativePowerConsumption","address": "F03A","type":"UInt16BE","rate":0.1,"format": 1,"unit":"KWH"},
{"num":"135","name":"AccumulatedLoadFromMainsConsumption","address": "F048","type":"UInt16BE","rate":0.1,"format": 1,"unit":"KWH"},
{"num":"136","name":"PVPowerGenerationOnTheDay","address": "F02F","type":"UInt16BE","rate":0.1,"format": 1,"unit":"KWH"},
{"num":"137","name":"BatteryChargeOnTheDay","address": "F02D","type":"UInt16BE","rate":1,"format": 0,"unit":"AH"},
{"num":"138","name":"BatteryDischargeOnTheDay","address": "F02E","type":"UInt16BE","rate":1,"format": 0,"unit":"AH"}
]
}
]
}