KNXD auf Raspberry 3

Installation

knxd build und install

https://github.com/knxd/knxd → Building

KNXD über USB Schnittstelle

In der /etc/knxd.conf:

KNXD_OPTS="-e 0.0.1 -E 0.0.2:8 -DTRS -b usb:"

KNXD über Serielle Schnittstelle

Den Benutzer knxd den Gruppen dialout und tty hinzufügen:

$ sudo adduser knxd dialout $ sudo adduser knxd tty

Serielle Schnittstelle EIN

Bluetooth AUS

in der Datei /boot/config.txt am Ende:

dtoverlay=pi3-disable-bt

Bluetooth Modem disconnect:

$ sudo systemctl disable hciuart

In der /etc/knxd.conf:

KNXD_OPTS="-e 0.0.1 -E 0.0.2:8 -DTRS -b tpuarts:/dev/ttyAMA0"

Mit .ini Datei

In der /etc/knxd.conf:

KNXD_OPTS=/etc/knxd.ini

/etc/knxd.ini

[main] addr = 0.0.1 client-addrs = 0.0.2:8 connections = server,B.tpuarts systemd = systemd [B.tpuarts] device = /dev/ttyAMA0 driver = tpuart [server] server = ets_router discover = true debug = debug-server router = router tunnel = tunnel [debug-server] name = mcast:knxd [router] filters = A.pace [A.pace] delay = 50 filter = pace [tunnel] filters = log [systemd] debug = debug-systemd filters = log [debug-systemd] error-level = 0x9 trace-mask = 0xfc

Verbindung testen

Starte teste und enable KNX Deamon

systemctl start knxd

systemctl status knxd

systemctl enable knxd

Teste Verbindung:

knxtool vbusmonitor1 local:

knxtool vbusmonitor1 ip:<ip-addresse>

Dann sollte sowas ausgegeben werden:

LPDU: BC 11 6F 0C 2C E3 00 80 06 40 38 :L_Data low from 1.1.111 to 1/4/44 hops: 06 T_DATA_XXX_REQ A_GroupValue_Write 06 40
LPDU: BC 11 7A 1E 90 E3 00 80 0C 32 FB :L_Data low from 1.1.122 to 3/6/144 hops: 06 T_DATA_XXX_REQ A_GroupValue_Write 0C 32
LPDU: BC 11 74 15 90 E3 00 80 0C 7B B7 :L_Data low from 1.1.116 to 2/5/144 hops: 06 T_DATA_XXX_REQ A_GroupValue_Write 0C 7B
LPDU: BC 11 78 1C 29 E1 00 81 7F :L_Data low from 1.1.120 to 3/4/41 hops: 06 T_DATA_XXX_REQ A_GroupValue_Write (small) 01
LPDU: BC 11 78 1C 2A E2 00 80 21 5F :L_Data low from 1.1.120 to 3/4/42 hops: 06 T_DATA_XXX_REQ A_GroupValue_Write 21
LPDU: BC 11 71 11 90 E3 00 80 0C 30 FD :L_Data low from 1.1.113 to 2/1/144 hops: 06 T_DATA_XXX_REQ A_GroupValue_Write 0C 30
...