Platine HB-RF-ETH: Funkmodul per Netzwerk anbinden

Entwicklung und Bau von Hardware aller Art, die im HM-Umfeld eingesetzt werden kann

Moderator: Co-Administratoren

wendy2702
Beiträge: 463
Registriert: 05.03.2014, 19:31
Hat sich bedankt: 1 Mal
Danksagung erhalten: 1 Mal

Re: Platine HB-RF-ETH: Funkmodul per Netzwerk anbinden

Beitrag von wendy2702 » 24.10.2020, 17:48

Hi,

meine Platine ist heute angekommen und ich habe gerade Debmatic in einer Proxmox VM mit Debian 10 installiert.

Modul zusammen gebaut und ein HM-MOD-RPI-PCB aufgesteckt. Auf dem HB-RF-ETH die aktuelle FW installiert und das Modul danach neu gestartet.

Spannungsversorgung erfolgt aktuell über einen POE Switch. Auf dem Modul leuchtet die grüne LED konstant.

Auf der Webseite vom Modul sieht es so aus:
24-10-_2020_17-43-59.jpg
Meine Debmatic VM sieht so aus:

Code: Alles auswählen

mirko@debmatic:~$ systemctl list-dependencies debmatic
debmatic.service
● ├─debmatic-eq3configd.service
● ├─debmatic-hmserver.service
● ├─debmatic-hs485d.service
● ├─debmatic-hssled.service
● ├─debmatic-lighttpd.service
● ├─debmatic-monitor-hb-rf-eth.service
● ├─debmatic-multimacd.service
● ├─debmatic-prepareinterfaceslist.service
● ├─debmatic-rega.service
● ├─debmatic-rfd.service
● ├─debmatic-setinterfaceclock.timer
● ├─debmatic-ssdpd.service
● ├─debmatic-startupfinished.service
● ├─debmatic-updatelgwfirmware.service
● ├─debmatic-updatelgwkey.service
● ├─debmatic-updaterffirmware.service
● ├─pivccu-dkms.service
● ├─system.slice
● └─sysinit.target
●   ├─apparmor.service
●   ├─dev-hugepages.mount
●   ├─dev-mqueue.mount
●   ├─keyboard-setup.service
●   ├─kmod-static-nodes.service
●   ├─proc-sys-fs-binfmt_misc.automount
●   ├─sys-fs-fuse-connections.mount
●   ├─sys-kernel-config.mount
●   ├─sys-kernel-debug.mount
●   ├─systemd-ask-password-console.path
●   ├─systemd-binfmt.service
●   ├─systemd-hwdb-update.service
●   ├─systemd-journal-flush.service
●   ├─systemd-journald.service
●   ├─systemd-machine-id-commit.service
●   ├─systemd-modules-load.service
●   ├─systemd-random-seed.service
●   ├─systemd-sysctl.service
●   ├─systemd-sysusers.service
●   ├─systemd-timesyncd.service
●   ├─systemd-tmpfiles-setup-dev.service
●   ├─systemd-tmpfiles-setup.service
●   ├─systemd-udev-trigger.service
●   ├─systemd-udevd.service
●   ├─systemd-update-utmp.service
●   ├─cryptsetup.target
●   ├─local-fs.target
●   │ ├─-.mount
●   │ ├─systemd-fsck-root.service
●   │ └─systemd-remount-fs.service
●   └─swap.target
●     └─dev-disk-by\x2duuid-8b18d9f3\x2d10b8\x2d4197\x2d8722\x2dfac1dd8828dd.swap
Ping von VM zum Modul sieht so aus:

Code: Alles auswählen

