TCP Connection reset

parmar7725274
Posts: 21
Joined: Wed Jun 03, 2015 1:20 pm

TCP Connection reset

Postby parmar7725274 » Tue Oct 06, 2015 2:34 am

Hi All.

I want a communication between two ESP's. One ESP works as TCP server and another one is acts as a TCP client.

The Problem I'm facing is Both ESP are able to communicate but after some time ESP which is client is automatically get disconnected and again connected within 1 second and after that whole TCP communication lost and not able to resume.

I referred sample code for continuously transfer TCP packets available at http://bbs.espressif.com/viewtopic.php?f=31&t=320

Is there anyone who help me ?

Thanks in advance.
Prakash P.

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

Re: TCP Connection reset

Postby ESP_Faye » Thu Oct 08, 2015 5:03 pm

Hi,

Maybe because the IP or port changed in the next connection.

You could add some logs to print the IP and port of the TCP connection.

asperks
Posts: 7
Joined: Fri Sep 04, 2015 4:10 pm

Re: TCP Connection reset

Postby asperks » Sat Oct 10, 2015 11:25 pm

I tried a lot of different things working out the comms between ESP's in a server/client environment. Completely controlling the connection helped. The biggest issue I found was the automatic connections.

viewtopic.php?f=7&t=1189

It kept on resetting my comms connection. Once I put that through my program, they've communicated pretty well.

Who is online

Users browsing this forum: No registered users and 27 guests