Quantcast
Channel: Infineon Forums
Viewing all articles
Browse latest Browse all 9892

TCP Retransmissions and TCP Resets on XMC4500 with webserver from DAVE Apps

$
0
0
WireShark file: Attachment 2286
(192.168.115.74 = XMC4500, 192.168.115.75 = PC)

XMC4500 Hexagon Board with Ethernet/CAN/RS485 Interface Card
DAVE 4.2.4
DAVE Apps webserver example with CMSIS RTOS, lwIP (stack and simple file system) and netconn
connected with Ethernet/USB adapter, micro usb cable and SEGGER J-Link usb cable to a PC

After implementing the XMC4500 Relax Kit webserver example from the DAVE Apps (xmc4500_relaxkit_lwip_httpserver_netconn) with correct ethernet ports on the XMC 4500 Hexagon and the file system from lwIP I get TCP Resets and TCP Retransmissions.
The webserver works great if only one TCP port is in parallel use (I tested is with a small html page and one picture).
But, if there are two pictures included and the two HTTP Requests coming to the XMC in short time in a row, I get a reset for the second HTTP Request, so the second picture is not loaded from the webserver.
When they appear not in a row with a bit more time difference both pictures are loading.
1st try -> bad: WireShark line 5 to 82, small picture didn't load, both HTTP Requests appear in a row (line 31 and 32), XMC4500 answer second Request (for small image) with two (???) resets
2nd try -> good: WireShark line 83 to 169, both Requests don't appear in a row (line 104 and 118), both pictures loaded
3rd try -> bad: WireShark line 170 to 208, both Requests appear again in a row (line 196 and 197), now the huge picture didn't load cause attendant Request is second
... this behavior continues for about 20 page reloads, then I get TCP Retransmissions (beginning line 1622) and the page loading lasts a few seconds.

Maybe you guys have any idea what is the problem here.
Thanks for your help.
Attached Files

Viewing all articles
Browse latest Browse all 9892

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>