Knxd connection refused

Hi all,

trying to get openhab 2 with this setup up and running:
Rasp3, openhabian, TUL

Installed knxd, installed the knx binding and changed config to this:
ip=224.0.23.12
type=TUNNEL / ROUTER --> both not working
port=3671
localIp=192.168.178.25

Then trying to switch a light:
knxtool groupswrite ip:192.168.178.25 0/0/5 1

but getting this error:
Open failed: Connection refused

I read so much now that I do not know what to do at all.

Would be great if someone could help me out.

Many thanks in advanced.

Hi & welcome :slight_smile:

You need to fix your knxd first before you configure your OH2 system to talk to KNX.
which KNX_OPTS are you using ?

Hi Dim,

thanks for your answer. I belive you mean this:
KNXD_OPTIONS="–eibaddr=1.1.128 --client-addrs=1.1.129:8 -d -D -T -R -S -i --listen-local=/tmp/knx -b tpuarts:/dev/ttyAMA0"

I wanted to try out also tpuarts:/dev/ttyS0" but openhabian user has no rights to change this.

Must say my linux skills are very limited…

Thanks

ok, try the following:
switch to root user and run the findknxusb tool

sudo su
findknxusb

post the output here (in code fences)

to see if this helps (as a first step)

I get this as output:
Possible addresses for KNX USB devices:

Nothing else

did you switch to root first?

This is not a good sign… in theory, you should see something like:

Possible addresses for KNX USB devices:
device: 1:7:1:0:0 (ABB STOTZ-KONTAKT GmbH:KNX-USB Interface (MDRC))

Try:

lsusb

and post the output.

(I don’t use knxd and this forum is for openHAB but I will try to help… you could also search the knxd forums to see if you can find the solution there)

this is what I get:

[18:32:21] openhabian@openHABianPi:~$ sudo su
[sudo] password for openhabian:
[18:33:49] root@openHABianPi:/home/openhabian# findknxusb
Possible addresses for KNX USB devices:
[18:34:04] root@openHABianPi:/home/openhabian# lsusb
Bus 001 Device 004: ID 03eb:204b Atmel Corp. LUFA USB to Serial Adapter Project
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[18:34:15] root@openHABianPi:/home/openhabian#

sorry, too stupid…

[18:32:21] openhabian@openHABianPi:~$ sudo su
[sudo] password for openhabian:
[18:33:49] root@openHABianPi:/home/openhabian# findknxusb
Possible addresses for KNX USB devices:
[18:34:04] root@openHABianPi:/home/openhabian# lsusb
Bus 001 Device 004: ID 03eb:204b Atmel Corp. LUFA USB to Serial Adapter Project
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[18:34:15] root@openHABianPi:/home/openhabian#

tryed a bit out yetserday but still error connection refused when I try this:
knxtool groupswrite ip:localhost 0/0/5 1

In the openhab log I can see this:
Established connection to KNX bus on 224.0.23.12:3671 in mode ROUTER.

Any idea? Meanwhile I will try with a clean openhabian

you may need to disable Bluetooth on the rPi3
it may be conflicting with the UART (not sure)

started with clean openhabian and now trying to install knxd manually.
Now I am stuck as I should fix instead…

“# To repeat: if this fails because of missing dependencies,”
"# fix them instead of using dpkg-buildpackage’s “-d” option."

“[12:33:29] openhabian@openHABianPi:~/knxd$ dpkg-buildpackage -b -uc
dpkg-buildpackage: source package knxd
dpkg-buildpackage: source version 0.14.19-2
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Matthias Urlichs matthias@urlichs.de
dpkg-buildpackage: host architecture armhf
dpkg-source --before-build knxd
dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 7.0.0) autotools-de v autoconf automake libtool libusb-1.0-0-dev (>= 1.0.9) libsystemd-dev (>= 228) | libsystemd-daemon-dev (>= 200) | base-files (<< 8) dh-systemd | base-files (<< 8) libev-dev libfmt3-dev | cmake (>= 2.8.12)
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)”

How do I fix this?

Thanks

On a sidenote: that’s nonsense, either su or sudo bash or sudo <command>.
Dunno if it relates to your problem, but you should do su - to ensure environment is also set to be that of the root user.