-->
Page 1 of 5

Socket timeout problem

PostPosted: Thu Sep 11, 2014 2:04 pm
by elektronika_ba
Has anyone tried using this chip as a TCP socket client? I have written a socket server for it, but ESP chip keeps disconnecting from the socket after exactly 60 seconds every time.
Can someone try? I have the first version, not new 091.

This is what I did:

Code: Select allAT+CIPSTART=4,"TCP","192.168.1.6",8000


(I get "OK" as a response and connection on my server... and then if I don't do anything to it, it disconnects after 60seconds). There must be a timeout in this old firmware.

I want this chip to connect to my server and stay connected ;)

Regards,
Muris

Re: Socket timeout problem

PostPosted: Thu Sep 11, 2014 5:12 pm
by JDub
Peter over at Hackaday just posted about the AT+CIPSTO? command, which apparently sets a socket timeout. Might be what you're looking for.

Re: Socket timeout problem

PostPosted: Fri Sep 12, 2014 1:29 am
by elektronika_ba
Thanks, I will give it a try.

I have been looking at the command list here: http://www.electrodragon.com/w/Wi07c instead of here: https://drive.google.com/folderview?id= ... sp=sharing

Oh man I wish they publish the source for this AT application, it needs some serious work.

:oops:

Re: Socket timeout problem

PostPosted: Fri Sep 12, 2014 1:46 am
by elektronika_ba
Oh no, I have the old version of this module which doesn't support the AT+CIPSTO command :cry:

Code: Select allAT+GMR

01000800

OK

AT+CIPSTO=120

ERROR


So sad.