Skip to content
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 Communication - uncalled UDP response #5053

Closed
HomeAsASystem opened this issue Jan 28, 2019 · 7 comments
Closed

KNX Communication - uncalled UDP response #5053

HomeAsASystem opened this issue Jan 28, 2019 · 7 comments
Labels
awaiting feedback Action - Waiting for response or more information troubleshooting Type - Troubleshooting

Comments

@HomeAsASystem
Copy link

I'm using Tasmota 6.4.1 with KNX integration on several ESP8266 based devices. ESP Platform is 2.4.2. I have a full featured KNX TP installation with a MDT KNX-IP Gateway as well.
The integration of the Tasmota devices with the KNX TP installation works quite well.
However there is a strange behaviour of the ESP devices.
Whenever my IP Gateway or any other device sends a KNX IP message to the KNX Multicast address, the Tasmota devices respons with an UDP Message with 0 length to the KNX multicast address.
image

I've even isolated two ESP devices in a private WIFI net without any other connections, but the same behaviour was shown.
It seems that this is related to the IGMP implementation of the ESP platform, but sofar I couldn't locate the source of the uncalled UDP reponse.

All this causes a lot of additional traffic on the network an confuses the KNX binding of my OpenHAB server.

Tasmota 6.4.1 is used.

@Jason2866
Copy link
Collaborator

Jason2866 commented Jan 28, 2019

Could you try http://thehackbox.org/tasmota/020500/sonoff-knx.bin
if this behaviour is in the upcoming core 2.5.0.? It is in Beta3 stage and runs stable with Tasmota

@ascillato2 ascillato2 added awaiting feedback Action - Waiting for response or more information troubleshooting Type - Troubleshooting labels Jan 28, 2019
@HomeAsASystem
Copy link
Author

HomeAsASystem commented Jan 28, 2019

This didn't solve the issue.
used

Program Version 6.4.1.12(e63741a-knx)
2019-01-28T18:13:42
2_5_0_BETA3/3.0.0-dev(c0f7b44)

image

As long as the device hasn't send KNX data, it responds to IP 0.0.0.0 Port 0. Only if it send once data to the KNX multicast address the UDP messages replies to the KNX mutlicast address

image

Following ist the trace log of OpenHAB to this UDP response

image

@ascillato2
Copy link
Collaborator

Closing this issue as it is not a Tasmota bug. It is from the core. For follow up see referenced issue.
Thanks for sharing your tests.

@d-a-v
Copy link

d-a-v commented Jan 29, 2019

@ascillato which version of lwIP is selected in 6.4.1.12 (described above) ?

@BBBits
Copy link
Contributor

BBBits commented Feb 18, 2020

Sorry to dig this up again, I am having the same problem.
In WiFiUDP::beginMulticast if I comment out
if (igmp_joingroup(interfaceAddr, multicast)!= ERR_OK) {
return 0;
}
The problem goes away.
Can you give me a heads up on how to use a lwip lib in PIO that doesn't have this issue ?

@HomeAsASystem
Copy link
Author

The issue is still for me. Even with the later Tasmota Version using the 2.6.1 core the effect remains. So I’m still working on core 2.3.0.

7.2.0(KNX)
2019-12-22T11:41:52
2_6_1/2.2.2-dev(38a443e)

@BBBits
Copy link
Contributor

BBBits commented Feb 18, 2020

ok ,
so core 2.3 is ok then ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting feedback Action - Waiting for response or more information troubleshooting Type - Troubleshooting
Projects
None yet
Development

No branches or pull requests

5 participants