Hallo alle zusammen,
ich hoffe, dass dies der richtige Bereich ist, aber ich habe derzeit ein größerers (Netzwerk)Technik Problem.
Kurz zu meinem Setup:
FHEM läuft auf einem Unraid-Server als Dockercontainer. Dieser Server steht physisch wegen anderen Anwendungen im Büro (DG). In meinem Schaltschrank habe ich einen Raspberrypi 1B, auf welchem ein EnOcean TCM310 sitzt (GPIO). Dieses wird über ser2net in mein Netzwerk geschickt (LAN) und von FHEM gesteuert. Soweit auch so gut. Nun möchte ich einen Zwischenzähler per Arduino und ArduCounter mittels S0-Schnittstelle auslesen.
Lokal auf dem Raspberry ließ sich der Arduino über avrdude mit dem passenden Image flashen. Ser2Net war wie folgt konfiguriert:
3002:raw:600:/dev/ttyACM0:115200 8DATABITS NONE 1STOPBIT //Arduino
3001:raw:0:/dev/ttyAMA0:57600 NONE 1STOPBIT 8DATABITS HANGUP_WHEN_DONE //TCM310
Leider konnte ich aber keine passende/sinnvolle Verbindung zwischen FHEM und Arduino herstellen. Das Modul ArduCounter lieferte folgenden log:
2021.06.11 16:47:38.599 3: klimazaehler: device didn't reply to k(eeepAlive), no retries left, setting device to disconnected
2021.06.11 16:47:38.599 3: 10.16.1.20:3002 disconnected, waiting to reappear (klimazaehler)
2021.06.11 16:47:40.581 3: 10.16.1.20:3002 reappeared (klimazaehler)
2021.06.11 16:47:42.583 3: klimazaehler: device didn't reply to k(eeepAlive), count=1
2021.06.11 16:47:44.585 3: klimazaehler: sending h(ello) to device to ask for version
2021.06.11 16:47:52.586 3: klimazaehler: device didn't reply to k(eeepAlive), count=2
2021.06.11 16:48:02.594 3: klimazaehler: device didn't reply to k(eeepAlive), no retries left, setting device to disconnected
2021.06.11 16:48:02.595 3: 10.16.1.20:3002 disconnected, waiting to reappear (klimazaehler)
2021.06.11 16:48:02.927 3: 10.16.1.20:3002 reappeared (klimazaehler)
2021.06.11 16:48:04.929 3: klimazaehler: device didn't reply to k(eeepAlive), count=1
2021.06.11 16:48:06.931 3: klimazaehler: sending h(ello) to device to ask for version
2021.06.11 16:48:14.932 3: klimazaehler: device didn't reply to k(eeepAlive), count=2
2021.06.11 16:48:24.936 3: klimazaehler: device didn't reply to k(eeepAlive), no retries left, setting device to disconnected
2021.06.11 16:48:24.937 3: 10.16.1.20:3002 disconnected, waiting to reappear (klimazaehler)
2021.06.11 16:48:25.856 3: 10.16.1.20:3002 reappeared (klimazaehler)
2021.06.11 16:48:26.526 3: klimazaehler: Sending info command to device
2021.06.11 16:48:28.530 3: klimazaehler: Timeout2 in ReadAnswer
2021.06.11 16:48:28.531 3: klimazaehler: device didn't reply to k(eeepAlive), count=1
2021.06.11 16:48:28.534 3: klimazaehler: Sending info command to device
2021.06.11 16:48:30.537 3: klimazaehler: Timeout2 in ReadAnswer
2021.06.11 16:48:30.538 3: klimazaehler: sending h(ello) to device to ask for version
2021.06.11 16:48:37.861 3: klimazaehler: device didn't reply to k(eeepAlive), count=2
2021.06.11 16:48:47.862 3: klimazaehler: device didn't reply to k(eeepAlive), no retries left, setting device to disconnected
2021.06.11 16:48:47.864 3: 10.16.1.20:3002 disconnected, waiting to reappear (klimazaehler)
2021.06.11 16:48:50.606 3: 10.16.1.20:3002 reappeared (klimazaehler)
2021.06.11 16:48:52.610 3: klimazaehler: device didn't reply to k(eeepAlive), count=1
2021.06.11 16:48:54.610 3: klimazaehler: sending h(ello) to device to ask for version
2021.06.11 16:49:02.612 3: klimazaehler: device didn't reply to k(eeepAlive), count=2
2021.06.11 16:49:12.615 3: klimazaehler: device didn't reply to k(eeepAlive), no retries left, setting device to disconnected
2021.06.11 16:49:12.616 3: 10.16.1.20:3002 disconnected, waiting to reappear (klimazaehler)
2021.06.11 16:49:14.778 3: 10.16.1.20:3002 reappeared (klimazaehler)
2021.06.11 16:49:16.781 3: klimazaehler: device didn't reply to k(eeepAlive), count=1
2021.06.11 16:49:18.780 3: klimazaehler: sending h(ello) to device to ask for version
2021.06.11 16:49:26.784 3: klimazaehler: device didn't reply to k(eeepAlive), count=2
2021.06.11 16:49:36.787 3: klimazaehler: device didn't reply to k(eeepAlive), no retries left, setting device to disconnected
2021.06.11 16:49:36.788 3: 10.16.1.20:3002 disconnected, waiting to reappear (klimazaehler)
2021.06.11 16:49:38.767 3: 10.16.1.20:3002 reappeared (klimazaehler)
2021.06.11 16:49:40.770 3: klimazaehler: device didn't reply to k(eeepAlive), count=1
2021.06.11 16:49:42.772 3: klimazaehler: sending h(ello) to device to ask for version
2021.06.11 16:49:50.771 3: klimazaehler: device didn't reply to k(eeepAlive), count=2
2021.06.11 16:50:00.775 3: klimazaehler: device didn't reply to k(eeepAlive), no retries left, setting device to disconnected
2021.06.11 16:50:00.775 3: 10.16.1.20:3002 disconnected, waiting to reappear (klimazaehler)
2021.06.11 16:50:04.931 3: 10.16.1.20:3002 reappeared (klimazaehler)
2021.06.11 16:50:06.934 3: klimazaehler: device didn't reply to k(eeepAlive), count=1
2021.06.11 16:50:08.934 3: klimazaehler: sending h(ello) to device to ask for version
2021.06.11 16:50:16.936 3: klimazaehler: device didn't reply to k(eeepAlive), count=2
2021.06.11 16:50:26.938 3: klimazaehler: device didn't reply to k(eeepAlive), no retries left, setting device to disconnected
2021.06.11 16:50:26.939 3: 10.16.1.20:3002 disconnected, waiting to reappear (klimazaehler)
2021.06.11 16:50:30.633 3: 10.16.1.20:3002 reappeared (klimazaehler)
2021.06.11 16:50:32.637 3: klimazaehler: device didn't reply to k(eeepAlive), count=1
2021.06.11 16:50:34.637 3: klimazaehler: sending h(ello) to device to ask for version
2021.06.11 16:50:42.637 3: klimazaehler: device didn't reply to k(eeepAlive), count=2
2021.06.11 16:50:52.640 3: klimazaehler: device didn't reply to k(eeepAlive), no retries left, setting device to disconnected
2021.06.11 16:50:52.641 3: 10.16.1.20:3002 disconnected, waiting to reappear (klimazaehler)
2021.06.11 16:50:57.653 3: 10.16.1.20:3002 reappeared (klimazaehler)
2021.06.11 16:50:59.659 3: klimazaehler: device didn't reply to k(eeepAlive), count=1
2021.06.11 16:51:01.658 3: klimazaehler: sending h(ello) to device to ask for version
2021.06.11 16:51:09.659 3: klimazaehler: device didn't reply to k(eeepAlive), count=2
2021.06.11 16:51:19.663 3: klimazaehler: device didn't reply to k(eeepAlive), no retries left, setting device to disconnected
2021.06.11 16:51:19.664 3: 10.16.1.20:3002 disconnected, waiting to reappear (klimazaehler)
2021.06.11 16:51:19.943 3: 10.16.1.20:3002 reappeared (klimazaehler)
2021.06.11 16:51:21.946 3: klimazaehler: device didn't reply to k(eeepAlive), count=1
2021.06.11 16:51:23.946 3: klimazaehler: sending h(ello) to device to ask for version
2021.06.11 16:51:31.949 3: klimazaehler: device didn't reply to k(eeepAlive), count=2
2021.06.11 16:51:41.950 3: klimazaehler: device didn't reply to k(eeepAlive), no retries left, setting device to disconnected
2021.06.11 16:51:41.950 3: 10.16.1.20:3002 disconnected, waiting to reappear (klimazaehler)
2021.06.11 16:51:44.811 3: 10.16.1.20:3002 reappeared (klimazaehler)
2021.06.11 16:51:46.814 3: klimazaehler: device didn't reply to k(eeepAlive), count=1
2021.06.11 16:51:48.813 3: klimazaehler: sending h(ello) to device to ask for version
2021.06.11 16:51:56.818 3: klimazaehler: device didn't reply to k(eeepAlive), count=2
2021.06.11 16:52:06.820 3: klimazaehler: device didn't reply to k(eeepAlive), no retries left, setting device to disconnected
2021.06.11 16:52:06.821 3: 10.16.1.20:3002 disconnected, waiting to reappear (klimazaehler)
2021.06.11 16:52:08.354 3: 10.16.1.20:3002 reappeared (klimazaehler)
2021.06.11 16:52:10.357 3: klimazaehler: device didn't reply to k(eeepAlive), count=1
2021.06.11 16:52:12.212 3: Opening klimazaehler device 10.16.1.20:3002
2021.06.11 16:52:12.218 3: klimazaehler device opened
2021.06.11 16:52:14.222 3: klimazaehler: device didn't reply to k(eeepAlive), count=2
2021.06.11 16:52:16.221 3: klimazaehler: sending h(ello) to device to ask for version
2021.06.11 16:52:24.224 3: klimazaehler: device didn't reply to k(eeepAlive), no retries left, setting device to disconnected
2021.06.11 16:52:24.225 3: 10.16.1.20:3002 disconnected, waiting to reappear (klimazaehler)
2021.06.11 16:52:28.311 3: 10.16.1.20:3002 reappeared (klimazaehler)
2021.06.11 16:52:30.313 3: klimazaehler: device didn't reply to k(eeepAlive), count=1
2021.06.11 16:52:32.314 3: klimazaehler: sending h(ello) to device to ask for version
2021.06.11 16:52:40.318 3: klimazaehler: device didn't reply to k(eeepAlive), count=2
2021.06.11 16:52:50.357 3: klimazaehler: device didn't reply to k(eeepAlive), no retries left, setting device to disconnected
2021.06.11 16:52:50.358 3: 10.16.1.20:3002 disconnected, waiting to reappear (klimazaehler)
2021.06.11 16:52:50.660 3: 10.16.1.20:3002 reappeared (klimazaehler)
2021.06.11 16:52:52.664 3: klimazaehler: device didn't reply to k(eeepAlive), count=1
2021.06.11 16:52:54.664 3: klimazaehler: sending h(ello) to device to ask for version
2021.06.11 16:53:02.663 3: klimazaehler: device didn't reply to k(eeepAlive), count=2
2021.06.11 16:53:12.664 3: klimazaehler: device didn't reply to k(eeepAlive), no retries left, setting device to disconnected
2021.06.11 16:53:12.665 3: 10.16.1.20:3002 disconnected, waiting to reappear (klimazaehler)
2021.06.11 16:53:14.826 3: 10.16.1.20:3002 reappeared (klimazaehler)
2021.06.11 16:53:16.829 3: klimazaehler: device didn't reply to k(eeepAlive), count=1
2021.06.11 16:53:18.829 3: klimazaehler: sending h(ello) to device to ask for version
2021.06.11 16:53:26.832 3: klimazaehler: device didn't reply to k(eeepAlive), count=2
2021.06.11 16:53:36.836 3: klimazaehler: device didn't reply to k(eeepAlive), no retries left, setting device to disconnected
2021.06.11 16:53:36.837 3: 10.16.1.20:3002 disconnected, waiting to reappear (klimazaehler)
2021.06.11 16:53:37.894 3: 10.16.1.20:3002 reappeared (klimazaehler)
2021.06.11 16:53:39.896 3: klimazaehler: device didn't reply to k(eeepAlive), count=1
2021.06.11 16:53:41.895 3: klimazaehler: sending h(ello) to device to ask for version
2021.06.11 16:53:41.896 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/98_ArduCounter.pm line 477.
2021.06.11 16:53:41.897 1: PERL WARNING: Use of uninitialized value $name in concatenation (.) or string at ./FHEM/98_ArduCounter.pm line 478.
2021.06.11 16:53:49.901 3: klimazaehler: device didn't reply to k(eeepAlive), count=1
Es scheint also, als gäbe es bei Ser2net einen Konfigurationsfehler. Leider hab ich aber bisher nichts gefunden, was ser2net-konfigurationen betrifft. Kann mir da jemand von euch weiterhelfen? Ein List vom Device kann ich euch leider nicht liefern, da ich das Modul aus der Produktivumgebung wieder rausnehmen musste.
Falls sich das mit ArduCounter und ser2net nicht sinnvoll umsetzen lässt, gibt es dann alternativen?
Viele Grüße
Leon