New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP8266 server looses connection... maybe... #578
Comments
@Nickich, this isn't support forum for application developers. Please refer to esp8266.com and StackOverflow for this type of support. If you have a specific repeatable bugrep with test cases and hopefully reference to the source code responsible for the error then this is the sort of material to be posted here. |
@TerryE, I posted it here as it looks like a bug in nodemcu. I describe the issue and the branches where observed as well as the hardware used. |
That's one of the basic feature of TCP . TCP have a time-out, which means if you keep idle for a set of time(like 30s control by the server), the connection will automatcally drop by server. The solving way is to send some meaningless text to server. |
@MarsTechHAN Thanks for pointing it out. This might explain the behaviour. It makes sense as if I reconnect (wifi.sta.disconnect() followed by wifi.sta.connect()) works and I have the server alive again. |
@MickiCH 1.You use ESP as server or some other thing. 2.What do you mean by 'the server dies'?If you cannot setup a new TCP connection to server, that's not a Time-Out problem.
|
@MarsTechHAN |
Which firmware,and can you paste the code? (NodeMCU have a HTTP Server demo, why dont you try it out.) |
|
It is same with the http_server demo from NodeMCU... |
I got a same issue with ESP 8266 12E with simple webserver example. |
I have the same problem... after being connected for a certain period of time, the connection disappears. |
Happens to me in stationap mode when sending more than a few single IP packets. I'm using a modified 0.9.5 version from around March 2015. Haven't tried a newer version yet. |
This doesn't look like a NodeMCU bug. Make sure your devices have enough power available (300mA?) to transmit WiFi packets. I found I could reliably crash my device just by pinging it a few times when I ran it from an unpowered USB hub. Please close this issue. |
I don't think that this is an issue with the nodemcu firmware. |
hi all, |
@sghazagh, try the latest dev build. |
I am in latest dev build mate. (nodemcu_float_0.9.6-dev_20150704.bin) I really do appreciate if you can help me fix this issue. |
That's not what Terry meant I reckon. You should try with a current build from the |
I just downgraded the firmware to the one shipped with 'NodMCU-Flasher-Master' and it is: nodemcu_integer_0.9.5_20150318.bin From my last post which was 15 minutes ago it was alive when I refreshed the page. Thanks for your prompt reply anyway... |
Hi, Thanks |
That's why you should test with a build from the |
To be honest I do not understand which options I should choose to build the firmware. In that case that would be easy to rebuild the latest dev version for testing... |
@sghazagh, this issue is already fixed in dev which is why I closed this. The nodeMCU guys have "gone fishing", and the active community contributors are all working to rebaseline the firmware against a SDK 1.4 based build. No one who is actively working on the firmware will look at issues due an old SDK version which has loads of known bugs, so this issue falls directly in the "won't fix" category. |
Can you please be specific and tell me which dev version I can download/build to have the latest changes which fixed this issue as well? Also have a question, sorry if it is silly though. Many thanks, |
An update... |
Same problem happens to me: Config:
In "/CO2" mode, ESP8266 will passively wait for client request. Problem: Suspected Cause: Solution: |
@panzer7910 This is a Lua-based ESP8266 firmware, not the Arduino one; you're in the wrong place. |
I have a simple http server running.
It seems that the ESP looses connection after certain period of time, if no request is made.
If I run it initially I have access to the web page contents. After some time the connection is lost. The ESP doesn't reply even to ping. The ESP is alive, as I have internal timer and it sends out some strings on UART periodically ( every 1s).
In the second case, if I start the ESP and run ping (from any other machine) continuously, it looks like the ESP doesn't loose the connection.
I'm using the Olimex boards, and I've tried the NodeMcu trunk and branch 096.
The text was updated successfully, but these errors were encountered: