New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[knx] Binding keeps sending T_Disconnect telegrams to ETS5 causing device upgrade failures #4238
Comments
@JoveToo, need more about your environment!
But it is definitive no Bug! The limits are set by the quality of the used Interface/Router. Especially older ABB and Siemens IP Interfaces could handle only badly two Tunneling connections while programming with ETS. Therefore Routing-Mode should be always the preferred connection. Routing needs no feedback and is much more scalable. This effect is similar to blocking or non-blocking web servers. Routing-Mode is none Blocking and can handle a lot more requests at the same time. To prevent brutally, unplug the cable of openHAB for the time of programming. If you only have a Interface-Hardware, simply switch EIBD/KNXD as a Router between the KNX bus and openHAB. Over this Software-Router, ETS AND openHAB can work at same time without any competition to each other. The KNX bus communication is handled by calimero, the KNX library we use, not in the openHAB Binding itself. Therefore, it will be difficult to prevent this effect via the KNX binding. |
I am using a KNX Router (that also supports tunneling but this is not used afaict) and programming with ETS5 in router mode (Broadcasting with 224.0.23.12). There is also an EIBD with LinKNX running on the same machine as OpenHAB, both of which are in router mode. The router is built into my powersupply (Elsner PS640-IP). Why would OpenHAB react to traffic not addressed to it? It is sending 2 T_Disconnect messages (according to ETS5) for every message sent during the programming. This tripples bus activity for no reason whatsoever. Perhaps there is a misconfiguration somewhere but then I'd like to understand in which cases such a T_Disconnect message is sent. |
@JoveToo,
Unfortunately, I do not know the deeper connections on the side of the device programming and in particular I do not know the meaning of a "T_Disconnect" telegram and when it is sent or must be. In order to experience this, there are people who are familiar with it. |
@lewie Thank you :) |
The |
Same slow down behavior (very slow down when use ETS4 + openhab 2.4 via eibd tunnel. Shutting down openhab it works). Eibd connect to bus via Siemens Ip interface. |
There was a fix to Calimero for this issue, not sure when and if this will make it to OpenHAB. |
Probably @JoveToo you mean this commit calimero-project/calimero-core@6585672 that solve this calimero-project/calimero-core#77 isn't it? |
@dmiorandi Yes, that's the one. |
@dmiorandi, @JoveToo, Testfile_calimero-2.4-rc2-6585672 Please can you test this Version? If your feedback is positive I will start a PR. Install Testfile: |
Uninstalling the knx binding will not remove the knx data? |
I am having the same issue - ETS5, IP Router (in my case Siemens N146/02). OPenhab is sending T_Disconnect when updating a KNX device. Is there already a PR? |
closed due to inactivity |
Hi, So if this is not fixable, I would at least expect that there is a note to this bug in the documentation of the knx addon. I can also add it if you want. thanks, |
There is a fix, it should be tested. I didn't have time back then, so this issues got closed due to inactivity. Perhaps if someone can provide a fix to a more recent version of OH, I can test it? Perhaps @matzetronic would be interested in testing this too? |
From what I can tell, this fix is included in calimero 2.5.1, while openhab includes 2.5. |
Where do you see this fix and 2.5.1 release? |
Technically, it is a tag only. It's recent, too. (13 days). https://github.com/calimero-project/calimero-core/releases/tag/v2.5.1 Link to the fix is in this issue: #4238 (comment) |
That fix was merged in 2018 and 2.5 was released in 2021, so I think it already has that fix. If you open calimero-project/calimero-core@6585672 and expand the tags you'll also see it's already in 2.5: |
Then there isn't a fix :( |
I am using ETS5 to manage my KNX home automation and OpenHAB2 to allow me to turn everything on or off using the Android app and my computer.
However, if OpenHAB2 is running while I am performing a device upgrade, it keeps sending T_Disconnect telegrams to my ETS5 and the device in question, making everything slower and eventually even failing the device upgrade.
Expected Behavior
OpenHAB2 KNX binding does not interfere with traffic that doesn't concern it.
Current Behavior
OpenHAB keeps sending T_Disconnect messages to ETS5 and the device in question, slowing everything down and failing the device upgrade.
Possible Solution
Ignore traffic that doesn't make sense.
Steps to Reproduce (for Bugs)
Context
These are telegram logs made with ETS5, unless you read bus telegrams, they may not be useful.
This is a normal communication cycle:
While this is one when OpenHAB2 is active:
Your Environment
OpenHAB 2.3 running on CentOS 7
The text was updated successfully, but these errors were encountered: