NEWS
Einbindung elsner P03/ Modbus Wetterstation
-
@sebastianiv Kannst du das loggen mal auf Debug stellen:
Die Adapter Einstellungen hier posten und auch das Logfile nach Adapter start.
-
@wendy2702
Hallo wendy, sorry hat ein wenig länger gedauert. Anebi das log in debug. Ich hatte den Adapter schon das letzte Mal umgestellt aber erst nach deinem Psot gesehen, das es veraltete Daten waren...code_text 2022-03-06 10:39:07.887 - info: host.raspberrypi "system.adapter.modbus.3" enabled 2022-03-06 10:39:07.994 - info: host.raspberrypi instance system.adapter.modbus.3 started with pid 12198 2022-03-06 10:39:09.118 - debug: modbus.3 (12198) Redis Objects: Use Redis connection: 127.0.0.1:9001 2022-03-06 10:39:09.168 - debug: modbus.3 (12198) Objects client ready ... initialize now 2022-03-06 10:39:09.171 - debug: modbus.3 (12198) Objects create System PubSub Client 2022-03-06 10:39:09.172 - debug: modbus.3 (12198) Objects create User PubSub Client 2022-03-06 10:39:09.173 - debug: modbus.3 (12198) Objects client initialize lua scripts 2022-03-06 10:39:09.193 - debug: modbus.3 (12198) Objects connected to redis: 127.0.0.1:9001 2022-03-06 10:39:09.202 - debug: modbus.3 (12198) objectDB connected 2022-03-06 10:39:09.205 - debug: modbus.3 (12198) Redis States: Use Redis connection: 127.0.0.1:9000 2022-03-06 10:39:09.213 - debug: modbus.3 (12198) States create System PubSub Client 2022-03-06 10:39:09.215 - debug: modbus.3 (12198) States create User PubSub Client 2022-03-06 10:39:09.222 - debug: modbus.3 (12198) States connected to redis: 127.0.0.1:9000 2022-03-06 10:39:09.223 - debug: modbus.3 (12198) statesDB connected 2022-03-06 10:39:09.386 - debug: modbus.3 (12198) Plugin sentry Initialize Plugin (enabled=true) 2022-03-06 10:39:09.623 - info: modbus.3 (12198) starting. Version 3.4.17 in /opt/iobroker/node_modules/iobroker.modbus, node: v14.18.3, js-controller: 3.3.22 2022-03-06 10:39:09.782 - debug: modbus.3 (12198) Initialize Objects for disInputs: [] 2022-03-06 10:39:09.782 - debug: modbus.3 (12198) Initialize Objects for coils: [] 2022-03-06 10:39:09.783 - debug: modbus.3 (12198) Initialize Objects for inputRegs: [] 2022-03-06 10:39:09.783 - debug: modbus.3 (12198) Initialize Objects for holdingRegs: [{"_address":"40003","name":"Temp","description":"Außentemperatur","unit":"C","type":"int8le","len":1,"factor":1,"offset":0,"formula":"","role":"level","room":"","poll":true,"wp":"","cw":"","isScale":"","address":2,"deviceId":1,"id":"holdingRegisters.40003_Temp"}] 2022-03-06 10:39:09.784 - debug: modbus.3 (12198) Add holdingRegisters.40003_Temp: {"_id":"holdingRegisters.40003_Temp","type":"state","common":{"name":"Außentemperatur","role":"level","type":"number","read":true,"write":true,"def":0,"unit":"C"},"native":{"regType":"holdingRegs","address":2,"deviceId":1,"type":"int8le","len":1,"offset":0,"factor":1,"poll":true}} 2022-03-06 10:39:10.059 - debug: modbus.3 (12198) connect to serial /dev/ttyAMA0 with 19200 2022-03-06 10:39:10.067 - info: modbus.3 (12198) Connected to slave 2022-03-06 10:39:10.068 - debug: modbus.3 (12198) [DevID_1] Poll start --------------------- 2022-03-06 10:39:10.070 - debug: modbus.3 (12198) Initialization of scale factors done! 2022-03-06 10:39:10.070 - debug: modbus.3 (12198) [DevID_1/holdingRegs] Poll address 2 - 1 registers 2022-03-06 10:39:15.079 - warn: modbus.3 (12198) Error: undefined 2022-03-06 10:39:15.080 - error: modbus.3 (12198) Request timed out. 2022-03-06 10:39:15.084 - warn: modbus.3 (12198) Poll error count: 1 code: {"err":"timeout","timeout":5000} 2022-03-06 10:39:16.082 - info: modbus.3 (12198) Disconnected from slave 2022-03-06 10:39:16.086 - debug: modbus.3 (12198) Clearing timeout of the current request. 2022-03-06 10:39:16.088 - debug: modbus.3 (12198) Cleaning up request fifo. 2022-03-06 10:40:16.084 - debug: modbus.3 (12198) connect to serial /dev/ttyAMA0 with 19200 2022-03-06 10:40:16.091 - info: modbus.3 (12198) Connected to slave 2022-03-06 10:40:16.093 - debug: modbus.3 (12198) [DevID_1] Poll start --------------------- 2022-03-06 10:40:16.094 - debug: modbus.3 (12198) [DevID_1/holdingRegs] Poll address 2 - 1 registers 2022-03-06 10:40:21.096 - warn: modbus.3 (12198) Error: undefined 2022-03-06 10:40:21.097 - error: modbus.3 (12198) Request timed out. 2022-03-06 10:40:21.099 - warn: modbus.3 (12198) Poll error count: 2 code: {"err":"timeout","timeout":5000} 2022-03-06 10:40:22.098 - info: modbus.3 (12198) Disconnected from slave 2022-03-06 10:40:22.101 - debug: modbus.3 (12198) Clearing timeout of the current request. 2022-03-06 10:40:22.102 - debug: modbus.3 (12198) Cleaning up request fifo. 2022-03-06 10:41:22.100 - debug: modbus.3 (12198) connect to serial /dev/ttyAMA0 with 19200 2022-03-06 10:41:22.104 - info: modbus.3 (12198) Connected to slave 2022-03-06 10:41:22.105 - debug: modbus.3 (12198) [DevID_1] Poll start --------------------- 2022-03-06 10:41:22.106 - debug: modbus.3 (12198) [DevID_1/holdingRegs] Poll address 2 - 1 registers 2022-03-06 10:41:27.108 - warn: modbus.3 (12198) Error: undefined 2022-03-06 10:41:27.109 - error: modbus.3 (12198) Request timed out. 2022-03-06 10:41:27.110 - warn: modbus.3 (12198) Poll error count: 3 code: {"err":"timeout","timeout":5000} 2022-03-06 10:41:28.110 - info: modbus.3 (12198) Disconnected from slave 2022-03-06 10:41:28.112 - debug: modbus.3 (12198) Clearing timeout of the current request. 2022-03-06 10:41:28.114 - debug: modbus.3 (12198) Cleaning up request fifo.
-
code_text 2022-03-06 10:39:10.070 - debug: modbus.3 (12198) [DevID_1/holdingRegs] Poll address 2 - 1 registers 2022-03-06 10:39:15.079 - warn: modbus.3 (12198) Error: undefined 2022-03-06 10:39:15.080 - error: modbus.3 (12198) Request timed out. 2022-03-06 10:39:15.084 - warn: modbus.3 (12198) Poll error count: 1 code: {"err":"timeout","timeout":5000} 2022-03-06 10:39:16.082 - info: modbus.3 (12198) Disconnected from slave 2022-03-06 10:39:16.086 - debug: modbus.3 (12198) Clearing timeout of the current request. 2022-03-06 10:39:16.088 - debug: modbus.3 (12198) Cleaning up request fifo. 2022-03-06 10:40:16.084 - debug: modbus.3 (12198) connect to serial /dev/ttyAMA0 with 19200 2022-03-06 10:40:16.091 - info: modbus.3 (12198) Connected to slave 2022-03-06 10:40:16.093 - debug: modbus.3 (12198) [DevID_1] Poll start --------------------- 2022-03-06 10:40:16.094 - debug: modbus.3 (12198) [DevID_1/holdingRegs] Poll address 2 - 1 registers 2022-03-06 10:40:21.096 - warn: modbus.3 (12198) Error: undefined 2022-03-06 10:40:21.097 - error: modbus.3 (12198) Request timed out. 2022-03-06 10:40:21.099 - warn: modbus.3 (12198) Poll error count: 2 code: {"err":"timeout","timeout":5000} 2022-03-06 10:40:22.098 - info: modbus.3 (12198) Disconnected from slave 2022-03-06 10:40:22.101 - debug: modbus.3 (12198) Clearing timeout of the current request. 2022-03-06 10:40:22.102 - debug: modbus.3 (12198) Cleaning up request fifo. 2022-03-06 10:41:22.100 - debug: modbus.3 (12198) connect to serial /dev/ttyAMA0 with 19200 2022-03-06 10:41:22.104 - info: modbus.3 (12198) Connected to slave 2022-03-06 10:41:22.105 - debug: modbus.3 (12198) [DevID_1] Poll start --------------------- 2022-03-06 10:41:22.106 - debug: modbus.3 (12198) [DevID_1/holdingRegs] Poll address 2 - 1 registers 2022-03-06 10:41:27.108 - warn: modbus.3 (12198) Error: undefined 2022-03-06 10:41:27.109 - error: modbus.3 (12198) Request timed out. 2022-03-06 10:41:27.110 - warn: modbus.3 (12198) Poll error count: 3 code: {"err":"timeout","timeout":5000} 2022-03-06 10:41:28.110 - info: modbus.3 (12198) Disconnected from slave 2022-03-06 10:41:28.112 - debug: modbus.3 (12198) Clearing timeout of the current request. 2022-03-06 10:41:28.114 - debug: modbus.3 (12198) Cleaning up request fifo
-
@sebastianiv Poste mal einen Screenshot der Adapter Einstellungen.
Ist das RS485 Shield auch wirklich das Device „ttyAMA0“ ?
-
@wendy2702
Hallo wendy, hier die Einstellungen vom Adapter. Ich h abe mir parallel noch ein weiteres Shield bzw. Adapter für RS485 via USB gekauft, vielleicht funktioniert dieser besser.... -
Mach mal den Haken bei „Use Aliases“ weg. Kontrolliere danach die Register und poste dann mal das logfile.
-
@wendy2702
Hallo wendy, ich habe nun Tests mit dem USB Adapter gemacht. Hier stellt sich die Thematik so dar, dass ich keine Antwort von der Wetterstation erhalte. Also die TX LED am Adapter geht an, die COM an der Wetterstation auch aber die RX am Adapter nicht. Um die Funktion der Wetterstation zu prüfen, wurde nun mit einem PC, dem Adapter via Docklight eine Kommunikation aufgebaut. Hier funktioniert alles, also auch die RX LED vom Adapter. -
@wendy2702
Hallo wendy, die Wetterstation läuft mittlerweile. Mit Hilfe des USB Adapter, dem richtigenm Einstellungen und Regsitern steht die Kommunikation. Einzig den Parameter des Regens bekomme ich nicht ausgelesen. Hast du hier vielleicht noch einen Tipp? Die Register zuvor funktionieren auch weil der Typ Signed 16bit (Big Endian) aus der Anleitung klar ist. Bei Regen habe ich alles möglich versucht aber nichts funktioniert?? Der WErt bleibt konstant bei 0..Vielen Dank
-
@sebastianiv Blöde Frage, regnet es denn?
-
@wendy2702
Nein ich habe aber versucht den Regen mit einem feuchten Lappen zu simulieren.