brutella / hkknx-public

hkknx is a HomeKit KNX bridge for KNX.
https://hochgatterer.me/hkknx
98 stars 6 forks source link

No route to gateway #68

Closed c-14-n closed 1 year ago

c-14-n commented 3 years ago

Facing problem with KNX gateway access since update to v1.1.1.

HKKNX is running on a Pi4/4G, tried to change from using fixed IP for gateway to multicast. Once I re-test the connection, following error appears: unpack [6 16 2 6 0 8 0 36]: unexpected EOF

Debug console reports the following: DEBUG 2020/10/24 knx.go:63: dial tunnel: dial gateway: no route to 192.168.1.3:3671

KNX gateway is definitively available on port 3671 from Pi4.

Can you read the error message?

brutella commented 3 years ago

The response from the IP gateway to a connect request is invalid. What IP gateway are you using?

c-14-n commented 3 years ago

I'm using the ABB IPR/S 2.1 gateway, which supports tunneling as well as routing. Currently, gateway still reports as "not available" (knx.go:63: dial tunnel: dial gateway: no route to 192.168.1.3:3671), though actual control commands get to the gateway.

brutella commented 3 years ago

I just uploaded a pre-release version 1.1.2 which provides a better error description when the connection to the IP gateway cannot be established.

In your case the problem is that the maximum number of IP connections to your gateway are already reached – meaning that no more connections are accepted.

c-14-n commented 3 years ago

Thanks, additional log is very helpful. The issue was caused by exceeding maximum number of allowed connections (ABB IPR/S 2.1 supports one tunnel only).

Any plan to allow KNX/IP communication through multicast (224.0.23.12)?

brutella commented 3 years ago

Any plan to allow KNX/IP communication through multicast (224.0.23.12)?

How should that work?

c-14-n commented 3 years ago

It would work using KNX/IP Router functionality, whereby communication with the gateway goes through mulitcast instead of tunneling. Same way as e.g. the Gira Homeserver does: Screenshot 2020-10-27 at 18 33 29

As such no point-to-point connection is required. If the KNX/IP gateway only support one simultaneous connection, which is "occupied" by HKKNX, programming through ETS is not possible using unicast.

c-14-n commented 3 years ago

Good overview on IP tunnelling vs IP routing. https://www.ivoryegg.co.uk/essential_guides/a-guide-to-using-knx-over-ip

brutella commented 2 years ago

Have you tried to set the multicast address and port in hkknx Settings to connect via KNXnet/IP routing?

brutella commented 1 year ago

@c-14-n Are you able to get a tunnel connection in hkknx by setting the multicast address for the connection to the KNX gateway?

brutella commented 1 year ago

Closed due to inactivity...