TCP connections hopelessly unreliable.

dmarkey
Posts: 7
Joined: Tue Mar 24, 2015 6:22 pm

TCP connections hopelessly unreliable.

Postby dmarkey » Tue Oct 13, 2015 12:38 am

Hi there,

I've tried using Sming and the Arduino spin for ESP8266 (and all SDK versiobns) and they all suffer very unreliable TCP connections.

Referenced bugs are here:

https://github.com/SmingHub/Sming/issues/198
https://github.com/SmingHub/Sming/issues/222

It seems TCP retransmissions aren't handled very well. Is there a bug here?

David

dmarkey
Posts: 7
Joined: Tue Mar 24, 2015 6:22 pm

Re: TCP connections hopelessly unreliable.

Postby dmarkey » Wed Oct 14, 2015 8:10 pm

Does espressif need any more information to progress this high priority issue? Will I open a bug instead?

eriksl
Posts: 159
Joined: Fri May 22, 2015 6:22 pm

Re: TCP connections hopelessly unreliable.

Postby eriksl » Thu Oct 15, 2015 4:01 pm

I don't share this experience. TCP is fine. Maybe it's and issue with this "sming"?

dmarkey
Posts: 7
Joined: Tue Mar 24, 2015 6:22 pm

Re: TCP connections hopelessly unreliable.

Postby dmarkey » Thu Oct 15, 2015 8:46 pm

I have the same problem with the arduino ESP8266 port. Specifically to my VPS @ dmarkey.com

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: TCP connections hopelessly unreliable.

Postby ESP_Faye » Fri Oct 16, 2015 9:49 am

Hi,

Please have a try with our latest esp_iot_sdk_v1.4.0.

We optimized TCP to make the connection more reliable in sdk_v1.4.0.

Thanks for your interest in ESP8266 !

dmarkey
Posts: 7
Joined: Tue Mar 24, 2015 6:22 pm

Re: TCP connections hopelessly unreliable.

Postby dmarkey » Fri Oct 16, 2015 5:15 pm

I've tried with 1.4. It's improved but random disconnections still occur.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: TCP connections hopelessly unreliable.

Postby ESP_Faye » Mon Oct 19, 2015 10:46 am

Hi,

Bad network environment may cause "random disconnections".

Or you can capture the WiFi packets for debugging.

Thanks for your interest in ESP8266 !

dmarkey
Posts: 7
Joined: Tue Mar 24, 2015 6:22 pm

Re: TCP connections hopelessly unreliable.

Postby dmarkey » Mon Oct 19, 2015 6:35 pm

What kind of traces are you looking for?

A tcpdump race can be found here: https://github.com/SmingHub/Sming/issues/222

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: TCP connections hopelessly unreliable.

Postby ESP_Faye » Tue Oct 20, 2015 9:43 am

Hi,

Please capture the WiFi network packets by "wireshark" or "omnipeek" when the disconnection happen.

We will analyse the packets for debugging.

Thanks for your interest in ESP8266 !

MikeBolton
Posts: 8
Joined: Sat Jan 03, 2015 11:34 pm

Re: TCP connections hopelessly unreliable.

Postby MikeBolton » Sat Oct 31, 2015 3:54 am

We too are having a problem with the TCP. This is with incoming messages - from a Smartphone app. As this is a control application we need the message to be sent via the UART as soon as possible. We have a reliable connection to the TCP channel but the messages appear on the UART with a very variable delay and sometimes not at all. Much of the time the delay is small (we only send at about one second intervals, one message of a few bytes at a time) but quite often we get no output and then a burst of the 'missing' messages. Sometimes we get no UART output at all. (No blue LED). This is no use for critical 'real time' control from the Smartphone to the system.

Have others experienced this problem and are there any ways round it?

Mike Bolton

Who is online

Users browsing this forum: No registered users and 27 guests