Hello,
Thank you very much for your answer. Indeed you are true. The problem here was that the timeout in the server was really low so the Esp didn´t process the packages fast enough for ther server. Increasing timeout fixed the problem.
However it was for 64Kb file. I wanted to transmit big files so I moved to 560Kb file size. I have increased server timeout
Code: Select all
type veryBigFile.txt | nc -l -p MY_PORT -w 10000000
What I see here, please correct me if I am wrong, is that the ESP tells that the server mustn´t send more packages "Len=0", after that server requests for retransmision. And what has changed is the fact that the ESP is requesting for reset in the last package.
Code: Select all
No. Time Source Destination Protocol Length Info
13315 66.901809 ESP-IP SERVER-IP TCP 60 2996 → 1234 [ACK] Seq=1 Ack=335801 Win=1460 Len=0
No. Time Source Destination Protocol Length Info
13356 67.275402 SERVER-IP ESP-IP TCP 1514 [TCP Window Full] [TCP Retransmission] 1234 → 2996 [ACK] Seq=335801 Ack=1 Win=64240 Len=1460
No. Time Source Destination Protocol Length Info
13444 67.947298 SERVER-IP ESP-IP TCP 1514 [TCP Window Full] [TCP Retransmission] 1234 → 2996 [ACK] Seq=335801 Ack=1 Win=64240 Len=1460
No. Time Source Destination Protocol Length Info
13704 69.275521 SERVER-IP ESP-IP TCP 1514 [TCP Window Full] [TCP Retransmission] 1234 → 2996 [ACK] Seq=335801 Ack=1 Win=64240 Len=1460
No. Time Source Destination Protocol Length Info
14346 71.916089 SERVER-IP ESP-IP TCP 1514 [TCP Window Full] [TCP Retransmission] 1234 → 2996 [ACK] Seq=335801 Ack=1 Win=64240 Len=1460
No. Time Source Destination Protocol Length Info
15499 77.181806 SERVER-IP ESP-IP TCP 1514 [TCP Window Full] [TCP Retransmission] 1234 → 2996 [ACK] Seq=335801 Ack=1 Win=64240 Len=1460
No. Time Source Destination Protocol Length Info
15501 77.187062 ESP-IP SERVER-IP TCP 60 2996 → 1234 [RST, ACK] Seq=1 Ack=337261 Win=2920 Len=0
The Esp serial port output is:
Code: Select all
[...]
+IPD,1459:ue nunc sed convallis ultricies. Nam malesuada nulla ac suscipit [...] Quisque cursus nulla non turpis dignissim
CLOSED
WIFI DISCONNECT
WIFI CONNECTED
WIFI GOT IP
Why is the WIFI DISCONNECT ?
Kind regards and thank you for your help.