Tested with a standard Raspbian Stretch Lite - November 2017
The CM3-Home board IS NOT a certified KNX device but implements just a hardware circuitry based on a Siemens TP-UART-2. Acme Systems doesn't provide any warranty about its functionality with the KNX devices.
The TP-UART-2 circuitry is powered up by the external bus so in order to guarantee the correct operation provide the power supply to the bus before turning on the CM3-Home.
In this article we will control a KNX relay PLANA 1453 made by Vimar wired as shown below. The relay address was already configured.
Install the following packages:
sudo apt-get install git-core build-essential sudo apt-get install debhelper libsystemd-dev dh-systemd libev-dev
Clone the knxd repository on GitHub:
git clone https://github.com/knxd/knxd.git
cd knxd dpkg-buildpackage -b -uc
Install the package:
cd .. sudo dpkg -i knxd_*.deb knxd-tools_*.deb
The default installation will install two services:
In this example we will not use knxd.socket so disable it by typing:
sudo systemctl disable knxd.socket
Remove the actual contents of /lib/systemd/system/knxd.service with this contents:
[Unit] Description=KNX Daemon After=network.target [Service] EnvironmentFile=/etc/default/knxd ExecStart=/usr/bin/knxd $KNXD_OPTIONS User=root Group=root Type=simple Restart=always RestartSec=10 StartLimitIntervalSec=0 [Install] WantedBy=multi-user.target network-online.target
Remove the actual contents of /etc/default/knxd with this contents:
KNXD_OPTIONS="--eibaddr=1.1.128 --client-addrs=1.1.129:1 -D -T -R -S -i --listen-local=/tmp/knx -b tpuarts:/dev/ttyAMA0"
Reload systemd in order to detect the new service definitions:
sudo systemctl daemon-reload
Open and SSH session and launch the follow command to check what is the messages sent:
knxtool busmonitor1 ip:localhost
Open a second SSH session and type:
knxtool on ip:localhost 1/6/105
knxtool off ip:localhost 1/6/105