NEWS
Sungrow WR SGH10RT erfolgreich mit MODBUS eingebunden
-
Cool, hat geklappt. Danke für die Hilfe.
Jetzt habe ich die Objekte drin - allerdings stehen alle auf "0":
-
@schneider sagte in Sungrow WR SGH10RT erfolgreich mit MODBUS eingebunden:
Jetzt habe ich die Objekte drin
nicht wirklich.
Da steht bestimmt was im log.Das
NaN
statt Registernummer spricht BändeWo befindest du dich da?
-
Protokolle:
Objekte:
-
@schneider ... und die Konfiguration?
-
Diskrete Eingänge / Ausgänge habe ich nichts eingetragen. Ebenso ins Holding-Register.
-
@schneider nimm mal in der Config Aliasse benutzen raus. Ich erinnere mich das hatte ich auch mal so
-
@schneider bitte Logstufe auf debug umstellen.
Hak mal "aliases benutzen" ab -
Jetzt verbindet sich der Adapter nicht mehr
-
@schneider sagte in Sungrow WR SGH10RT erfolgreich mit MODBUS eingebunden:
Jetzt verbindet sich der Adapter nicht mehr
log bitte als Text in code-tags posten und auf debug umstellen
EDIT:
Wo komnt jetzt due Geräte ID 200 und doppelt so hohe Register her? -
Und nimm zur Sicherheit erstmal die Zeilen mit DeviceID 200 (das ist die für den Akku mit den entsprechenden Modbus Registern) ganz raus. Die DeviceID des Akkus MUSS nicht 200 sein (kann man zum Beispiel über das WinetS nachschauen), falls du überhaupt einen hast? Bin gerade am Handy und kann nicht zu deinem ersten Post schauen, welchen Wechselrichter und/oder Akku du hast.
Ältere Firmware Versionen führen den Akku auch gar nicht separat auf, das könnte auch eine Ursache sein auch falls du einen Akku hast.
-
Hast du im Winet dongel überhaupt modbus aktiviert?
-
@schneider
Diese „Not-a-Number (NaN)“ beziehen sich auf die Registernummern. Da steht in der Spalte sicher noch ein Leerzeichen dabei. Etwa „4999 „ statt „4999“. -
@gombersiob sagte in Sungrow WR SGH10RT erfolgreich mit MODBUS eingebunden:
@schneider
Diese „Not-a-Number (NaN)“ beziehen sich auf die Registernummern. Da steht in der Spalte sicher noch ein Leerzeichen dabei. Etwa „4999 „ statt „4999“.Das Thema hatten wir gerade erst
https://forum.iobroker.net/post/1221502Deswegen warte ich auch noch auf das debug-log von @schneider
-
2024-12-13 19:51:04.877 - info: host.iobroker "system.adapter.modbus.0" enabled 2024-12-13 19:51:05.060 - info: host.iobroker instance system.adapter.modbus.0 in version "6.3.2" started with pid 1511 2024-12-13 19:51:05.555 - debug: modbus.0 (1511) Redis Objects: Use Redis connection: 127.0.0.1:9001 2024-12-13 19:51:05.565 - debug: modbus.0 (1511) Objects client ready ... initialize now 2024-12-13 19:51:05.607 - debug: modbus.0 (1511) Objects create System PubSub Client 2024-12-13 19:51:05.608 - debug: modbus.0 (1511) Objects create User PubSub Client 2024-12-13 19:51:05.618 - debug: modbus.0 (1511) Objects client initialize lua scripts 2024-12-13 19:51:05.620 - debug: modbus.0 (1511) Objects connected to redis: 127.0.0.1:9001 2024-12-13 19:51:05.628 - debug: modbus.0 (1511) Redis States: Use Redis connection: 127.0.0.1:9000 2024-12-13 19:51:05.672 - debug: modbus.0 (1511) States create System PubSub Client 2024-12-13 19:51:05.672 - debug: modbus.0 (1511) States create User PubSub Client 2024-12-13 19:51:05.719 - debug: modbus.0 (1511) States connected to redis: 127.0.0.1:9000 2024-12-13 19:51:05.733 - debug: modbus.0 (1511) Plugin sentry Initialize Plugin (enabled=true) 2024-12-13 19:51:05.919 - info: modbus.0 (1511) starting. Version 6.3.2 in /opt/iobroker/node_modules/iobroker.modbus, node: v18.19.0, js-controller: 7.0.3 2024-12-13 19:51:05.972 - debug: modbus.0 (1511) Initialize Objects for disInputs: [] 2024-12-13 19:51:05.972 - debug: modbus.0 (1511) Initialize Objects for coils: [] 2024-12-13 19:51:05.973 - debug: modbus.0 (1511) Initialize Objects for inputRegs: [{"_address":4999,"deviceId":1,"name":"Device type code","description":"Geräte Typ-Code","unit":"","type":"int8be","len":1,"factor":1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":4999,"id":"inputRegisters.1.4999_Device_type__code"},{"_address":5000,"deviceId":1,"name":"Nominal Output Power","description":"Installierte Leistung","unit":"Kw","type":"uint16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5000,"id":"inputRegisters.1.5000_Nominal_Output_Power"},{"_address":5002,"deviceId":1,"name":"Daily Output Energy","description":"Eigene Energienutzung heute (PV & Akku)","unit":"Kwh","type":"uint16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5002,"id":"inputRegisters.1.5002_Daily__Output_Energy"},{"_address":5003,"deviceId":1,"name":"Total Output Energy","description":"Eigene Energienutzung gesamt (PV & Akku)","unit":"Kwh","type":"uint32sw","len":2,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5003,"id":"inputRegisters.1.5003_Total_Output_Energy"},{"_address":5007,"deviceId":1,"name":"Inside Temperature","description":"Temperatur im Wechselrichter","unit":"°C","type":"int16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5007,"id":"inputRegisters.1.5007_Inside__Temperature"},{"_address":5010,"deviceId":1,"name":"MPPT 1 Voltage","description":"MPPT1 Spannung","unit":"V","type":"uint16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5010,"id":"inputRegisters.1.5010_MPPT_1_Voltage"},{"_address":5011,"deviceId":1,"name":"MPPT 1 Current","description":"MPPT1 Strom","unit":"A","type":"uint16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5011,"id":"inputRegisters.1.5011_MPPT_1_Current"},{"_address":5012,"deviceId":1,"name":"MPPT 2 Voltage","description":"MPPT2 Spannung","unit":"V","type":"uint16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5012,"id":"inputRegisters.1.5012_MPPT_2_Voltage"},{"_address":5013,"deviceId":1,"name":"MPPT 2 Current","description":"MPPT2 Strom","unit":"A","type":"uint16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5013,"id":"inputRegisters.1.5013_MPPT_2_Current"},{"_address":5016,"deviceId":1,"name":"Total DC Power","description":"PV-Leistung aktuell","unit":"W","type":"uint32sw","len":2,"factor":1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5016,"id":"inputRegisters.1.5016_Total_DC_Power"},{"_address":5018,"deviceId":1,"name":"Spannung Ph A","description":"Spannung Phase A","unit":"V","type":"uint16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5018,"id":"inputRegisters.1.5018_Spannung_Ph_A"},{"_address":5019,"deviceId":1,"name":"Spannung Ph B","description":"Spannung Phase B","unit":"V","type":"uint16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5019,"id":"inputRegisters.1.5019_Spannung_Ph_B"},{"_address":5020,"deviceId":1,"name":"Spannung Ph C","description":"Spannung Phase C","unit":"V","type":"uint16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5020,"id":"inputRegisters.1.5020_Spannung_Ph_C"},{"_address":5032,"deviceId":1,"name":"Reactive Power","description":"Blindleistung","unit":"VA®","type":"int32sw","len":2,"factor":1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5032,"id":"inputRegisters.1.5032_Reactive_Power"},{"_address":5034,"deviceId":1,"name":"Power Factor","description":"Leistungsfaktor","unit":"","type":"int16be","len":1,"factor":0.001,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5034,"id":"inputRegisters.1.5034_Power_Factor"},{"_address":5035,"deviceId":1,"name":"Grid Frequency","description":"Netzfrequenz","unit":"Hz","type":"uint16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5035,"id":"inputRegisters.1.5035_Grid_Frequency"},{"_address":5600,"deviceId":1,"name":"Gesamtleistung DTSU666","description":"Leistung","unit":"W","type":"int32sw","len":2,"factor":1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5600,"id":"inputRegisters.1.5600_Gesamtleistung_DTSU666"},{"_address":5602,"deviceId":1,"name":"L1 Leistung DTSU666","description":"Leistung L1","unit":"W","type":"int32sw","len":2,"factor":1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5602,"id":"inputRegisters.1.5602_L1_Leistung_DTSU666"},{"_address":5604,"deviceId":1,"name":"L2 Leistung DTSU666","description":"Leistung L2","unit":"W","type":"int32sw","len":2,"factor":1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5604,"id":"inputRegisters.1.5604_L2_Leistung_DTSU666"},{"_address":5606,"deviceId":1,"name":"L3 Leistung DTSU666","description":"Leistung L3","unit":"W","type":"int32sw","len":2,"factor":1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5606,"id":"inputRegisters.1.5606_L3_Leistung_DTSU666"},{"_address":5740,"deviceId":1,"name":"PhaseA Voltage DTSU666","description":"Spannung Phase1","unit":"V","type":"uint16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5740,"id":"inputRegisters.1.5740_PhaseA_Voltage_DTSU666"},{"_address":5741,"deviceId":1,"name":"PhaseB Voltage DTSU666","description":"Spannung Phase2","unit":"V","type":"uint16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5741,"id":"inputRegisters.1.5741_PhaseB_Voltage_DTSU666"},{"_address":5742,"deviceId":1,"name":"PhaseC Voltage DTSU666","description":"Spannung Phase3","unit":"V","type":"uint16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5742,"id":"inputRegisters.1.5742_PhaseC_Voltage_DTSU666"},{"_address":5743,"deviceId":1,"name":"PhaseA Current DTSU666","description":"Strom Phase1","unit":"A","type":"uint16be","len":1,"factor":0.01,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5743,"id":"inputRegisters.1.5743_PhaseA_Current_DTSU666"},{"_address":5744,"deviceId":1,"name":"PhaseB Current DTSU666","description":"Strom Phase2","unit":"A","type":"uint16be","len":1,"factor":0.01,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5744,"id":"inputRegisters.1.5744_PhaseB_Current_DTSU666"},{"_address":5745,"deviceId":1,"name":"PhaseC Current DTSU666","description":"Strom Phase3","unit":"A","type":"uint16be","len":1,"factor":0.01,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5745,"id":"inputRegisters.1.5745_PhaseC_Current_DTSU666"},{"_address":5746,"deviceId":1,"name":"Import DTSU666","description":"Import","unit":"kWh","type":"uint32sw","len":2,"factor":0.01,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5746,"id":"inputRegisters.1.5746_Import_DTSU666"},{"_address":5748,"deviceId":1,"name":"Export DTSU666","description":"Export","unit":"kWh","type":"uint32sw","len":2,"factor":0.01,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":5748,"id":"inputRegisters.1.5748_Export_DTSU666"},{"_address":6226,"deviceId":1,"name":"Monthly PV energy yields January","description":" Monatlicher PV Energieertrag Januar","unit":"Kwh","type":"uint16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":6226,"id":"inputRegisters.1.6226_Monthly_PV_energy_yields_January"},{"_address":6227,"deviceId":1,"name":"Monthly PV energy yields February","description":" Monatlicher PV Energieertrag Februar","unit":"Kwh","type":"uint16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":6227,"id":"inputRegisters.1.6227_Monthly_PV_energy_yields_February"},{"_address":6228,"deviceId":1,"name":"Monthly PV energy yields March","description":" Monatlicher PV Energieertrag März","unit":"Kwh","type":"uint16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"address":6228,"id":"inputRegisters.1.6228_Monthly_PV_energy_yields_March"}, ... GEKÜRZT {"_id":"inputRegisters.1.13075_BMS_fault_2","type":"state","common":{"name":"BMS fault 2","role":"value","type":"number","read":true,"write":false,"def":0,"unit":""},"native":{"regType":"inputRegs","address":13075,"deviceId":1,"type":"uint32sw","len":2,"offset":0,"factor":1}} 2024-12-13 19:51:05.981 - debug: modbus.0 (1511) Add inputRegisters.1.13077_BMS_alarm_2: {"_id":"inputRegisters.1.13077_BMS_alarm_2","type":"state","common":{"name":"BMS alarm 2","role":"value","type":"number","read":true,"write":false,"def":0,"unit":""},"native":{"regType":"inputRegs","address":13077,"deviceId":1,"type":"uint32sw","len":2,"offset":0,"factor":1}} 2024-12-13 19:51:05.981 - debug: modbus.0 (1511) Initialize Objects for holdingRegs: [] 2024-12-13 19:51:06.325 - info: modbus.0 (1511) Connected to slave 192.168.178.74 2024-12-13 19:51:06.325 - debug: modbus.0 (1511) [DevID_1] Poll start --------------------- 2024-12-13 19:51:06.326 - debug: modbus.0 (1511) Initialization of scale factors done! 2024-12-13 19:51:06.326 - debug: modbus.0 (1511) [DevID_1/inputRegs] Poll address 4999 - 22 registers 2024-12-13 19:51:06.337 - debug: modbus.0 (1511) [DevID_1/inputRegs] Poll address 4999 DONE 2024-12-13 19:51:06.342 - debug: modbus.0 (1511) [DevID_1/inputRegs] Poll address 5032 - 4 registers 2024-12-13 19:51:06.346 - debug: modbus.0 (1511) [DevID_1/inputRegs] Poll address 5032 DONE 2024-12-13 19:51:06.347 - debug: modbus.0 (1511) [DevID_1/inputRegs] Poll address 5600 - 8 registers 2024-12-13 19:51:06.353 - debug: modbus.0 (1511) [DevID_1/inputRegs] Poll address 5600 DONE 2024-12-13 19:51:06.356 - debug: modbus.0 (1511) [DevID_1/inputRegs] Poll address 5740 - 10 registers 2024-12-13 19:51:06.361 - warn: modbus.0 (1511) [DevID_1] Poll error count: 1 code: "ReadInputRegisters: Invalid FC 132" 2024-12-13 19:51:07.412 - debug: modbus.0 (1511) [DevID_1] Poll start --------------------- 2024-12-13 19:51:07.412 - debug: modbus.0 (1511) [DevID_1/inputRegs] Poll address 4999 - 22 registers 2024-12-13 19:51:07.416 - warn: modbus.0 (1511) Error in handler for 4: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds 2024-12-13 19:51:12.613 - warn: modbus.0 (1511) [DevID_1] Poll error count: 2 code: "App Timeout" 2024-12-13 19:51:13.664 - debug: modbus.0 (1511) [DevID_1] Poll start --------------------- 2024-12-13 19:51:13.665 - debug: modbus.0 (1511) [DevID_1/inputRegs] Poll address 4999 - 22 registers 2024-12-13 19:51:18.666 - warn: modbus.0 (1511) Error: undefined 2024-12-13 19:51:18.666 - error: modbus.0 (1511) Request timed out. 2024-12-13 19:51:18.666 - error: modbus.0 (1511) Client in error state. 2024-12-13 19:51:18.666 - warn: modbus.0 (1511) [DevID_1] Poll error count: 3 code: {"err":"timeout","timeout":5000} 2024-12-13 19:51:18.667 - debug: modbus.0 (1511) Socket closed with error 2024-12-13 19:51:18.667 - debug: modbus.0 (1511) Clearing timeout of the current request. 2024-12-13 19:51:18.667 - debug: modbus.0 (1511) Cleaning up request fifo. 2024-12-13 19:51:19.667 - debug: modbus.0 (1511) Closing client on purpose. 2024-12-13 19:51:19.667 - info: modbus.0 (1511) Disconnected from slave 192.168.178.74
-
@gmt94 Ne.. Ich wüsste auch nicht wo. Ist mir zumindest nicht ins Auge gesprungen
-
Mal die IP Adresse vom wechselrichter im Browser eintippen und dann per admin anmelden. Passwort sollte in den Unterlagen stehen, dann unter System und weitergabekonfiguration Modus aktivieren.
-
Das ist/war an:
Weiß jemand was das für ne Fehlermeldung im Log ist?
"ReadInputRegisters: Invalid FC 132" -
Interessant.. ich hab n Gläschen Wein getrunken, nichts verändert und nun siehts so aus:
und gleich danach wieder nicht mehr verbunden:
2024-12-13 23:14:54.608 - info: modbus.0 (1839) Connected to slave 192.168.178.74 2024-12-13 23:14:54.608 - debug: modbus.0 (1839) [DevID_1] Poll start --------------------- 2024-12-13 23:14:54.608 - debug: modbus.0 (1839) [DevID_1/inputRegs] Poll address 4999 - 22 registers 2024-12-13 23:14:59.609 - warn: modbus.0 (1839) Error: undefined 2024-12-13 23:14:59.609 - error: modbus.0 (1839) Request timed out. 2024-12-13 23:14:59.609 - error: modbus.0 (1839) Client in error state. 2024-12-13 23:14:59.609 - warn: modbus.0 (1839) [DevID_1] Poll error count: 4 code: {"err":"timeout","timeout":5000} 2024-12-13 23:14:59.610 - debug: modbus.0 (1839) Socket closed with error 2024-12-13 23:14:59.610 - debug: modbus.0 (1839) Clearing timeout of the current request. 2024-12-13 23:14:59.610 - debug: modbus.0 (1839) Cleaning up request fifo. 2024-12-13 23:15:00.610 - debug: modbus.0 (1839) Closing client on purpose. 2024-12-13 23:15:00.610 - info: modbus.0 (1839) Disconnected from slave 192.168.178.74 2024-12-13 23:16:00.614 - info: modbus.0 (1839) Connected to slave 192.168.178.74 2024-12-13 23:16:00.614 - debug: modbus.0 (1839) [DevID_1] Poll start --------------------- 2024-12-13 23:16:00.614 - debug: modbus.0 (1839) [DevID_1/inputRegs] Poll address 4999 - 22 registers 2024-12-13 23:16:05.615 - warn: modbus.0 (1839) Error: undefined 2024-12-13 23:16:05.615 - error: modbus.0 (1839) Request timed out. 2024-12-13 23:16:05.615 - error: modbus.0 (1839) Client in error state. 2024-12-13 23:16:05.615 - warn: modbus.0 (1839) [DevID_1] Poll error count: 5 code: {"err":"timeout","timeout":5000} 2024-12-13 23:16:05.616 - debug: modbus.0 (1839) Socket closed with error 2024-12-13 23:16:05.616 - debug: modbus.0 (1839) Clearing timeout of the current request. 2024-12-13 23:16:05.616 - debug: modbus.0 (1839) Cleaning up request fifo. 2024-12-13 23:16:06.616 - debug: modbus.0 (1839) Closing client on purpose. 2024-12-13 23:16:06.616 - info: modbus.0 (1839) Disconnected from slave 192.168.178.74 2024-12-13 23:16:07.424 - info: influxdb.0 (418) enabled logging of modbus.0.inputRegisters.1.5600_Gesamtleistung_DTSU666, Alias=false 2024-12-13 23:17:06.620 - info: modbus.0 (1839) Connected to slave 192.168.178.74 2024-12-13 23:17:06.620 - debug: modbus.0 (1839) [DevID_1] Poll start --------------------- 2024-12-13 23:17:06.620 - debug: modbus.0 (1839) [DevID_1/inputRegs] Poll address 4999 - 22 registers 2024-12-13 23:17:11.621 - warn: modbus.0 (1839) Error: undefined 2024-12-13 23:17:11.621 - error: modbus.0 (1839) Request timed out. 2024-12-13 23:17:11.621 - error: modbus.0 (1839) Client in error state. 2024-12-13 23:17:11.622 - warn: modbus.0 (1839) [DevID_1] Poll error count: 6 code: {"err":"timeout","timeout":5000} 2024-12-13 23:17:11.622 - debug: modbus.0 (1839) Socket closed with error 2024-12-13 23:17:11.622 - debug: modbus.0 (1839) Clearing timeout of the current request. 2024-12-13 23:17:11.622 - debug: modbus.0 (1839) Cleaning up request fifo. 2024-12-13 23:17:12.622 - debug: modbus.0 (1839) Closing client on purpose. 2024-12-13 23:17:12.622 - info: modbus.0 (1839) Disconnected from slave 192.168.178.74
-
Mal ganz blöd gefragt, hat denn jemand erfolgreich einen WR vom gleichen Typ wie @Schneider ihn hat, eingebunden? Und falls ja, mit welchen Registern?
Die Fehlermeldung "Invalid FC 132" klingt für mich nach einer ungültigen Registeradresse.
Ich würde jetzt alle Register rausschmeißen, und nur ein einziges drin lassen - dann schauen ob es geht. Falls ja, nach und nach die gewünschten Register hinzufügen. Die Registeradressen sind zwischen den verschiedenen WR nicht unbedingt identisch. Es gibt da auch (unvollständige) Dokumentation von Sungrow dazu.
-
Hast Du mal das Abfrageintervall verlängert? Eine Sekunde ist ziemlich stramm für den WR. Ich hab da zum Beispiel drei Sekunden drin stehen.