ja genau da habe ich bei beiden eine 1 eingetragen so wie Oxident das vorgschlagen hat.
NEWS
Best posts made by bytec
-
RE: Modbus TCP Problem
Latest posts made by bytec
-
RE: [gelöst] Adapter b-control-em startet nach Update nicht mehr
So vielen lieben Dank an @apollon77 fürs fixen.
Momentan noch per Github aber wird die Tage released.
-
RE: [gelöst] Adapter b-control-em startet nach Update nicht mehr
Das ist mir schon klar. Es hat halt jetzt paar Jahre so gelaufen.
Hab ja nur nett gefragt ob mir da jemand helfen kann. Und an Buster wird es ja nicht liegen alle anderen 26 Adapter laufen ja ohne Probleme.
-
RE: [gelöst] Adapter b-control-em startet nach Update nicht mehr
Hier gibts wohl schon ein Issue zu bei Github aber ich kann da nichts mit anfangen
https://github.com/ioBroker/ioBroker.b-control-em/issues/13
======================= SUMMARY ======================= v.2023-04-16 Operatingsystem: Debian GNU/Linux 10 (buster) Kernel: 5.15.83-1-pve Installation: lxc Timezone: Europe/Berlin (CEST, +0200) User-ID: 0 X-Server: false Boot Target: graphical.target Pending OS-Updates: 0 Pending iob updates: 0 Nodejs-Installation: /usr/bin/nodejs v18.16.1 /usr/bin/node v18.16.1 /usr/bin/npm 9.5.1 /usr/bin/npx 9.5.1 Recommended versions are nodejs 18.x.y and npm 9.x.y Your nodejs installation is correct MEMORY: total used free shared buff/cache available Mem: 4.1G 1.9G 2.2G 8.0M 41M 2.2G Swap: 0B 0B 0B Total: 4.1G 1.9G 2.2G Active iob-Instances: 27 Active repo(s): beta ioBroker Core: js-controller 5.0.8 admin 6.6.1 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: jsonl Status admin and web instance: + system.adapter.admin.0 : admin : iobroker - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.web.0 : web : iobroker - enabled, port: 8082, bind: 0.0.0.0, run as: admin Objects: 13001 States: 11002 Size of iob-Database: 4.4M /opt/iobroker/iobroker-data/objects.jsonl 3.2M /opt/iobroker/iobroker-data/objects.json.migrated 3.2M /opt/iobroker/iobroker-data/objects.json.bak.migrated 3.0M /opt/iobroker/iobroker-data/states.jsonl 217K /opt/iobroker/iobroker-data/states.json.migrated 217K /opt/iobroker/iobroker-data/states.json.bak.migrated =================== END OF SUMMARY ====================
-
[gelöst] Adapter b-control-em startet nach Update nicht mehr
Systemdata Bitte Ausfüllen Hardwaresystem: Proxmox Arbeitsspeicher: 8GB Festplattenart: SD-Karte/SSD/HDD Betriebssystem: Debian Node-Version: v18.16.1 Nodejs-Version: v18.16.1 NPM-Version: 9.5.1 Installationsart: Skript/Manuell Image genutzt: Ja/Nein Ort/Name der Imagedatei: Link Hallo Zusammen,
nachdem ich heute mal alles auf den neusten stand gebracht habe startet leider der
b-control-em Adapter nicht mehr.Leider wird damit in eine InfluxDB meine Stromverbrauchsdaten geschrieben und ich bin somit auf den Adapter angewiesen.
Vielleicht hat hier jemand eine Idee was das sein kann.host.iobroker 2023-07-18 18:29:28.824 info Rebuild for adapter system.adapter.b-control-em.0 not successful in 3 tries. Adapter will not be restarted again. Please execute "npm install --production" in adapter directory manually. host.iobroker 2023-07-18 18:29:28.824 error instance system.adapter.b-control-em.0 terminated with code 1 (JS_CONTROLLER_STOPPED) host.iobroker 2023-07-18 18:29:28.824 error Caught by controller[0]: Node.js v18.16.1 host.iobroker 2023-07-18 18:29:28.824 error Caught by controller[0]: } host.iobroker 2023-07-18 18:29:28.824 error Caught by controller[0]: ] host.iobroker 2023-07-18 18:29:28.824 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.b-control-em/main.js' host.iobroker 2023-07-18 18:29:28.824 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.b-control-em/lib/utils.js', host.iobroker 2023-07-18 18:29:28.823 error Caught by controller[0]: requireStack: [ host.iobroker 2023-07-18 18:29:28.823 error Caught by controller[0]: code: 'MODULE_NOT_FOUND', host.iobroker 2023-07-18 18:29:28.823 error Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1143:19) { host.iobroker 2023-07-18 18:29:28.823 error Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:960:12) host.iobroker 2023-07-18 18:29:28.823 error Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1119:32) host.iobroker 2023-07-18 18:29:28.823 error Caught by controller[0]: at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) host.iobroker 2023-07-18 18:29:28.823 error Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1256:14) host.iobroker 2023-07-18 18:29:28.823 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.b-control-em/lib/utils.js:60:25) host.iobroker 2023-07-18 18:29:28.823 error Caught by controller[0]: at require (node:internal/modules/cjs/helpers:110:18) host.iobroker 2023-07-18 18:29:28.823 error Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1143:19) host.iobroker 2023-07-18 18:29:28.823 error Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:922:27) host.iobroker 2023-07-18 18:29:28.823 error Caught by controller[0]: at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15) host.iobroker 2023-07-18 18:29:28.823 error Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.b-control-em/main.js host.iobroker 2023-07-18 18:29:28.822 error Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.b-control-em/lib/utils.js host.iobroker 2023-07-18 18:29:28.822 error Caught by controller[0]: Require stack: host.iobroker 2023-07-18 18:29:28.822 error Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js' host.iobroker 2023-07-18 18:29:28.822 error Caught by controller[0]: ^ host.iobroker 2023-07-18 18:29:28.822 error Caught by controller[0]: throw err; host.iobroker 2023-07-18 18:29:28.822 error Caught by controller[0]: node:internal/modules/cjs/loader:1080 host.iobroker 2023-07-18 18:29:28.551 info instance system.adapter.b-control-em.0 started with pid 5191
gemacht habe ich schon npm install --omit=dev usw. aber das hat leider nichts gebracht.
Gruß
Bytec
-
RE: Modbus TCP Problem
Ich weder noch. Wir haben eine Nibe Anlage aber das hat glaube nicht wirklich mit der Anlage Ansich zu tun sondern wie der Adapter die Register ausliest und wenn er sie jetzt einzeln ausliest scheint das zu funktionieren.
-
RE: Modbus TCP Problem
ja genau da habe ich bei beiden eine 1 eingetragen so wie Oxident das vorgschlagen hat.
-
RE: Modbus TCP Problem
Also ich habe bei mir jetzt unter Max Leseanforderungslänge eine 1 bei Float und Integer eingetragen und seitdem werden alle Register in einer Instanz sauber ausgelesen.
Wahrscheinlich hat sich vorher wenn die Register nah beieinander waren etwas überlappt beim auslesen.
-
RE: Modbus TCP Problem
Also aktuelle Einstellung im Bild werden 4 / 39 / 77 korrekt ausgelesen 88 kommt eine gelbe 0
Laut dem Log steht bei 77 ja wieder 12 register ...
2023-01-14 19:02:04.751 debug Closing client on purpose. modbus.1 2023-01-14 19:02:03.750 debug Cleaning up request fifo. modbus.1 2023-01-14 19:02:03.750 debug Socket closed with error modbus.1 2023-01-14 19:02:03.729 info Disconnected from slave 192.168.0.56 modbus.1 2023-01-14 19:02:03.729 debug Closing client on purpose. modbus.1 2023-01-14 19:02:03.678 warn Poll error count: 6 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 19:02:03.678 debug Received pdu describes an error. modbus.1 2023-01-14 19:02:03.627 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 19:02:03.627 debug [DevID_1/inputRegs/39] Calculation result = 34.5, type = number modbus.1 2023-01-14 19:02:03.627 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 19:02:03.626 debug [DevID_1/inputRegs/39] Input Value = 345 modbus.1 2023-01-14 19:02:03.626 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 19:02:03.589 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 19:02:03.588 debug [DevID_1/inputRegs/4] Calculation result = 29.3, type = number modbus.1 2023-01-14 19:02:03.588 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 19:02:03.588 debug [DevID_1/inputRegs/4] Input Value = 293 modbus.1 2023-01-14 19:02:03.588 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 19:02:03.555 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 19:02:03.554 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 19:02:02.504 warn Poll error count: 5 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 19:02:02.504 debug Received pdu describes an error. modbus.1 2023-01-14 19:02:02.442 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 19:02:02.442 debug [DevID_1/inputRegs/39] Calculation result = 34.5, type = number modbus.1 2023-01-14 19:02:02.442 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 19:02:02.442 debug [DevID_1/inputRegs/39] Input Value = 345 modbus.1 2023-01-14 19:02:02.442 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 19:02:02.410 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 19:02:02.409 debug [DevID_1/inputRegs/4] Calculation result = 29.3, type = number modbus.1 2023-01-14 19:02:02.409 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 19:02:02.409 debug [DevID_1/inputRegs/4] Input Value = 293 modbus.1 2023-01-14 19:02:02.409 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 19:02:02.380 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 19:02:02.380 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 19:02:01.329 warn Poll error count: 4 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 19:02:01.329 debug Received pdu describes an error. modbus.1 2023-01-14 19:02:01.273 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 19:02:01.272 debug [DevID_1/inputRegs/39] Calculation result = 34.5, type = number modbus.1 2023-01-14 19:02:01.272 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 19:02:01.272 debug [DevID_1/inputRegs/39] Input Value = 345 modbus.1 2023-01-14 19:02:01.272 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 19:02:01.240 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 19:02:01.240 debug [DevID_1/inputRegs/4] Calculation result = 29.3, type = number modbus.1 2023-01-14 19:02:01.240 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 19:02:01.239 debug [DevID_1/inputRegs/4] Input Value = 293 modbus.1 2023-01-14 19:02:01.239 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 19:02:01.206 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 19:02:01.205 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 19:02:00.154 warn Poll error count: 3 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 19:02:00.154 debug Received pdu describes an error. modbus.1 2023-01-14 19:02:00.097 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 19:02:00.096 debug [DevID_1/inputRegs/39] Calculation result = 34.5, type = number modbus.1 2023-01-14 19:02:00.096 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 19:02:00.096 debug [DevID_1/inputRegs/39] Input Value = 345 modbus.1 2023-01-14 19:02:00.096 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 19:02:00.065 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 19:02:00.064 debug [DevID_1/inputRegs/4] Calculation result = 29.3, type = number modbus.1 2023-01-14 19:02:00.064 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 19:02:00.064 debug [DevID_1/inputRegs/4] Input Value = 293 modbus.1 2023-01-14 19:02:00.064 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 19:02:00.024 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 19:02:00.024 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 19:01:58.973 warn Poll error count: 2 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 19:01:58.972 debug Received pdu describes an error. modbus.1 2023-01-14 19:01:58.924 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 19:01:58.923 debug [DevID_1/inputRegs/39] Calculation result = 34.5, type = number modbus.1 2023-01-14 19:01:58.923 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 19:01:58.923 debug [DevID_1/inputRegs/39] Input Value = 345 modbus.1 2023-01-14 19:01:58.923 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 19:01:58.890 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 19:01:58.890 debug [DevID_1/inputRegs/4] Calculation result = 29.3, type = number modbus.1 2023-01-14 19:01:58.890 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 19:01:58.889 debug [DevID_1/inputRegs/4] Input Value = 293 modbus.1 2023-01-14 19:01:58.889 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 19:01:58.857 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 19:01:58.856 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 19:01:57.804 warn Poll error count: 1 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 19:01:57.803 debug Received pdu describes an error. modbus.1 2023-01-14 19:01:57.804 warn Poll error count: 1 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 19:01:57.803 debug Received pdu describes an error. modbus.1 2023-01-14 19:01:57.744 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 19:01:57.743 debug [DevID_1/inputRegs/39] Calculation result = 34.5, type = number modbus.1 2023-01-14 19:01:57.743 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 19:01:57.743 debug [DevID_1/inputRegs/39] Input Value = 345 modbus.1 2023-01-14 19:01:57.742 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 19:01:57.711 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 19:01:57.711 debug [DevID_1/inputRegs/4] Calculation result = 29.3, type = number modbus.1 2023-01-14 19:01:57.711 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 19:01:57.710 debug [DevID_1/inputRegs/4] Input Value = 293 modbus.1 2023-01-14 19:01:57.710 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 19:01:57.673 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 19:01:57.673 debug Initialization of scale factors done! modbus.1 2023-01-14 19:01:57.673 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 19:01:57.672 info Connected to slave 192.168.0.56 modbus.1 2023-01-14 19:01:57.541 debug Initialize Objects for holdingRegs: [] modbus.1 2023-01-14 19:01:57.540 debug Add inputRegisters.88_Rücklauf_oben: {"_id":"inputRegisters.88_Rücklauf_oben","type":"state","common":{"name":"","role":"value","type":"number","read":true,"write":false,"def":0,"unit":"°C"},"native":{"regType":"inputRegs","address":88,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1}} modbus.1 2023-01-14 19:01:57.540 debug Add inputRegisters.77_Rücklauf_unten: {"_id":"inputRegisters.77_Rücklauf_unten","type":"state","common":{"name":"","role":"value","type":"number","read":true,"write":false,"def":0,"unit":"°C"},"native":{"regType":"inputRegs","address":77,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1}} modbus.1 2023-01-14 19:01:57.540 debug Add inputRegisters.39_Vorlauf__oben: {"_id":"inputRegisters.39_Vorlauf__oben","type":"state","common":{"name":"","role":"value","type":"number","read":true,"write":false,"def":0,"unit":"°C"},"native":{"regType":"inputRegs","address":39,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1}} modbus.1 2023-01-14 19:01:57.540 debug Add inputRegisters.4_Vorlauf_unten: {"_id":"inputRegisters.4_Vorlauf_unten","type":"state","common":{"name":"","role":"value","type":"number","read":true,"write":false,"def":0,"unit":"°C"},"native":{"regType":"inputRegs","address":4,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1}} modbus.1 2023-01-14 19:01:57.540 debug Initialize Objects for inputRegs: [{"_address":4,"name":"Vorlauf unten","description":"","unit":"°C","type":"int16be","len":1,"factor":1,"offset":0,"formula":"x / 10","role":"value","room":"","cw":false,"isScale":false,"deviceId":1,"address":4,"id":"inputRegisters.4_Vorlauf_unten"},{"_address":39,"name":"Vorlauf oben","description":"","unit":"°C","type":"int16be","len":1,"factor":1,"offset":0,"formula":"x / 10","role":"value","room":"","cw":false,"isScale":false,"deviceId":1,"address":39,"id":"inputRegisters.39_Vorlauf__oben"},{"_address":77,"name":"Rücklauf unten","description":"","unit":"°C","type":"int16be","len":1,"factor":1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"deviceId":1,"address":77,"id":"inputRegisters.77_Rücklauf_unten"},{"_address":88,"name":"Rücklauf oben","description":"","unit":"°C","type":"int16be","len":1,"factor":1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"deviceId":1,"address":88,"id":"inputRegisters.88_Rücklauf_oben"}] modbus.1 2023-01-14 19:01:57.539 debug Initialize Objects for coils: [] modbus.1 2023-01-14 19:01:57.539 debug Initialize Objects for disInputs: [] modbus.1 2023-01-14 19:01:57.479 info starting. Version 5.0.11 in /opt/iobroker/node_modules/iobroker.modbus, node: v14.17.0, js-controller: 4.0.24 modbus.1 2023-01-14 19:01:57.375 debug Plugin sentry Initialize Plugin (enabled=true) modbus.1 2023-01-14 19:01:57.324 debug States connected to redis: 127.0.0.1:9000 modbus.1 2023-01-14 19:01:57.267 debug States create User PubSub Client modbus.1 2023-01-14 19:01:57.266 debug States create System PubSub Client modbus.1 2023-01-14 19:01:57.259 debug Redis States: Use Redis connection: 127.0.0.1:9000 modbus.1 2023-01-14 19:01:57.246 debug Objects connected to redis: 127.0.0.1:9001 modbus.1 2023-01-14 19:01:57.244 debug Objects client initialize lua scripts modbus.1 2023-01-14 19:01:57.223 debug Objects create User PubSub Client modbus.1 2023-01-14 19:01:57.223 debug Objects create System PubSub Client modbus.1 2023-01-14 19:01:57.222 debug Objects client ready ... initialize now modbus.1 2023-01-14 19:01:57.204 debug Redis Objects: Use Redis connection: 127.0.0.1:9001
-
RE: Modbus TCP Problem
ja sonst würden ja die anderen Clients wie oben geschrieben auch nicht gehen
der Client läuft die ganze Zeit nebenbei und pollt die richtigen Werte