PING 192.168.178.27 (192.168.178.27) 56(84) bytes of data.
64 bytes from 192.168.178.27: icmp_seq=1 ttl=255 time=0.921 ms
64 bytes from 192.168.178.27: icmp_seq=2 ttl=255 time=5.17 ms
64 bytes from 192.168.178.27: icmp_seq=3 ttl=255 time=0.506 ms
64 bytes from 192.168.178.27: icmp_seq=4 ttl=255 time=0.543 ms
64 bytes from 192.168.178.27: icmp_seq=5 ttl=255 time=0.475 ms
64 bytes from 192.168.178.27: icmp_seq=6 ttl=255 time=0.458 ms
64 bytes from 192.168.178.27: icmp_seq=7 ttl=255 time=0.270 ms
64 bytes from 192.168.178.27: icmp_seq=8 ttl=255 time=3.07 ms
64 bytes from 192.168.178.27: icmp_seq=9 ttl=255 time=0.488 ms
64 bytes from 192.168.178.27: icmp_seq=10 ttl=255 time=5.05 ms
64 bytes from 192.168.178.27: icmp_seq=11 ttl=255 time=6.43 ms
64 bytes from 192.168.178.27: icmp_seq=12 ttl=255 time=0.742 ms
64 bytes from 192.168.178.27: icmp_seq=13 ttl=255 time=3.28 ms
64 bytes from 192.168.178.27: icmp_seq=14 ttl=255 time=0.999 ms
64 bytes from 192.168.178.27: icmp_seq=15 ttl=255 time=0.750 ms
64 bytes from 192.168.178.27: icmp_seq=16 ttl=255 time=0.806 ms
64 bytes from 192.168.178.27: icmp_seq=17 ttl=255 time=0.771 ms
64 bytes from 192.168.178.27: icmp_seq=18 ttl=255 time=0.554 ms
64 bytes from 192.168.178.27: icmp_seq=19 ttl=255 time=4.23 ms
64 bytes from 192.168.178.27: icmp_seq=20 ttl=255 time=2.86 ms
64 bytes from 192.168.178.27: icmp_seq=21 ttl=255 time=0.500 ms
64 bytes from 192.168.178.27: icmp_seq=22 ttl=255 time=6.26 ms
64 bytes from 192.168.178.27: icmp_seq=23 ttl=255 time=1.26 ms
64 bytes from 192.168.178.27: icmp_seq=24 ttl=255 time=0.646 ms
64 bytes from 192.168.178.27: icmp_seq=25 ttl=255 time=0.636 ms
64 bytes from 192.168.178.27: icmp_seq=26 ttl=255 time=12.8 ms
64 bytes from 192.168.178.27: icmp_seq=27 ttl=255 time=6.69 ms
64 bytes from 192.168.178.27: icmp_seq=28 ttl=255 time=2.07 ms
64 bytes from 192.168.178.27: icmp_seq=29 ttl=255 time=4.22 ms
64 bytes from 192.168.178.27: icmp_seq=30 ttl=255 time=0.685 ms
64 bytes from 192.168.178.27: icmp_seq=31 ttl=255 time=3.75 ms
64 bytes from 192.168.178.27: icmp_seq=32 ttl=255 time=0.790 ms
64 bytes from 192.168.178.27: icmp_seq=33 ttl=255 time=1.87 ms
64 bytes from 192.168.178.27: icmp_seq=34 ttl=255 time=0.507 ms
64 bytes from 192.168.178.27: icmp_seq=35 ttl=255 time=4.97 ms
Können die Antwortzeiten >2ms die Ursache dafür sein das das Modul nicht mit Debmatic verbunden wird oder was kann ich sonst noch prüfen oder machen?

CCU Webseite in Debmatic ist auch erreichbar. Ist es richtig das ich keine CCU FW Version angezeigt bekomme:
Debmatic.jpg
Debmatic.jpg (11.34 KiB) 1311 mal betrachtet
Danke und Gruß

Mirko
Zuletzt geändert von wendy2702 am 24.10.2020, 17:52, insgesamt 1-mal geändert.
piVCCU3/iobroker mit einigen Aktoren, Sensoren, Empfängern und Sendern.

froema
Beiträge: 205
Registriert: 19.12.2018, 15:20
Hat sich bedankt: 3 Mal

Re: Platine HB-RF-ETH: Funkmodul per Netzwerk anbinden

