Ja sorry.
Habs hierhin gepackt:
https://forum.iobroker.net/topic/48138/iobroker-huawei-sun2000-modus-adapter-keine-daten/38?_=1667374096982
NEWS
Best posts made by Homer 0
Latest posts made by Homer 0
-
RE: Zugriff auf Raspbee 2 über serielle Schnittstelle
@thomas-braun said in Zugriff auf Raspbee 2 über serielle Schnittstelle:
@homer-0
Das bedeutet, dass sich deconz die Schnittstelle schon gegriffen hat.
Entweder deconz/phoscon komplett deinstallieren und/oder die Services auf Eis legen.sudo systemctl stop deconz deconz-gui sudo systemctl disable deconz deconz-gui
Dann den zigbee-Adapter neustarten. Oder gleich den ganzen Raspberry.
Super. Genau das war's anscheinend. Vielen Dank.
Könntest du mir bitte noch kurz sagen, wie ich den deconz wieder zum laufen kriege, wenn ich den wieder enablen will?Nochmal vielen Dank!
-
RE: Zugriff auf Raspbee 2 über serielle Schnittstelle
@thomas-braun said in Zugriff auf Raspbee 2 über serielle Schnittstelle:
Guter Hinweis.
Zu prüfen mit
systemctl status deconz deconz-gui
pi@raspberrypi4:~ $ systemctl status deconz deconz-gui lines 1--1...skipping... ● deconz.service - deCONZ: ZigBee gateway -- REST API Loaded: loaded (/lib/systemd/system/deconz.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2022-11-11 16:07:32 CET; 5h 40min ago Main PID: 356 (deCONZ) Tasks: 4 (limit: 4915) CPU: 5min 18.377s CGroup: /system.slice/deconz.service └─356 /usr/bin/deCONZ -platform minimal --http-port=80 Nov 11 16:07:32 raspberrypi4 systemd[1]: Started deCONZ: ZigBee gateway -- REST API. Nov 11 16:07:52 raspberrypi4 deCONZ[356]: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-pi' Nov 11 16:07:52 raspberrypi4 deCONZ[356]: libpng warning: iCCP: known incorrect sRGB profile Nov 11 16:07:54 raspberrypi4 deCONZ[356]: This plugin does not support propagateSizeHints() Nov 11 16:07:54 raspberrypi4 deCONZ[356]: This plugin does not support propagateSizeHints() Nov 11 16:07:56 raspberrypi4 deCONZ[356]: This plugin does not support propagateSizeHints() ● deconz-gui.service - deCONZ: ZigBee gateway -- GUI/REST API Loaded: loaded (/lib/systemd/system/deconz-gui.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: signal) since Fri 2022-11-11 21:47:10 CET; 29s ago Process: 14425 ExecStart=/usr/bin/deCONZ --http-port=80 (code=killed, signal=ABRT) Main PID: 14425 (code=killed, signal=ABRT) CPU: 48ms Nov 11 21:47:40 raspberrypi4 systemd[1]: deconz-gui.service: Scheduled restart job, restart counter is at 674. Nov 11 21:47:40 raspberrypi4 systemd[1]: Stopped deCONZ: ZigBee gateway -- GUI/REST API. Nov 11 21:47:40 raspberrypi4 systemd[1]: Started deCONZ: ZigBee gateway -- GUI/REST API. Nov 11 21:47:41 raspberrypi4 deCONZ[16366]: qt.qpa.xcb: could not connect to display :0 Nov 11 21:47:41 raspberrypi4 deCONZ[16366]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. Nov 11 21:47:41 raspberrypi4 deCONZ[16366]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Nov 11 21:47:41 raspberrypi4 deCONZ[16366]: Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb. Nov 11 21:47:41 raspberrypi4 systemd[1]: deconz-gui.service: Main process exited, code=killed, status=6/ABRT Nov 11 21:47:41 raspberrypi4 systemd[1]: deconz-gui.service: Failed with result 'signal'.
Hier wirds jetzt eng für mich. Was bedeutet das?
Heißt die Serielle Schnittstelle überhaupt ttyS0? Wie kriege ich raus, auf welcher Schnittstelle der Raspbee2 läuft? -
RE: Zugriff auf Raspbee 2 über serielle Schnittstelle
@thomas-braun said in Zugriff auf Raspbee 2 über serielle Schnittstelle:
@homer-0 Ist die Serielle Schnittstelle überhaupt aktiv?
sudo raspi-config
Menü:
3 Interface Options I6 Serial Port Nein Ja
Das hatte ich gemacht. Steht auch so in der Anleitung zum Raspbee
In
ls -la /dev/serial/by-id
steht der Stick wie drin?
Ist kein Stick, sondern der Raspbee 2. der Wird direkt auf die Schnittstelle im Raspi gesteckt und greift über die Pins auf die serielle Schnittstelle zu.
Ergebnis:
pi@raspberrypi4:~ $ ls -la /dev/serial/by-id ls: cannot access '/dev/serial/by-id': No such file or directory
Den Ordner gibts nicht
-
Zugriff auf Raspbee 2 über serielle Schnittstelle
Hallo Zusammen,
ich versuche seit Tagen, meinen Raspbee 2 (Zigbee-Adapter) über den Zigbee-Adapter zum laufen zu bekommen. Über den den Deconz-Adapter funktioniert das, will ich aber nicht.
Wenn ich das richtig verstehe ist es so, dass ich mit dem Zigbee-Adapter direkt über die serielle Schnittstelle auf den Raspbee zugreife. Aber da komme ich nicht weiter.
2022-11-11 16:29:43.178 - info: zigbee.0 (11726) Starting Zigbee npm ... 2022-11-11 16:29:43.781 - error: zigbee.0 (11726) Starting zigbee-herdsman problem : "Error while opening serialport 'Error: Error: Device or resource busy, cannot open /dev/ttyS0'" 2022-11-11 16:29:43.782 - error: zigbee.0 (11726) Failed to start Zigbee 2022-11-11 16:29:43.783 - error: zigbee.0 (11726) Error herdsman start 2022-11-11 16:29:43.787 - info: zigbee.0 (11726) Installed Version: iobroker.zigbee@1.7.5
Was mache ich falsch?
-
RE: iobroker Huawei Sun2000 modus Adapter keine Daten
Hat wirklich noch keiner die direkte Anbindung des Sun2000 über den Modbus-Adapter hinbekommen? Ich scheitere offensichtlich an der gleichen Stelle:
2022-11-01 17:42:27.677 - info: host.raspberrypi4 instance system.adapter.modbus.1 started with pid 17214 2022-11-01 17:42:28.908 - debug: modbus.1 (17214) Redis Objects: Use Redis connection: 127.0.0.1:9001 2022-11-01 17:42:28.950 - debug: modbus.1 (17214) Objects client ready ... initialize now 2022-11-01 17:42:28.953 - debug: modbus.1 (17214) Objects create System PubSub Client 2022-11-01 17:42:28.954 - debug: modbus.1 (17214) Objects create User PubSub Client 2022-11-01 17:42:28.987 - debug: modbus.1 (17214) Objects client initialize lua scripts 2022-11-01 17:42:29.009 - debug: modbus.1 (17214) Objects connected to redis: 127.0.0.1:9001 2022-11-01 17:42:29.036 - debug: modbus.1 (17214) Redis States: Use Redis connection: 127.0.0.1:9000 2022-11-01 17:42:29.050 - debug: modbus.1 (17214) States create System PubSub Client 2022-11-01 17:42:29.052 - debug: modbus.1 (17214) States create User PubSub Client 2022-11-01 17:42:29.074 - debug: modbus.1 (17214) States connected to redis: 127.0.0.1:9000 2022-11-01 17:42:29.161 - debug: modbus.1 (17214) Plugin sentry Initialize Plugin (enabled=true) 2022-11-01 17:42:29.621 - info: modbus.1 (17214) starting. Version 5.0.4 in /opt/iobroker/node_modules/iobroker.modbus, node: v16.17.0, js-controller: 4.0.23 2022-11-01 17:42:29.800 - debug: modbus.1 (17214) Initialize Objects for disInputs: [] 2022-11-01 17:42:29.801 - debug: modbus.1 (17214) Initialize Objects for coils: [] 2022-11-01 17:42:29.802 - debug: modbus.1 (17214) Initialize Objects for inputRegs: [] 2022-11-01 17:42:29.803 - debug: modbus.1 (17214) Initialize Objects for holdingRegs: [{"_address":37101,"name":"","description":"","unit":"","type":"uint32le","len":2,"factor":1,"offset":0,"formula":"","role":"level","room":"","poll":true,"wp":"","cw":"","isScale":"","deviceId":1,"address":37101,"id":"holdingRegisters.37101"},{"_address":37107,"name":"","description":"","unit":"","type":"int32le","len":2,"factor":1,"offset":0,"formula":"","role":"level","room":"","poll":true,"wp":"","cw":"","isScale":"","deviceId":1,"address":37107,"id":"holdingRegisters.37107"},{"_address":37113,"name":"","description":"","unit":"","type":"uint32le","len":2,"factor":1,"offset":0,"formula":"","role":"level","room":"","poll":true,"wp":"","cw":"","isScale":"","deviceId":1,"address":37113,"id":"holdingRegisters.37113"},{"_address":40572,"name":"","description":"","unit":"","type":"int16le","len":1,"factor":1,"offset":0,"formula":"","role":"level","room":"","poll":true,"wp":"","cw":"","isScale":"","address":40572,"deviceId":1,"id":"holdingRegisters.40572"},{"_address":40573,"name":"","description":"","unit":"","type":"int16be","len":1,"factor":1,"offset":0,"formula":"","role":"level","room":"","poll":true,"wp":"","cw":"","isScale":"","address":40573,"deviceId":1,"id":"holdingRegisters.40573"},{"_address":40574,"name":"","description":"","unit":"","type":"int16be","len":1,"factor":1,"offset":0,"formula":"","role":"level","room":"","poll":true,"wp":"","cw":"","isScale":"","address":40574,"deviceId":1,"id":"holdingRegisters.40574"}] 2022-11-01 17:42:29.804 - debug: modbus.1 (17214) Add holdingRegisters.37101: {"_id":"holdingRegisters.37101","type":"state","common":{"name":"","role":"level","type":"number","read":true,"write":true,"def":0,"unit":""},"native":{"regType":"holdingRegs","address":37101,"deviceId":1,"type":"uint32le","len":2,"offset":0,"factor":1,"poll":true}} 2022-11-01 17:42:29.805 - debug: modbus.1 (17214) Add holdingRegisters.37107: {"_id":"holdingRegisters.37107","type":"state","common":{"name":"","role":"level","type":"number","read":true,"write":true,"def":0,"unit":""},"native":{"regType":"holdingRegs","address":37107,"deviceId":1,"type":"int32le","len":2,"offset":0,"factor":1,"poll":true}} 2022-11-01 17:42:29.805 - debug: modbus.1 (17214) Add holdingRegisters.37113: {"_id":"holdingRegisters.37113","type":"state","common":{"name":"","role":"level","type":"number","read":true,"write":true,"def":0,"unit":""},"native":{"regType":"holdingRegs","address":37113,"deviceId":1,"type":"uint32le","len":2,"offset":0,"factor":1,"poll":true}} 2022-11-01 17:42:29.806 - debug: modbus.1 (17214) Add holdingRegisters.40572: {"_id":"holdingRegisters.40572","type":"state","common":{"name":"","role":"level","type":"number","read":true,"write":true,"def":0,"unit":""},"native":{"regType":"holdingRegs","address":40572,"deviceId":1,"type":"int16le","len":1,"offset":0,"factor":1,"poll":true}} 2022-11-01 17:42:29.807 - debug: modbus.1 (17214) Add holdingRegisters.40573: {"_id":"holdingRegisters.40573","type":"state","common":{"name":"","role":"level","type":"number","read":true,"write":true,"def":0,"unit":""},"native":{"regType":"holdingRegs","address":40573,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1,"poll":true}} 2022-11-01 17:42:29.808 - debug: modbus.1 (17214) Add holdingRegisters.40574: {"_id":"holdingRegisters.40574","type":"state","common":{"name":"","role":"level","type":"number","read":true,"write":true,"def":0,"unit":""},"native":{"regType":"holdingRegs","address":40574,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1,"poll":true}} 2022-11-01 17:42:30.140 - info: modbus.1 (17214) Connected to slave 192.168.2.184 2022-11-01 17:42:30.141 - debug: modbus.1 (17214) [DevID_1] Poll start --------------------- 2022-11-01 17:42:30.143 - debug: modbus.1 (17214) Initialization of scale factors done! 2022-11-01 17:42:30.144 - debug: modbus.1 (17214) [DevID_1/holdingRegs] Poll address 37101 - 14 registers 2022-11-01 17:42:30.650 - warn: modbus.1 (17214) Error: undefined 2022-11-01 17:42:30.651 - error: modbus.1 (17214) Request timed out. 2022-11-01 17:42:30.652 - error: modbus.1 (17214) Client in error state. 2022-11-01 17:42:30.653 - warn: modbus.1 (17214) Poll error count: 1 code: {"err":"timeout","timeout":500} 2022-11-01 17:42:30.655 - debug: modbus.1 (17214) Socket closed with error 2022-11-01 17:42:30.656 - debug: modbus.1 (17214) Clearing timeout of the current request. 2022-11-01 17:42:30.657 - debug: modbus.1 (17214) Cleaning up request fifo. 2022-11-01 17:42:31.653 - debug: modbus.1 (17214) Closing client on purpose. 2022-11-01 17:42:31.654 - info: modbus.1 (17214) Disconnected from slave 192.168.2.184
Das muss ja am Modbus-Adapter liegen, da die Abfrage mit anderen Modbus-Tools funktioniert.
Jemand ne Idee? -
RE: [HowTo] Huawei SUN2000 WR Modbus mit node-red (read + write)
Hat wirklich noch keiner die direkte Anbindung des Sun2000 über den Modbus-Adapter hinbekommen? Ich scheitere offensichtlich an der gleichen Stelle:
2022-11-01 17:42:27.677 - info: host.raspberrypi4 instance system.adapter.modbus.1 started with pid 17214 2022-11-01 17:42:28.908 - debug: modbus.1 (17214) Redis Objects: Use Redis connection: 127.0.0.1:9001 2022-11-01 17:42:28.950 - debug: modbus.1 (17214) Objects client ready ... initialize now 2022-11-01 17:42:28.953 - debug: modbus.1 (17214) Objects create System PubSub Client 2022-11-01 17:42:28.954 - debug: modbus.1 (17214) Objects create User PubSub Client 2022-11-01 17:42:28.987 - debug: modbus.1 (17214) Objects client initialize lua scripts 2022-11-01 17:42:29.009 - debug: modbus.1 (17214) Objects connected to redis: 127.0.0.1:9001 2022-11-01 17:42:29.036 - debug: modbus.1 (17214) Redis States: Use Redis connection: 127.0.0.1:9000 2022-11-01 17:42:29.050 - debug: modbus.1 (17214) States create System PubSub Client 2022-11-01 17:42:29.052 - debug: modbus.1 (17214) States create User PubSub Client 2022-11-01 17:42:29.074 - debug: modbus.1 (17214) States connected to redis: 127.0.0.1:9000 2022-11-01 17:42:29.161 - debug: modbus.1 (17214) Plugin sentry Initialize Plugin (enabled=true) 2022-11-01 17:42:29.621 - info: modbus.1 (17214) starting. Version 5.0.4 in /opt/iobroker/node_modules/iobroker.modbus, node: v16.17.0, js-controller: 4.0.23 2022-11-01 17:42:29.800 - debug: modbus.1 (17214) Initialize Objects for disInputs: [] 2022-11-01 17:42:29.801 - debug: modbus.1 (17214) Initialize Objects for coils: [] 2022-11-01 17:42:29.802 - debug: modbus.1 (17214) Initialize Objects for inputRegs: [] 2022-11-01 17:42:29.803 - debug: modbus.1 (17214) Initialize Objects for holdingRegs: [{"_address":37101,"name":"","description":"","unit":"","type":"uint32le","len":2,"factor":1,"offset":0,"formula":"","role":"level","room":"","poll":true,"wp":"","cw":"","isScale":"","deviceId":1,"address":37101,"id":"holdingRegisters.37101"},{"_address":37107,"name":"","description":"","unit":"","type":"int32le","len":2,"factor":1,"offset":0,"formula":"","role":"level","room":"","poll":true,"wp":"","cw":"","isScale":"","deviceId":1,"address":37107,"id":"holdingRegisters.37107"},{"_address":37113,"name":"","description":"","unit":"","type":"uint32le","len":2,"factor":1,"offset":0,"formula":"","role":"level","room":"","poll":true,"wp":"","cw":"","isScale":"","deviceId":1,"address":37113,"id":"holdingRegisters.37113"},{"_address":40572,"name":"","description":"","unit":"","type":"int16le","len":1,"factor":1,"offset":0,"formula":"","role":"level","room":"","poll":true,"wp":"","cw":"","isScale":"","address":40572,"deviceId":1,"id":"holdingRegisters.40572"},{"_address":40573,"name":"","description":"","unit":"","type":"int16be","len":1,"factor":1,"offset":0,"formula":"","role":"level","room":"","poll":true,"wp":"","cw":"","isScale":"","address":40573,"deviceId":1,"id":"holdingRegisters.40573"},{"_address":40574,"name":"","description":"","unit":"","type":"int16be","len":1,"factor":1,"offset":0,"formula":"","role":"level","room":"","poll":true,"wp":"","cw":"","isScale":"","address":40574,"deviceId":1,"id":"holdingRegisters.40574"}] 2022-11-01 17:42:29.804 - debug: modbus.1 (17214) Add holdingRegisters.37101: {"_id":"holdingRegisters.37101","type":"state","common":{"name":"","role":"level","type":"number","read":true,"write":true,"def":0,"unit":""},"native":{"regType":"holdingRegs","address":37101,"deviceId":1,"type":"uint32le","len":2,"offset":0,"factor":1,"poll":true}} 2022-11-01 17:42:29.805 - debug: modbus.1 (17214) Add holdingRegisters.37107: {"_id":"holdingRegisters.37107","type":"state","common":{"name":"","role":"level","type":"number","read":true,"write":true,"def":0,"unit":""},"native":{"regType":"holdingRegs","address":37107,"deviceId":1,"type":"int32le","len":2,"offset":0,"factor":1,"poll":true}} 2022-11-01 17:42:29.805 - debug: modbus.1 (17214) Add holdingRegisters.37113: {"_id":"holdingRegisters.37113","type":"state","common":{"name":"","role":"level","type":"number","read":true,"write":true,"def":0,"unit":""},"native":{"regType":"holdingRegs","address":37113,"deviceId":1,"type":"uint32le","len":2,"offset":0,"factor":1,"poll":true}} 2022-11-01 17:42:29.806 - debug: modbus.1 (17214) Add holdingRegisters.40572: {"_id":"holdingRegisters.40572","type":"state","common":{"name":"","role":"level","type":"number","read":true,"write":true,"def":0,"unit":""},"native":{"regType":"holdingRegs","address":40572,"deviceId":1,"type":"int16le","len":1,"offset":0,"factor":1,"poll":true}} 2022-11-01 17:42:29.807 - debug: modbus.1 (17214) Add holdingRegisters.40573: {"_id":"holdingRegisters.40573","type":"state","common":{"name":"","role":"level","type":"number","read":true,"write":true,"def":0,"unit":""},"native":{"regType":"holdingRegs","address":40573,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1,"poll":true}} 2022-11-01 17:42:29.808 - debug: modbus.1 (17214) Add holdingRegisters.40574: {"_id":"holdingRegisters.40574","type":"state","common":{"name":"","role":"level","type":"number","read":true,"write":true,"def":0,"unit":""},"native":{"regType":"holdingRegs","address":40574,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1,"poll":true}} 2022-11-01 17:42:30.140 - info: modbus.1 (17214) Connected to slave 192.168.2.184 2022-11-01 17:42:30.141 - debug: modbus.1 (17214) [DevID_1] Poll start --------------------- 2022-11-01 17:42:30.143 - debug: modbus.1 (17214) Initialization of scale factors done! 2022-11-01 17:42:30.144 - debug: modbus.1 (17214) [DevID_1/holdingRegs] Poll address 37101 - 14 registers 2022-11-01 17:42:30.650 - warn: modbus.1 (17214) Error: undefined 2022-11-01 17:42:30.651 - error: modbus.1 (17214) Request timed out. 2022-11-01 17:42:30.652 - error: modbus.1 (17214) Client in error state. 2022-11-01 17:42:30.653 - warn: modbus.1 (17214) Poll error count: 1 code: {"err":"timeout","timeout":500} 2022-11-01 17:42:30.655 - debug: modbus.1 (17214) Socket closed with error 2022-11-01 17:42:30.656 - debug: modbus.1 (17214) Clearing timeout of the current request. 2022-11-01 17:42:30.657 - debug: modbus.1 (17214) Cleaning up request fifo. 2022-11-01 17:42:31.653 - debug: modbus.1 (17214) Closing client on purpose. 2022-11-01 17:42:31.654 - info: modbus.1 (17214) Disconnected from slave 192.168.2.184
Das muss ja am Modbus-Adapter liegen, da die Abfrage mit anderen Modbus-Tools funktioniert.
Jemand ne Idee? -
RE: Toggle Button mit Eingangssignal
@paul53
Danke für die Hilfe.
Mit Alias hab ich noch gar nix gemacht. Muss ich mir erstmal anschauen.
Wo lege ich die an? -
RE: Toggle Button mit Eingangssignal
@bananajoe
So einfach ist das nicht. Es handelt sich um einen alten LON-Bus, der mit komplizierten SNVT (Standardnetzwerkvariablen) arbeitet. Egal, die habe ich auf Modbus umgesetzt und lese die ein.- Echte Rückmeldung, lesend (Zustand 0 oder 1)
- Ansteuerung, Schreibend (Zustand 0 oder 1)
Wenn 1. gleich 1 ist, soll 2. eine 0 senden bei Betätigung in der Vis.
Wenn 1. gleich 0 ist, soll 2. eine 1 senden bei Betätigung in der Vis.Da das etliche Leuchten sind, wollte ich dafür eigentlich kein Script bauen.
Anders kann ich das nicht beschreiben.