ESP8266 TCP server stops

Amir_H
Posts: 2
Joined: Fri Apr 13, 2018 6:32 pm

ESP8266 TCP server stops

Postby Amir_H » Tue Apr 17, 2018 1:54 pm

I'm working with the ESP8266 module, and i have a strange problem, when i communicate with the device over a android tablet, i have a connection, also i can communicate, but the problem is that in the middle of the communication it stops, for few seconds and starts again. I've checked the code on the tablet application, it's fine, also i've checked the code on the MCU which drives the ESP module, it's also ok. What could it be that the communication with the server stops. :x :x :x :x :x

Her Mary
Posts: 537
Joined: Mon Oct 27, 2014 11:09 am

Re: ESP8266 TCP server stops

Postby Her Mary » Thu May 10, 2018 10:58 am

Maybe you should capture the WiFi packets by wireshark or omnipeek for debugging.

Diceus
Posts: 1
Joined: Fri Jun 08, 2018 7:04 pm
Location: Canada,Ontario
Contact:

Re: ESP8266 TCP server stops

Postby Diceus » Fri Jun 08, 2018 7:22 pm

Probably lwip (leightweight IP stack) keeps allocating packets. Even closed connections remain in a WAITING state before being deallocated. So you'll eventually run out of memory (~40kB heap on the esp8266) or TCP packet buffers
There are only two tragedies in life: one is not getting what one wants, and the other is getting it.
General project of this past year Diceus Start from spring 2019

Who is online

Users browsing this forum: No registered users and 2 guests