Beitrag von froema » 24.10.2020, 17:51

So wie es aussieht, kennt das Modul die CCU noch nicht. Da müsste die IP von der CCU zu sehen sein. "Verbunden mit"

wendy2702
Beiträge: 463
Registriert: 05.03.2014, 19:31
Hat sich bedankt: 1 Mal
Danksagung erhalten: 1 Mal

Re: Platine HB-RF-ETH: Funkmodul per Netzwerk anbinden

Beitrag von wendy2702 » 24.10.2020, 17:52

Ja. Das habe ich auch erkannt.

Mein Frage ist ja woran es liegen kann.
piVCCU3/iobroker mit einigen Aktoren, Sensoren, Empfängern und Sendern.

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: Platine HB-RF-ETH: Funkmodul per Netzwerk anbinden

Beitrag von deimos » 24.10.2020, 17:54

Hi,

hast du auch das Paket hb-rf-eth installiert? Was liefert debmatic-info?

Die Ausreiser bei den Pings sind alles andere als gut und könnten zu Problemen führen, allerdings eher im Betrieb als beim Verbinden.

Viele Grüße
Alex

froema
Beiträge: 205
Registriert: 19.12.2018, 15:20
Hat sich bedankt: 3 Mal

Re: Platine HB-RF-ETH: Funkmodul per Netzwerk anbinden

Beitrag von froema » 24.10.2020, 17:55

Da fehlt vielleicht das Paket hb-rf-eth. Das muss zu Fuss in Debian installiert werden.

wendy2702
Beiträge: 463
Registriert: 05.03.2014, 19:31
Hat sich bedankt: 1 Mal
Danksagung erhalten: 1 Mal

Re: Platine HB-RF-ETH: Funkmodul per Netzwerk anbinden

Beitrag von wendy2702 » 24.10.2020, 18:02

Hi,

hier die Ausgabe von debmatic-info:

Code: Alles auswählen

 sudo debmatic-info
[sudo] Passwort für mirko:
debmatic version: 3.53.30-50
Kernel modules: Available
Raw UART dev:   Not available
HMRF Hardware:  unknown
 Board serial:  unknown
 Radio MAC:     unknown
HMIP Hardware:  unknown
 SGTIN:         unknown
 Radio MAC:     unknown
Das mit den PINGs sollte besser werden wenn ich den Probeaufbau weg mache.

Paket HB-RF-ETH sollte installiert sein. Hier der Auszug aus dem log während der Installation von Debmatic:

Code: Alles auswählen

mirko@debmatic:~$ sudo apt install hb-rf-eth
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  avahi-daemon avahi-utils libavahi-client3 libavahi-common-data libavahi-common3 libavahi-core7 libdaemon0 libnss-mdns
Vorgeschlagene Pakete:
  avahi-autoipd avahi-autoipd | zeroconf
Die folgenden NEUEN Pakete werden installiert:
  avahi-daemon avahi-utils hb-rf-eth libavahi-client3 libavahi-common-data libavahi-common3 libavahi-core7 libdaemon0 libnss-mdns
