[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Randomly delayed frame (ST32070 package including LwIP v1.4
From: |
stevestrong |
Subject: |
[lwip-users] Randomly delayed frame (ST32070 package including LwIP v1.4.1) + |
Date: |
Fri, 28 Dec 2018 03:44:11 -0700 (MST) |
Hi all,
I have implemented the standalone (NO_SYS = 1) webserver example from the
ST32070 package <https://www.st.com/en/embedded-software/stsw-stm32070.html>
on a STM32F407VET6 chip.
I only have main loop accesses to raw LwIP stack functions, the ETH
interrupt is disabled.
The main loop:
//-----------------------------------------------------------------------------
void Ethernet_Loop()
{
/* check if any packet received */
if (ETH_CheckFrameReceived())
{
/* process received ethernet packet */
LwIP_Pkt_Handle();
}
/* handle periodic timers for LwIP */
if ( LocalTime == millis() ) return;
LocalTime = millis();
LwIP_Periodic_Handle(LocalTime);
}
//----------------------------------------------------------------------------
The LwIP related functions are the standard ones in the mentioned package
from ST.
The periodic handle is called only once in a millisecond.
It works, in general, but sometimes the stack sends a very delayed TCP
frame. The delay varies between 280ms and 2.5 seconds.
I tried to increase (double) the Rx and Tx buffers, but without effect.
So I think there are no packets dropped, no re-transmitted packets, just
that the answer is delayed from some reason.
I uploaded a Wireshark capture file here:
https://drive.google.com/open?id=1i-UfnoiPLP6f_0x__Z9P6OCGVwNU8y9o
It contains 3 refreshed page accesses for the webserver (one refresh
downloads 4 items/files in total, one of them is not found), the first two
times everything is fine (no delayed frames), by the last refresh one of
file has a delayed last frame.
I would be very grateful if someone could advise me what can I do, what
should I look for, to solve this issue.
Thank you in advance.
--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-users] Randomly delayed frame (ST32070 package including LwIP v1.4.1) +,
stevestrong <=