ESP8266 Developer Zone The Official ESP8266 Forum 2017-04-20T19:33:46+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=3364 2017-04-20T19:33:46+08:00 2017-04-20T19:33:46+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3364&p=12442#p12442 <![CDATA[Re: Flow control resets Esp8266]]>
Thank you very much for your answer. I did miss some packages. I have just copied just what I thought were interesting.

The connection network is right, I tried with an SMC Barricade router. I think this is the main problem. After that I tried with a different router brand and is working properly.

Please, consider this topic as closed. It is woking properly for me.

Kind regards and thank you for your help.

Statistics: Posted by gusa — Thu Apr 20, 2017 7:33 pm


]]>
2017-04-14T14:32:45+08:00 2017-04-14T14:32:45+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3364&p=12306#p12306 <![CDATA[Re: Flow control resets Esp8266]]> [TCP window full] means that you send data too fast that the ESP cannot receive,
but there should be [TCP zerowindow] to tell the server to slow down.
The last [RST, ACK] is the ESP to close the TCP connection.
And the WiFi should not disconnect, is it the network condition too bad so the connection break? Maybe you can try it again with another router.

Statistics: Posted by Her Mary — Fri Apr 14, 2017 2:32 pm


]]>
2017-04-12T17:13:39+08:00 2017-04-12T17:13:39+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3364&p=12230#p12230 <![CDATA[Re: Flow control resets Esp8266]]>
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:

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:

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:

[...]
+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.

Statistics: Posted by gusa — Wed Apr 12, 2017 5:13 pm


]]>
2017-04-12T09:59:14+08:00 2017-04-12T09:59:14+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3364&p=12216#p12216 <![CDATA[Re: Flow control resets Esp8266]]> Statistics: Posted by Her Mary — Wed Apr 12, 2017 9:59 am


]]>
2017-04-11T17:52:46+08:00 2017-04-11T17:52:46+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3364&p=12197#p12197 <![CDATA[Re: Flow control resets Esp8266]]>
What I see is the file I attached. Is there some way to put the esp in debug mode?

I am using a ESP-01 using a serial-usb converter.

Please, could you let me know how you are testing the esp?.

Kind regards.
Log1.zip

Statistics: Posted by gusa — Tue Apr 11, 2017 5:52 pm


]]>
2017-03-24T09:39:46+08:00 2017-03-24T09:39:46+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3364&p=11552#p11552 <![CDATA[Re: Flow control resets Esp8266]]>
Sorry that we cannot duplicate your problem, could you provide UART1 log for debugging?

Thanks for your interest in ESP8266!

Statistics: Posted by ESP_Faye — Fri Mar 24, 2017 9:39 am


]]>
2017-02-20T20:53:58+08:00 2017-02-20T20:53:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3364&p=11348#p11348 <![CDATA[[Closed] Flow control resets Esp8266]]> I am using ESP8266EX :

Code:

AT version:1.3.0.0(Jul 14 2016 18:54:01)
SDK version:2.0.0(656edbf)
compile time:Jul 19 2016 18:44:22


I want to use flow control to receive as fast as possible without data loss. I am using CTS pin to stop receiving when the program behind the ESP8266 can´t handle data. On this way when I want more data I enable CTS.

In order to do that I am using next AT commands in the ESP8266:

Code:

AT+CWMODE=1
AT+CWJAP="MYWIFI","PASSWORD"
AT+UART_CUR=115200,8,1,0,2
AT+CIPSTART="TCP","MY_IP",MY_PORT


It is connecting to a NetCat to receive as much data as possible.

Code:

type veryBigFile.txt | nc -l -p MY_PORT


In my program that is connected to the ESP using AT commands and serial port I see data until 25Kb are sent, more or less. After that the ESP-8266 lose the wifi connection. I think the Esp8266 is reset by some issue.

Code:

CLOSED
WIFI DISCONNECT
WIFI CONNECTED
WIFI GOT IP


What am I missing? Is it possible to do in a different way?

Kind regards.

Statistics: Posted by gusa — Mon Feb 20, 2017 8:53 pm


]]>