ETH004 [1.0.14] only sends 6 UDP packets in a row (Dave 3.1.8) on Relax Kit

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Not applicable
Hello,

at a project I have to send data over Ethernet continously using UDP.
While trying to do this I observed that there are only 6 UDP packets sent in a row by lwIP/ETH004 using XMC4500 Relax Kit V1.
So I am not sure if this thread should be moved to the XMC section.

I have made a simple test project in DAVE to demonstrate the problem:
This is attached as ETH6packets.zip
It uses DHCP and is listening on port 1234. So I am connecting (with netcat) to it and send *IDN? . Instead of 10 times "testdevice" I only receive 6 (also in Wireshark there are only 6).
But I can send *IDN? on and on and I will always receive 6 packets. So there is no "total crash".

I will try to figure out what causes this by using different settings and older versions of ETH004 and by going deeper into lwIP.
But maybe someone experienced the same problem yet, or someone may look into my demo to help me figuring out what the problem is in the meantime?
It might be the same problem as here: http://e2e.ti.com/support/embedded/starterware/f/790/t/171893.aspx

Thank you in advance!
0 Likes
1 Reply
Not applicable
Solution: Do not reply on incoming packets in the udp_receive_handler, but only set a variable and handle it in the main.
0 Likes