-->
Page 1 of 2

STA Timing out and not responding...

PostPosted: Tue May 05, 2015 4:28 pm
by donnaware
I just got two of the ESP8266 modules a few days ago, I got two different ones just to see. I was able to set up the dev environment on a Debian Vbox without any trouble (done similar ones before). I downloaded the latest version from the mirror git sit (it had a the download zip option). All went great, and I was able to compile and then flash the unit with the cute little cat web site. and it worked perfectly in the AP, STA and AP+STA Modes. Very cool. So I started changing around the HTML and some of my code to suit my application and I noticed something odd. After about 2 or 3 minutes elapse, it seemed like the STA mode would stop responding. I could access 192.168.4.1 using my tablet, but on my laptop I would go to 192.168.1.9 which was the IP it got and it worked initially but after a few minutes, nothing, page un available. I reverted back to the original code and HTML as downloaded and it did the same thing, I am not sure but I think perhaps I just did not notice it before. The AP mode seems rock solid and always stays up. If I reconnect using the wifi.tpl then it comes back. Also, I added code so if I push a button on one of the GPIO it does a wifi_disconnect() followed by a wifi_connect and it comes right back. Also, I noticed that I enough time goes by, it seems to do that spontaneously. I tried reflashing the blank.bin and I tried a couple of flashers. So frustrating. Has anyone else seen this? What could I have screwed up here? Since I have two different modules from different sources I tried that with the same result on both. I don't know what to try next.

I can submit a capture.txt of all the console messages if need be, but honestly there was nothing in there unusual, I traced every message back to where it was thrown in the code and none appear to be error messages.

I just wanted to see if anyone else has seen this or can confirm 100% that they run in STA mode for a long time, mine messes up after about 2 minutes. I would imagine that would have been noticed before so it must be something I am doing wrong. Any ideas out there ?

Re: STA Timing out and not responding...

PostPosted: Tue May 05, 2015 7:52 pm
by Sprite_tm
Have you tried flashing blank.bin to the ESP? This erases the WiFi configuration the SDK keeps; it's known that weird stuff can happen if there's data from an older SDK there.

Hmm, maybe this should go in a FAQ somewhere...

Re: STA Timing out and not responding...

PostPosted: Tue May 05, 2015 8:23 pm
by donnaware
About half way through my post, I say :
" I tried reflashing the blank.bin and I tried a couple of flashers."

Re: STA Timing out and not responding...

PostPosted: Tue May 05, 2015 8:26 pm
by donnaware
I just downloaded the bins from your google drive you posted. I am going to try that, but I am suspecting it could be hardware related somehow so I got another one from the DiYMall. But I also sort of wonder if it is something to do with my wifi router. But based on your response, can I infer that you have tried using it where it just sits there for a while, like 10 minutes, with no activity and then come back to it and it works. I am assuming it is something to do with my set up. I think I may also try it on a different wifi router. Shrug. I am baffled.