0 aktualisiert, 9 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 546 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 1.928 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Holen:1 http://ftp.halifax.rwth-aachen.de/debian buster/main amd64 libavahi-common-data amd64 0.7-4+b1 [122 kB]
Holen:2 http://ftp.halifax.rwth-aachen.de/debian buster/main amd64 libavahi-common3 amd64 0.7-4+b1 [54,6 kB]
Holen:3 http://ftp.halifax.rwth-aachen.de/debian buster/main amd64 libavahi-client3 amd64 0.7-4+b1 [58,1 kB]
Holen:4 http://ftp.halifax.rwth-aachen.de/debian buster/main amd64 libavahi-core7 amd64 0.7-4+b1 [115 kB]
Holen:5 http://ftp.halifax.rwth-aachen.de/debian buster/main amd64 libdaemon0 amd64 0.14-7 [15,0 kB]
Holen:6 http://ftp.halifax.rwth-aachen.de/debian buster/main amd64 avahi-daemon amd64 0.7-4+b1 [94,8 kB]
Holen:7 https://www.debmatic.de/debmatic stable/main amd64 hb-rf-eth all 1.0.1 [1.744 B]
Holen:8 http://ftp.halifax.rwth-aachen.de/debian buster/main amd64 avahi-utils amd64 0.7-4+b1 [57,3 kB]
Holen:9 http://ftp.halifax.rwth-aachen.de/debian buster/main amd64 libnss-mdns amd64 0.14.1-1 [27,0 kB]
Es wurden 546 kB in 0 s geholt (1.512 kB/s).
Vorkonfiguration der Pakete ...
Vormals nicht ausgewähltes Paket libavahi-common-data:amd64 wird gewählt.
(Lese Datenbank ... 56489 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../0-libavahi-common-data_0.7-4+b1_amd64.deb ...
Entpacken von libavahi-common-data:amd64 (0.7-4+b1) ...
Vormals nicht ausgewähltes Paket libavahi-common3:amd64 wird gewählt.
Vorbereitung zum Entpacken von .../1-libavahi-common3_0.7-4+b1_amd64.deb ...
Entpacken von libavahi-common3:amd64 (0.7-4+b1) ...
Vormals nicht ausgewähltes Paket libavahi-client3:amd64 wird gewählt.
Vorbereitung zum Entpacken von .../2-libavahi-client3_0.7-4+b1_amd64.deb ...
Entpacken von libavahi-client3:amd64 (0.7-4+b1) ...
Vormals nicht ausgewähltes Paket libavahi-core7:amd64 wird gewählt.
Vorbereitung zum Entpacken von .../3-libavahi-core7_0.7-4+b1_amd64.deb ...
Entpacken von libavahi-core7:amd64 (0.7-4+b1) ...
Vormals nicht ausgewähltes Paket libdaemon0:amd64 wird gewählt.
Vorbereitung zum Entpacken von .../4-libdaemon0_0.14-7_amd64.deb ...
Entpacken von libdaemon0:amd64 (0.14-7) ...
Vormals nicht ausgewähltes Paket avahi-daemon wird gewählt.
Vorbereitung zum Entpacken von .../5-avahi-daemon_0.7-4+b1_amd64.deb ...
Entpacken von avahi-daemon (0.7-4+b1) ...
Vormals nicht ausgewähltes Paket avahi-utils wird gewählt.
Vorbereitung zum Entpacken von .../6-avahi-utils_0.7-4+b1_amd64.deb ...
Entpacken von avahi-utils (0.7-4+b1) ...
libavahi-common-data:amd64 (0.7-4+b1) wird eingerichtet ...
libavahi-common3:amd64 (0.7-4+b1) wird eingerichtet ...
libavahi-client3:amd64 (0.7-4+b1) wird eingerichtet ...
libavahi-core7:amd64 (0.7-4+b1) wird eingerichtet ...
libdaemon0:amd64 (0.14-7) wird eingerichtet ...
avahi-daemon (0.7-4+b1) wird eingerichtet ...
Created symlink /etc/systemd/system/dbus-org.freedesktop.Avahi.service → /lib/systemd/system/avahi-daemon.service.
Created symlink /etc/systemd/system/multi-user.target.wants/avahi-daemon.service → /lib/systemd/system/avahi-daemon.service.
Created symlink /etc/systemd/system/sockets.target.wants/avahi-daemon.socket → /lib/systemd/system/avahi-daemon.socket.
avahi-utils (0.7-4+b1) wird eingerichtet ...
Vormals nicht ausgewähltes Paket hb-rf-eth wird gewählt.
(Lese Datenbank ... 56639 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../hb-rf-eth_1.0.1_all.deb ...
Entpacken von hb-rf-eth (1.0.1) ...
Vormals nicht ausgewähltes Paket libnss-mdns:amd64 wird gewählt.
Vorbereitung zum Entpacken von .../libnss-mdns_0.14.1-1_amd64.deb ...
Entpacken von libnss-mdns:amd64 (0.14.1-1) ...
hb-rf-eth (1.0.1) wird eingerichtet ...
libnss-mdns:amd64 (0.14.1-1) wird eingerichtet ...
First installation detected...
Checking NSS setup...
Trigger für systemd (241-7~deb10u4) werden verarbeitet ...
Trigger für man-db (2.8.5-2) werden verarbeitet ...
Trigger für dbus (1.12.20-0+deb10u1) werden verarbeitet ...
Trigger für libc-bin (2.28-10) werden verarbeitet ...
mirko@debmatic:~$ 
mirko@debmatic:~$ sudo reboot

EDIT: Fragt mich nicht warum aber nachdem ich jetzt mal das Syslog gemonitored habe und den x-ten restart von Debmatic ausgeführt habe ist das Modul jetzt verbunden.

Code: Alles auswählen

Oct 24 18:26:36 debmatic kernel: [  375.759525] hb-rf-eth hb-rf-eth: Trying to connect to 192.168.178.27
Oct 24 18:26:36 debmatic kernel: [  375.868070] hb-rf-eth hb-rf-eth: Successfully connected to 192.168.178.27
Oct 24 18:26:36 debmatic kernel: [  375.873873] raw-uart raw-uart: Reset radio module
piVCCU3/iobroker mit einigen Aktoren, Sensoren, Empfängern und Sendern.

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: Platine HB-RF-ETH: Funkmodul per Netzwerk anbinden

Beitrag von deimos » 24.10.2020, 19:16

Hi,

wie sieht die Datei /etc/default/hb_rf_eth aus? Was liefert "dmesg | grep hb-rf-eth"?

Viele Grüße
Alex

wendy2702
Beiträge: 463
Registriert: 05.03.2014, 19:31
Hat sich bedankt: 1 Mal
Danksagung erhalten: 1 Mal

Re: Platine HB-RF-ETH: Funkmodul per Netzwerk anbinden

Beitrag von wendy2702 » 24.10.2020, 19:41

Hi Alex,

funktioniert ja jetzt aber hier trotzdem die Ausgaben:

Code: Alles auswählen

 sudo cat /etc/default/hb_rf_eth
HB_RF_ETH_ADDRESS="192.168.178.27"

Code: Alles auswählen

 sudo dmesg | grep hb-rf-eth
[  375.759525] hb-rf-eth hb-rf-eth: Trying to connect to 192.168.178.27
[  375.868070] hb-rf-eth hb-rf-eth: Successfully connected to 192.168.178.27
[  775.955287] hb-rf-eth hb-rf-eth: Trying to connect to 192.168.178.27
[  776.061178] hb-rf-eth hb-rf-eth: Successfully connected to 192.168.178.27
Danke und Gruß
piVCCU3/iobroker mit einigen Aktoren, Sensoren, Empfängern und Sendern.

NFTE
Beiträge: 39
Registriert: 17.07.2018, 09:53
Hat sich bedankt: 5 Mal
Danksagung erhalten: 6 Mal

Re: Platine HB-RF-ETH: Funkmodul per Netzwerk anbinden

Beitrag von NFTE » 27.10.2020, 11:55

Hallo Alex,

ich habe auch das Problem, dass die Status LED auf dem Funkmodul immer Rot zeigt (Ubunto 20.04 LTSC).
Habe allerdings auch zwei Services, die offensichtlich nicht laufen:

Zwischenablage01.jpg
Gruß
Hans

dsaard
Beiträge: 2
Registriert: 28.10.2020, 14:02
System: Alternative CCU (auf Basis OCCU)

Re: Platine HB-RF-ETH: Funkmodul per Netzwerk anbinden

Beitrag von dsaard » 28.10.2020, 15:22

Hiho, Platine ist angekommen, alles zusammegelötet, läuft !!!

Coole Sache !!!

Antworten

Zurück zu „Hardwareentwicklung und Selbstbau von Aktoren und Sensoren“