NEWS
Modbus Poll funktioniert nicht
-
@captainchaos666 Stell das loggen mal auf Debug.
Ich hatte ein ähnliches Verhalten mal bei einem Zähler den ich auslesen wollte.
Bei mir lag es am Ende daran das ich nicht 100% das richtige Protokoll gewählt hatte.
Richtig ist bei mir z.B.
Ich hatte aber immer was anderes eingestellt. Kann mich leider nicht mehr erinnern was.
EDIT: Hatte vorher immer Unsigned 32bit
-
@wendy2702 sagte in Modbus Poll funktioniert nicht:
Ich hatte ein ähnliches Verhalten mal bei einem Zähler den ich auslesen wollte.
Bei mir lag es am Ende daran das ich nicht 100% das richtige Protokoll gewählt hatte.
Richtig ist bei mir z.B.
Ich hatte aber immer was anderes eingestellt. Kann mich leider nicht mehr erinnern was.
EDIT: Hatte vorher immer Unsigned 32bitDas dürfte nichts ausmachen, du bekommst dann halt nur unplausible Werte. Aber aus meiner Verzweiflung habe ich inzwischen eine neue Instanz aufgesetzt mit nur einer Variablen zum auslesen (Eingangsregister). Und extra eine genommen wo nicht viel schief gehen kann. Das die Verbindung wieder abgebaut wird ist weiterhin noch so
Spezifikation laut Herstellermodbus.2 2021-02-09 15:28:46.286 info (1121) Disconnected from slave 192.168.178.202 modbus.2 2021-02-09 15:28:45.185 info (1121) Connected to slave 192.168.178.202 modbus.2 2021-02-09 15:27:45.182 info (1121) Disconnected from slave 192.168.178.202 modbus.2 2021-02-09 15:27:44.052 info (1121) Connected to slave 192.168.178.202 modbus.2 2021-02-09 15:26:44.050 info (1121) Disconnected from slave 192.168.178.202 modbus.2 2021-02-09 15:26:42.833 info (1121) Connected to slave 192.168.178.202 modbus.2 2021-02-09 15:25:42.830 info (1121) Disconnected from slave 192.168.178.202 modbus.2 2021-02-09 15:25:41.816 info (1121) Connected to slave 192.168.178.202 modbus.2 2021-02-09 15:24:41.812 info (1121) Disconnected from slave 192.168.178.202 modbus.2 2021-02-09 15:24:40.699 info (1121) Connected to slave 192.168.178.202 modbus.2 2021-02-09 15:23:40.696 info (1121) Disconnected from slave 192.168.178.202 modbus.2 2021-02-09 15:23:39.680 info (1121) Connected to slave 192.168.178.202 modbus.2 2021-02-09 15:22:39.677 info (1121) Disconnected from slave 192.168.178.202 modbus.2 2021-02-09 15:22:37.612 info (1121) Connected to slave 192.168.178.202 modbus.2 2021-02-09 15:21:37.610 info (1121) Disconnected from slave 192.168.178.202 modbus.2 2021-02-09 15:21:36.518 info (1121) Connected to slave 192.168.178.202 modbus.2 2021-02-09 15:20:36.516 info (1121) Disconnected from slave 192.168.178.202 modbus.2 2021-02-09 15:20:35.404 info (1121) Connected to slave 192.168.178.202 modbus.2 2021-02-09 15:19:35.401 info (1121) Disconnected from slave 192.168.178.202 modbus.2 2021-02-09 15:19:34.211 info (1121) Connected to slave 192.168.178.202 modbus.2 2021-02-09 15:18:34.207 info (1121) Disconnected from slave 192.168.178.202 modbus.2 2021-02-09 15:18:33.091 info (1121) Connected to slave 192.168.178.202 modbus.2 2021-02-09 15:17:33.087 info (1121) Disconnected from slave 192.168.178.202 modbus.2 2021-02-09 15:17:32.071 info (1121) Connected to slave 192.168.178.202 modbus.2 2021-02-09 15:16:32.067 info (1121) Disconnected from slave 192.168.178.202 modbus.2 2021-02-09 15:16:30.954 info (1121) Connected to slave 192.168.178.202
Die Verbindung wird weiterhin immer noch nach der Reconnect-Zeit wieder aufgebaut. Ein Pollen des einzelnen Wert ist weiterhin nicht möglich
-
@captainchaos666 sagte in Modbus Poll funktioniert nicht:
Das dürfte nichts ausmachen, du bekommst dann halt nur unplausible Werte.
Das stimmt leider nicht.
Meine Erfahrungen zu dem Thema findest du hier: https://forum.iobroker.net/topic/5343/frage-zur-konfiguration-modbus-seriell?_=1612881822694
Das loggen hast du scheinbar noch nicht auf "debug" umgestellt.
-
@wendy2702 sagte in Modbus Poll funktioniert nicht:
Das loggen hast du scheinbar noch nicht auf "debug" umgestellt.
Steht schon auf debug
-
Bei der Modbus Instanz 2 , die Logstufe auf DEBUG einstellen ( sichtbar im Expertenmodus )
-
@captainchaos666 Das ist nur der Anzeigefilter.
Du musst das hier machen:
Zuerst den ExpertenModus Aktivieren (oben links im Bild) falls noch nicht aktiv. Dann hinter der Instanz auf das Info klicken und dort Debug auswählen.
EDIT: @Glasfaser war schneller
-
Danke mal für Eure Unterstützung, könnt ihr aus dem Log was erkennen?
modbus.2 2021-02-09 21:14:44.802 info (6619) Disconnected from slave 192.168.178.202 modbus.2 2021-02-09 21:14:44.801 debug (6619) Closing client on purpose. modbus.2 2021-02-09 21:14:44.670 debug (6619) Poll inputRegs DevID(1) address 12999 - 1 bytes modbus.2 2021-02-09 21:14:44.669 debug (6619) Poll device 1 modbus.2 2021-02-09 21:14:43.801 debug (6619) Cleaning up request fifo. modbus.2 2021-02-09 21:14:43.800 debug (6619) Clearing timeout of the current request. modbus.2 2021-02-09 21:14:43.799 debug (6619) Socket closed with error modbus.2 2021-02-09 21:14:43.614 debug (6619) Poll inputRegs DevID(1) address 12999 - 1 bytes modbus.2 2021-02-09 21:14:43.614 debug (6619) Poll device 1 modbus.2 2021-02-09 21:14:43.612 info (6619) Connected to slave 192.168.178.202 modbus.2 2021-02-09 21:13:43.610 info (6619) Disconnected from slave 192.168.178.202 modbus.2 2021-02-09 21:13:43.609 debug (6619) Closing client on purpose. modbus.2 2021-02-09 21:13:42.608 debug (6619) Cleaning up request fifo. modbus.2 2021-02-09 21:13:42.607 debug (6619) Clearing timeout of the current request. modbus.2 2021-02-09 21:13:42.606 debug (6619) Socket closed with error modbus.2 2021-02-09 21:13:42.595 debug (6619) Poll inputRegs DevID(1) address 12999 - 1 bytes modbus.2 2021-02-09 21:13:42.594 debug (6619) Poll device 1 modbus.2 2021-02-09 21:13:42.593 info (6619) Connected to slave 192.168.178.202 modbus.2 2021-02-09 21:12:42.591 info (6619) Disconnected from slave 192.168.178.202 modbus.2 2021-02-09 21:12:42.590 debug (6619) Closing client on purpose. modbus.2 2021-02-09 21:12:42.536 debug (6619) Poll inputRegs DevID(1) address 12999 - 1 bytes modbus.2 2021-02-09 21:12:42.535 debug (6619) Poll device 1 modbus.2 2021-02-09 21:12:41.589 debug (6619) Cleaning up request fifo. modbus.2 2021-02-09 21:12:41.588 debug (6619) Clearing timeout of the current request. modbus.2 2021-02-09 21:12:41.587 debug (6619) Socket closed with error modbus.2 2021-02-09 21:12:41.479 debug (6619) Poll inputRegs DevID(1) address 12999 - 1 bytes modbus.2 2021-02-09 21:12:41.478 debug (6619) Poll device 1 modbus.2 2021-02-09 21:12:41.477 info (6619) Connected to slave 192.168.178.202
-
@captainchaos666 Gibt es eine Beschreibung der Modbus Funktionen des WRs ?
Woher weisst du das für dieses Register 16bit unsigned big-endian richtig sind?
-
@wendy2702 sagte in Modbus Poll funktioniert nicht:
Woher weisst du das für dieses Register 16bit unsigned big-endian richtig sind?
Habe die Modbus-Spezifikation von Sungrow, habs mal in den Teile zusammen gesnipped
Habe in der Spezifikation noch den Hinweis gefunden: If data of address 5000 is to be inquired, the
corresponding sending address data is 4999 (0x1387) -
@captainchaos666 Kommen denn um diese Uhrzeit noch Daten vom WR?
Ich habe SMA und die liefern nachts nichts mehr.
-
@wendy2702 sagte in Modbus Poll funktioniert nicht:
Ich habe SMA und die liefern nachts nichts mehr.
Klar, habe einen Strahler hingestellt damit ich Nachts EEG Strom machen kann. Nein Spaß bei Seite ist der SH10RT ein Hybridwechselrichter
-
@captainchaos666 Denke Hybrid bedeutet das ein Akku dran hängt und er also nie schläft.
Wenn ich morgen Zeit habe schau ich mal in die Doku.
-
@wendy2702 sagte in Modbus Poll funktioniert nicht:
Denke Hybrid bedeutet das ein Akku dran hängt und er also nie schläft.
Ja, der ist immer an, es kann eine Batterie angeschlossen werden.
@wendy2702 sagte in Modbus Poll funktioniert nicht:
Wenn ich morgen Zeit habe schau ich mal in die Doku.
Brauchst du die komplette Modbus-Spezifikation von Sungrow?
Danke vorab für deine Hilfe
-
@captainchaos666 Kannst du mal versuchen diese Adresse auszulesen:
5007 Signed 16 Bit und dann mal nach einander als Little und Big Endian.
-
Little Endian:
modbus.2 2021-02-10 16:57:39.811 info (3700) Disconnected from slave 192.168.178.202 modbus.2 2021-02-10 16:57:39.810 debug (3700) Closing client on purpose. modbus.2 2021-02-10 16:57:38.908 debug (3700) Poll inputRegs DevID(1) address 5007 - 1 bytes modbus.2 2021-02-10 16:57:38.907 debug (3700) Poll device 1 modbus.2 2021-02-10 16:57:38.809 debug (3700) Cleaning up request fifo. modbus.2 2021-02-10 16:57:38.808 debug (3700) Clearing timeout of the current request. modbus.2 2021-02-10 16:57:38.807 debug (3700) Socket closed with error modbus.2 2021-02-10 16:57:37.844 debug (3700) Poll inputRegs DevID(1) address 5007 - 1 bytes modbus.2 2021-02-10 16:57:37.843 debug (3700) Poll device 1 modbus.2 2021-02-10 16:57:37.842 info (3700) Connected to slave 192.168.178.202 modbus.2 2021-02-10 16:56:37.838 info (3700) Disconnected from slave 192.168.178.202 modbus.2 2021-02-10 16:56:37.837 debug (3700) Closing client on purpose. modbus.2 2021-02-10 16:56:37.747 debug (3700) Poll inputRegs DevID(1) address 5007 - 1 bytes modbus.2 2021-02-10 16:56:37.746 debug (3700) Poll device 1 modbus.2 2021-02-10 16:56:36.837 debug (3700) Cleaning up request fifo. modbus.2 2021-02-10 16:56:36.836 debug (3700) Clearing timeout of the current request. modbus.2 2021-02-10 16:56:36.835 debug (3700) Socket closed with error modbus.2 2021-02-10 16:56:36.683 debug (3700) Poll inputRegs DevID(1) address 5007 - 1 bytes modbus.2 2021-02-10 16:56:36.681 debug (3700) Poll device 1 modbus.2 2021-02-10 16:56:36.680 info (3700) Connected to slave 192.168.178.202
Big Endian:
modbus.2 2021-02-10 17:02:47.841 info (3899) Disconnected from slave 192.168.178.202 modbus.2 2021-02-10 17:02:47.840 debug (3899) Closing client on purpose. modbus.2 2021-02-10 17:02:47.651 debug (3899) Poll inputRegs DevID(1) address 5007 - 1 bytes modbus.2 2021-02-10 17:02:47.650 debug (3899) Poll device 1 modbus.2 2021-02-10 17:02:46.839 debug (3899) Cleaning up request fifo. modbus.2 2021-02-10 17:02:46.838 debug (3899) Clearing timeout of the current request. modbus.2 2021-02-10 17:02:46.837 debug (3899) Socket closed with error modbus.2 2021-02-10 17:02:46.590 debug (3899) Poll inputRegs DevID(1) address 5007 - 1 bytes modbus.2 2021-02-10 17:02:46.590 debug (3899) Poll device 1 modbus.2 2021-02-10 17:02:46.588 info (3899) Connected to slave 192.168.178.202 modbus.2 2021-02-10 17:01:46.585 info (3899) Disconnected from slave 192.168.178.202 modbus.2 2021-02-10 17:01:46.584 debug (3899) Closing client on purpose. modbus.2 2021-02-10 17:01:46.569 debug (3899) Poll inputRegs DevID(1) address 5007 - 1 bytes modbus.2 2021-02-10 17:01:46.568 debug (3899) Poll device 1 modbus.2 2021-02-10 17:01:45.582 debug (3899) Cleaning up request fifo. modbus.2 2021-02-10 17:01:45.582 debug (3899) Clearing timeout of the current request. modbus.2 2021-02-10 17:01:45.581 debug (3899) Socket closed with error modbus.2 2021-02-10 17:01:45.473 debug (3899) Poll inputRegs DevID(1) address 5007 - 1 bytes modbus.2 2021-02-10 17:01:45.472 debug (3899) Poll device 1 modbus.2 2021-02-10 17:01:45.470 info (3899) Connected to slave 192.168.178.202
-
@captainchaos666 Big Endian scheint mir richtig zu sein. Da wohl noch durch 10 geteilt werden muss.
Mal 3002 32bit unsigned zum testen dazu bitte. Auch wieder beides Testen.
-
ost.RaspSchaltschrank 2021-02-10 17:45:25.031 info Restart adapter system.adapter.modbus.2 because enabled host.RaspSchaltschrank 2021-02-10 17:45:25.031 error instance system.adapter.modbus.2 terminated with code 1 (JS_CONTROLLER_STOPPED) host.RaspSchaltschrank 2021-02-10 17:45:25.030 error Caught by controller[0]: at readableAddChunk (_stream_readable.js:272:9) host.RaspSchaltschrank 2021-02-10 17:45:25.030 error Caught by controller[0]: at addChunk (_stream_readable.js:297:12) host.RaspSchaltschrank 2021-02-10 17:45:25.029 error Caught by controller[0]: at Socket.EventEmitter.emit (domain.js:483:12) host.RaspSchaltschrank 2021-02-10 17:45:25.029 error Caught by controller[0]: at Socket.emit (events.js:314:20) host.RaspSchaltschrank 2021-02-10 17:45:25.028 error Caught by controller[0]: at Socket.onSocketData (/opt/iobroker/node_modules/iobroker.modbus/lib/jsmodbus/transports/modbus-client-tcp.js:97:26) host.RaspSchaltschrank 2021-02-10 17:45:25.028 error Caught by controller[0]: at Object.emit (/opt/iobroker/node_modules/stampit-event-bus/src/stampit-event-bus.js:20:38) host.RaspSchaltschrank 2021-02-10 17:45:25.028 error Caught by controller[0]: at Object.onData (/opt/iobroker/node_modules/iobroker.modbus/lib/jsmodbus/modbus-client-core.js:126:13) host.RaspSchaltschrank 2021-02-10 17:45:25.027 error Caught by controller[0]: at onResponse (/opt/iobroker/node_modules/iobroker.modbus/lib/jsmodbus/handler/client/ReadInputRegisters.js:30:44) host.RaspSchaltschrank 2021-02-10 17:45:25.027 error Caught by controller[0]: at Buffer.readUInt16BE (internal/buffer.js:328:5) host.RaspSchaltschrank 2021-02-10 17:45:25.026 error Caught by controller[0]: at boundsError (internal/buffer.js:82:9) host.RaspSchaltschrank 2021-02-10 17:45:25.026 error Caught by controller[0]: RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 2 modbus.2 2021-02-10 17:45:24.845 error (5720) Client in error state. modbus.2 2021-02-10 17:45:24.843 error (5720) Socket Error modbus.2 2021-02-10 17:45:24.815 warn (5720) Terminated (UNCAUGHT_EXCEPTION): Without reason modbus.2 2021-02-10 17:45:24.814 debug (5720) Plugin sentry destroyed modbus.2 2021-02-10 17:45:24.811 info (5720) terminating modbus.2 2021-02-10 17:45:24.808 debug (5720) Closing client on purpose. modbus.2 2021-02-10 17:45:24.763 error (5720) Exception-Code: ERR_OUT_OF_RANGE: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 2 modbus.2 2021-02-10 17:45:24.762 error (5720) RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 2 at boundsError (internal/buffer.js:82:9) at Buffer.readUInt16BE (internal/buff modbus.2 2021-02-10 17:45:24.761 error (5720) uncaught exception: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 2 modbus.2 2021-02-10 17:45:24.722 debug (5720) Poll inputRegs DevID(1) address 3002 - 2 bytes modbus.2 2021-02-10 17:45:24.721 debug (5720) Initialization of scale factors done! modbus.2 2021-02-10 17:45:24.718 debug (5720) Poll device 1 modbus.2 2021-02-10 17:45:24.715 info (5720) Connected to slave 192.168.178.202 modbus.2 2021-02-10 17:45:24.079 info (5720) starting. Version 3.2.4 in /opt/iobroker/node_modules/iobroker.modbus, node: v12.20.1, js-controller: 3.2.13 modbus.2 2021-02-10 17:45:23.630 debug (5720) Plugin sentry Initialize Plugin (enabled=true) host.RaspSchaltschrank 2021-02-10 17:45:21.353 info instance system.adapter.modbus.2 started with pid 5720 host.RaspSchaltschrank 2021-02-10 17:44:51.320 info Restart adapter system.adapter.modbus.2 because enabled host.RaspSchaltschrank 2021-02-10 17:44:51.319 error instance system.adapter.modbus.2 terminated with code 1 (JS_CONTROLLER_STOPPED) host.RaspSchaltschrank 2021-02-10 17:44:51.319 error Caught by controller[0]: at readableAddChunk (_stream_readable.js:272:9) host.RaspSchaltschrank 2021-02-10 17:44:51.318 error Caught by controller[0]: at addChunk (_stream_readable.js:297:12) host.RaspSchaltschrank 2021-02-10 17:44:51.318 error Caught by controller[0]: at Socket.EventEmitter.emit (domain.js:483:12) host.RaspSchaltschrank 2021-02-10 17:44:51.318 error Caught by controller[0]: at Socket.emit (events.js:314:20) host.RaspSchaltschrank 2021-02-10 17:44:51.317 error Caught by controller[0]: at Socket.onSocketData (/opt/iobroker/node_modules/iobroker.modbus/lib/jsmodbus/transports/modbus-client-tcp.js:97:26) host.RaspSchaltschrank 2021-02-10 17:44:51.317 error Caught by controller[0]: at Object.emit (/opt/iobroker/node_modules/stampit-event-bus/src/stampit-event-bus.js:20:38) host.RaspSchaltschrank 2021-02-10 17:44:51.317 error Caught by controller[0]: at Object.onData (/opt/iobroker/node_modules/iobroker.modbus/lib/jsmodbus/modbus-client-core.js:126:13) host.RaspSchaltschrank 2021-02-10 17:44:51.316 error Caught by controller[0]: at onResponse (/opt/iobroker/node_modules/iobroker.modbus/lib/jsmodbus/handler/client/ReadInputRegisters.js:30:44) host.RaspSchaltschrank 2021-02-10 17:44:51.316 error Caught by controller[0]: at Buffer.readUInt16BE (internal/buffer.js:328:5) host.RaspSchaltschrank 2021-02-10 17:44:51.315 error Caught by controller[0]: at boundsError (internal/buffer.js:82:9) host.RaspSchaltschrank 2021-02-10 17:44:51.315 error Caught by controller[0]: RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 2 modbus.2 2021-02-10 17:44:51.151 error (5678) Client in error state. modbus.2 2021-02-10 17:44:51.150 error (5678) Socket Error modbus.2 2021-02-10 17:44:51.121 warn (5678) Terminated (UNCAUGHT_EXCEPTION): Without reason modbus.2 2021-02-10 17:44:51.120 debug (5678) Plugin sentry destroyed modbus.2 2021-02-10 17:44:51.118 info (5678) terminating modbus.2 2021-02-10 17:44:51.115 debug (5678) Closing client on purpose. modbus.2 2021-02-10 17:44:51.063 error (5678) Exception-Code: ERR_OUT_OF_RANGE: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 2 modbus.2 2021-02-10 17:44:51.061 error (5678) RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 2 at boundsError (internal/buffer.js:82:9) at Buffer.readUInt16BE (internal/buff modbus.2 2021-02-10 17:44:51.060 error (5678) uncaught exception: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 2 modbus.2 2021-02-10 17:44:51.017 debug (5678) Poll inputRegs DevID(1) address 3002 - 2 bytes modbus.2 2021-02-10 17:44:51.016 debug (5678) Initialization of scale factors done! modbus.2 2021-02-10 17:44:51.012 debug (5678) Poll device 1 modbus.2 2021-02-10 17:44:51.005 info (5678) Connected to slave 192.168.178.202 modbus.2 2021-02-10 17:44:50.365 info (5678) starting. Version 3.2.4 in /opt/iobroker/node_modules/iobroker.modbus, node: v12.20.1, js-controller: 3.2.13 modbus.2 2021-02-10 17:44:49.960 debug (5678) Plugin sentry Initialize Plugin (enabled=true) host.RaspSchaltschrank 2021-02-10 17:44:47.714 info instance system.adapter.modbus.2 started with pid 5678
host.RaspSchaltschrank 2021-02-10 17:48:46.607 info Restart adapter system.adapter.modbus.2 because enabled host.RaspSchaltschrank 2021-02-10 17:48:46.606 error instance system.adapter.modbus.2 terminated with code 1 (JS_CONTROLLER_STOPPED) host.RaspSchaltschrank 2021-02-10 17:48:46.606 error Caught by controller[0]: at readableAddChunk (_stream_readable.js:272:9) host.RaspSchaltschrank 2021-02-10 17:48:46.605 error Caught by controller[0]: at addChunk (_stream_readable.js:297:12) host.RaspSchaltschrank 2021-02-10 17:48:46.605 error Caught by controller[0]: at Socket.EventEmitter.emit (domain.js:483:12) host.RaspSchaltschrank 2021-02-10 17:48:46.605 error Caught by controller[0]: at Socket.emit (events.js:314:20) host.RaspSchaltschrank 2021-02-10 17:48:46.604 error Caught by controller[0]: at Socket.onSocketData (/opt/iobroker/node_modules/iobroker.modbus/lib/jsmodbus/transports/modbus-client-tcp.js:97:26) host.RaspSchaltschrank 2021-02-10 17:48:46.604 error Caught by controller[0]: at Object.emit (/opt/iobroker/node_modules/stampit-event-bus/src/stampit-event-bus.js:20:38) host.RaspSchaltschrank 2021-02-10 17:48:46.603 error Caught by controller[0]: at Object.onData (/opt/iobroker/node_modules/iobroker.modbus/lib/jsmodbus/modbus-client-core.js:126:13) host.RaspSchaltschrank 2021-02-10 17:48:46.603 error Caught by controller[0]: at onResponse (/opt/iobroker/node_modules/iobroker.modbus/lib/jsmodbus/handler/client/ReadInputRegisters.js:30:44) host.RaspSchaltschrank 2021-02-10 17:48:46.602 error Caught by controller[0]: at Buffer.readUInt16BE (internal/buffer.js:328:5) host.RaspSchaltschrank 2021-02-10 17:48:46.602 error Caught by controller[0]: at boundsError (internal/buffer.js:82:9) host.RaspSchaltschrank 2021-02-10 17:48:46.601 error Caught by controller[0]: RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 2 modbus.2 2021-02-10 17:48:46.418 error (5929) Client in error state. modbus.2 2021-02-10 17:48:46.417 error (5929) Socket Error modbus.2 2021-02-10 17:48:46.388 warn (5929) Terminated (UNCAUGHT_EXCEPTION): Without reason modbus.2 2021-02-10 17:48:46.387 debug (5929) Plugin sentry destroyed modbus.2 2021-02-10 17:48:46.385 info (5929) terminating modbus.2 2021-02-10 17:48:46.382 debug (5929) Closing client on purpose. modbus.2 2021-02-10 17:48:46.345 error (5929) Exception-Code: ERR_OUT_OF_RANGE: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 2 modbus.2 2021-02-10 17:48:46.344 error (5929) RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 2 at boundsError (internal/buffer.js:82:9) at Buffer.readUInt16BE (internal/buff modbus.2 2021-02-10 17:48:46.343 error (5929) uncaught exception: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 2 modbus.2 2021-02-10 17:48:46.306 debug (5929) Poll inputRegs DevID(1) address 3002 - 2 bytes modbus.2 2021-02-10 17:48:46.305 debug (5929) Initialization of scale factors done! modbus.2 2021-02-10 17:48:46.302 debug (5929) Poll device 1 modbus.2 2021-02-10 17:48:46.300 info (5929) Connected to slave 192.168.178.202 modbus.2 2021-02-10 17:48:45.655 info (5929) starting. Version 3.2.4 in /opt/iobroker/node_modules/iobroker.modbus, node: v12.20.1, js-controller: 3.2.13 modbus.2 2021-02-10 17:48:45.254 debug (5929) Plugin sentry Initialize Plugin (enabled=true) host.RaspSchaltschrank 2021-02-10 17:48:42.978 info instance system.adapter.modbus.2 started with pid 5929
-
-
modbus.2 2021-02-10 19:55:48.976 info (10919) Disconnected from slave 192.168.178.202 modbus.2 2021-02-10 19:55:48.975 debug (10919) Closing client on purpose. modbus.2 2021-02-10 19:55:48.920 debug (10919) Poll inputRegs DevID(1) address 13002 - 2 bytes modbus.2 2021-02-10 19:55:48.918 debug (10919) Poll device 1 modbus.2 2021-02-10 19:55:47.973 debug (10919) Cleaning up request fifo. modbus.2 2021-02-10 19:55:47.972 debug (10919) Clearing timeout of the current request. modbus.2 2021-02-10 19:55:47.971 debug (10919) Socket closed with error modbus.2 2021-02-10 19:55:47.863 debug (10919) Poll inputRegs DevID(1) address 13002 - 2 bytes modbus.2 2021-02-10 19:55:47.862 debug (10919) Poll device 1 modbus.2 2021-02-10 19:55:47.861 info (10919) Connected to slave 192.168.178.202 modbus.2 2021-02-10 19:54:47.858 info (10919) Disconnected from slave 192.168.178.202 modbus.2 2021-02-10 19:54:47.857 debug (10919) Closing client on purpose. modbus.2 2021-02-10 19:54:46.855 debug (10919) Cleaning up request fifo. modbus.2 2021-02-10 19:54:46.854 debug (10919) Clearing timeout of the current request. modbus.2 2021-02-10 19:54:46.853 debug (10919) Socket closed with error modbus.2 2021-02-10 19:54:46.843 debug (10919) Poll inputRegs DevID(1) address 13002 - 2 bytes modbus.2 2021-02-10 19:54:46.842 debug (10919) Poll device 1 modbus.2 2021-02-10 19:54:46.841 info (10919) Connected to slave 192.168.178.202
modbus.2 2021-02-10 20:00:50.242 info (11046) Disconnected from slave 192.168.178.202 modbus.2 2021-02-10 20:00:50.240 debug (11046) Closing client on purpose. modbus.2 2021-02-10 20:00:50.134 debug (11046) Poll inputRegs DevID(1) address 13002 - 2 bytes modbus.2 2021-02-10 20:00:50.132 debug (11046) Poll device 1 modbus.2 2021-02-10 20:00:49.239 debug (11046) Cleaning up request fifo. modbus.2 2021-02-10 20:00:49.239 debug (11046) Clearing timeout of the current request. modbus.2 2021-02-10 20:00:49.238 debug (11046) Socket closed with error modbus.2 2021-02-10 20:00:49.073 debug (11046) Poll inputRegs DevID(1) address 13002 - 2 bytes modbus.2 2021-02-10 20:00:49.072 debug (11046) Poll device 1 modbus.2 2021-02-10 20:00:49.071 info (11046) Connected to slave 192.168.178.202 modbus.2 2021-02-10 20:00:12.149 debug (11046) sendTo "listUart" to system.adapter.admin.0 from system.adapter.modbus.2 modbus.2 2021-02-10 20:00:12.148 info (11046) List of port: [{"path":"/dev/ttyS0"}] modbus.2 2021-02-10 20:00:12.147 info (11046) Check /dev/ttyS0 : true modbus.2 2021-02-10 20:00:12.142 info (11046) Verify [{"path":"/dev/ttyS0"}] modbus.2 2021-02-10 19:59:49.066 info (11046) Disconnected from slave 192.168.178.202 modbus.2 2021-02-10 19:59:49.065 debug (11046) Closing client on purpose. modbus.2 2021-02-10 19:59:48.527 debug (11046) Poll inputRegs DevID(1) address 13002 - 2 bytes modbus.2 2021-02-10 19:59:48.526 debug (11046) Poll device 1 modbus.2 2021-02-10 19:59:48.062 debug (11046) Cleaning up request fifo. modbus.2 2021-02-10 19:59:48.061 debug (11046) Clearing timeout of the current request. modbus.2 2021-02-10 19:59:48.060 debug (11046) Socket closed with error modbus.2 2021-02-10 19:59:47.445 debug (11046) Poll inputRegs DevID(1) address 13002 - 2 bytes modbus.2 2021-02-10 19:59:47.444 debug (11046) Initialization of scale factors done! modbus.2 2021-02-10 19:59:47.441 debug (11046) Poll device 1 modbus.2 2021-02-10 19:59:47.438 info (11046) Connected to slave 192.168.178.202
Und so wie es sein sollte, bzw war:
modbus.2 2021-02-10 20:07:13.480 info (11164) Disconnected from slave 192.168.178.202 modbus.2 2021-02-10 20:07:13.479 debug (11164) Closing client on purpose. modbus.2 2021-02-10 20:07:12.478 debug (11164) Cleaning up request fifo. modbus.2 2021-02-10 20:07:12.477 debug (11164) Clearing timeout of the current request. modbus.2 2021-02-10 20:07:12.476 debug (11164) Socket closed with error modbus.2 2021-02-10 20:07:12.464 debug (11164) Poll inputRegs DevID(1) address 13002 - 2 bytes modbus.2 2021-02-10 20:07:12.463 debug (11164) Poll device 1 modbus.2 2021-02-10 20:07:12.462 info (11164) Connected to slave 192.168.178.202 modbus.2 2021-02-10 20:06:12.459 info (11164) Disconnected from slave 192.168.178.202 modbus.2 2021-02-10 20:06:12.458 debug (11164) Closing client on purpose. modbus.2 2021-02-10 20:06:12.421 debug (11164) Poll inputRegs DevID(1) address 13002 - 2 bytes modbus.2 2021-02-10 20:06:12.420 debug (11164) Poll device 1 modbus.2 2021-02-10 20:06:11.456 debug (11164) Cleaning up request fifo. modbus.2 2021-02-10 20:06:11.455 debug (11164) Clearing timeout of the current request. modbus.2 2021-02-10 20:06:11.454 debug (11164) Socket closed with error modbus.2 2021-02-10 20:06:11.360 debug (11164) Poll inputRegs DevID(1) address 13002 - 2 bytes modbus.2 2021-02-10 20:06:11.360 debug (11164) Poll device 1 modbus.2 2021-02-10 20:06:11.357 info (11164) Connected to slave 192.168.178.202
-
@captainchaos666 Und wenn du jetzt mal beide Werte einträgst?
Info aus dem Fhem Forum: Hier wird glaube ich mit einem Polldelay von 199 gearbeitet. Ich denke das sind auch millisekunden.