-
Notifications
You must be signed in to change notification settings - Fork 12
/
commands_powmr62hvm.json
31 lines (31 loc) · 3.01 KB
/
commands_powmr62hvm.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
{
"//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}ff040503{PARAM}{CRC}", "definition":
[
{"num":"1","name":"MaxCharge","address":"139E","type":"UInt16BE","format":1,"unit": "A"}
]
}
]
}