Skip to content

Upgrading from eibd to knxd

wvhn edited this page Nov 10, 2022 · 1 revision

My smarthomeNG system under Debian Buster is running smoothly with eibd. So why take the risk to upgrade to knxd? Finally, the Buster installation package, a good support thread in the Forum and my curiosity made me give it a try - after having made a backup of my SD card (!).

This is the procedure which worked for me:

Stop and remove the eibd service:

     sudo systemctl stop eibd
     sudo apt-get remove eibd

Install knxd and knxd-tools:

    sudo apt-get update
    sudo apt-get install knxd knxd-tools

My Busware ROT interface has already been working with the correct configuration on "ttyAMA0" under eibd. ttyAMA0 is owned by the group "dialout". So the user "knxd" needs to be added to this group:

    usermod -a -G dialout knxd

Finally, the knxd options need to be configured:

    sudo nano /etc/knxd.conf

Make the line KNXD_OPTS="-e 0.0.1 -E 0.0.2:8 -u /tmp/eib -b ip:" a comment by inserting a # in the first column.

Write a new line KNXD_OPTS="-e 0.0.1 -E 0.0.2:8 -c -b tpuarts:/dev/ttyAMA0" and save the file.

Stop knxd socket and service, enable the services and start them again:

    sudo systemctl stop knxd.socket
    sudo systemctl stop knxd.service
    sudo systemctl enable knxd.socket
    sudo systemctl enable knxd.service
    sudo systemctl start knxd.socket
    sudo systemctl start knxd.service

Now, the knxd is running and can be tested using the knx-tools. See https://smarthomeng.github.io/smarthome/installation/komplettanleitung/05_knxd.html for more information.