ESP8266 Developer Zone The Official ESP8266 Forum 2021-04-22T06:18:56+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=2574 2021-04-22T06:18:56+08:00 2021-04-22T06:18:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2574&p=99682#p99682 <![CDATA[Re: Cannot connect to ESP8266 after a while]]>

Statistics: Posted by mainul — Thu Apr 22, 2021 6:18 am


]]>
2016-09-06T07:22:58+08:00 2016-09-06T07:22:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2574&p=9743#p9743 <![CDATA[Re: Cannot connect to ESP8266 after a while]]>
ESP_Rubin wrote:
please highlight which router to reproduce the issue.


We used Billion BiPAC 7300G

We also tried Billion BiPAC 7800N. That router keeps disconnecting ESP8266 from WiFi every 5 minutes.

However the module works with a Netis router without any problem fol long time. Also it works well with a pocket WiFi Huawei R215.

Statistics: Posted by akouz — Tue Sep 06, 2016 7:22 am


]]>
2016-09-05T15:04:30+08:00 2016-09-05T15:04:30+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2574&p=9735#p9735 <![CDATA[Re: Cannot connect to ESP8266 after a while]]> and also need clarify the settings of the router

Statistics: Posted by ESP_Rubin — Mon Sep 05, 2016 3:04 pm


]]>
2016-09-04T13:19:40+08:00 2016-09-04T13:19:40+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2574&p=9722#p9722 <![CDATA[Re: Cannot connect to ESP8266 after a while]]> Statistics: Posted by akouz — Sun Sep 04, 2016 1:19 pm


]]>
2016-09-02T10:01:43+08:00 2016-09-02T10:01:43+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2574&p=9701#p9701 <![CDATA[Re: Cannot connect to ESP8266 after a while]]> Until then, switching to another AT firmware version is recommended, if this is indeed a firmware issue.

Statistics: Posted by Guest — Fri Sep 02, 2016 10:01 am


]]>
2016-08-26T07:04:54+08:00 2016-08-26T06:44:40+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2574&p=9626#p9626 <![CDATA[Re: Cannot connect to ESP8266 after a while]]>
Good news: this version does not crash on the "connect - send 3 bytes - disconnect" sequence.

Bad news: this version still refuses to make TCP connections to some computers after about one hour, at random.

ESP8266 is in station+softAP mode, multiple connection mode, it runs TCP server, as described above. In our application we supposed to connect to our device with ESP8266 from any computer in network. Our device runs HTTP server. A browser from any computer in the local network can establish connection to HTTP server and request HTML pages.


After power-up or reset everything works OK.

After about one hour some computers cannot connect to ESP8266. After sending request to ESP8266 their browsers waits and then exit by time-out. ESP8266 UART output does not indicate that connection is established, it is silent, there is no traffic.

The same time other computers still can connect to ESP8266. Its UART output shows messages such as "0,CONNECT" and then incoming HTTP request from the browser.

Statistics: Posted by akouz — Fri Aug 26, 2016 6:44 am


]]>
2016-08-23T15:58:16+08:00 2016-08-23T15:58:16+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2574&p=9581#p9581 <![CDATA[Re: Cannot connect to ESP8266 after a while]]> Also, please use the latest firmware. We fix MANY issues with every subsequent update. This might be one of those. v.1.5.x received many patches because of small issues. Therefore, I would recommend upgrading to SDK v.2.0.0 if the problem cannot be resolved.

Statistics: Posted by Guest — Tue Aug 23, 2016 3:58 pm


]]>
2016-08-23T15:11:15+08:00 2016-08-23T15:11:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2574&p=9579#p9579 <![CDATA[Re: Cannot connect to ESP8266 after a while]]>
WIFI DISCONNECT
WIFI CONNECTED
WIFI GOT IP

After that connection to network is lost, and softAP does not respond to requests too. It just refuse to connect.


Why could it be?

Statistics: Posted by akouz — Tue Aug 23, 2016 3:11 pm


]]>
2016-08-17T10:57:19+08:00 2016-08-17T10:57:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2574&p=8535#p8535 <![CDATA[Re: Cannot connect to ESP8266 after a while]]>
Thanks.

Sorry, I do not use the new AT+RADC command at all.


you can also print free system memory every time you connect/disconnect


Please explain how can I do that. I do not know how to print free ESP8266 system memory using AT commands.

Regards
Alex

Statistics: Posted by akouz — Wed Aug 17, 2016 10:57 am


]]>
2016-08-17T10:12:46+08:00 2016-08-17T10:12:46+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2574&p=8532#p8532 <![CDATA[Re: Cannot connect to ESP8266 after a while]]>
If you are reading the ADC anywhere between these connection-disconnection cycles, please substitute that code and use a dummy value. The ADC is closely linked with internal RF circuitry and may cause issues at times if not used properly.
The second option is to simply generate the firmware without any modification to it (no custom AT commands at all) and then try to see if behaves this way again.

Meanwhile, I will have this checked for a memory leak issue (you can also print free system memory every time you connect/disconnect), if it decreases, you probably have a memory bug somewhere!

Statistics: Posted by Guest — Wed Aug 17, 2016 10:12 am


]]>
2016-08-16T08:00:30+08:00 2016-08-16T08:00:30+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2574&p=8516#p8516 <![CDATA[Re: Cannot connect to ESP8266 after a while]]> SDK version:1.5.2(80914727)
There is one custom AT command there, AT+RADC. It reads ADC.

As I said above, AT+RST command solves the problem, but it solves it for a while only. After few hours the same problem appears again.

We are trying to reproduce the problem in shorter time. We run test programs on PC. One of the test programs does a rather simple job:
- Open TCP connection
- Send 3 bytes of binary data
- Close TCP connection.
Test program does it at maximum speed using 30 threads. Apparently PC is much faster than ESP8266, and WiFi is much faster than serial port at 115 kbps. Thus, I would expect that the operations speed should be defined by ESP8266 reactions. If ESP requires some time to receive data and send them via UART, it may wait before opening a new TCP connection. Measured throughput is about 600 bytes per second, thus, ESP processes about 200 transactions per second

The following is a sample of ESP8266 output seen by serial monitor:

0,CONNECT
+IPD,0,3:<...>0,CLOSED
0,CONNECT
1,CONNECT
+IPD,1,3:<...>1,CLOSED
+IPD,0,3:<...>0,CLOSED

... etc. After a few seconds ESP8266 hangs. The last output from ESP8266 seen by serial monitor is as follows:

+IPD,2,3:<...>3,CONNECT
4,CONNECT
0,CLOSED
0,CONNECT
1,CLOSED
2,CLOSED
1,CONNECT
2,CONNECT
0,CONNECT FAIL
1,CONNECT FAIL
2,CONNECT FAIL
3,CONNECT FAIL
4,CONNECT FAIL

After that ESP8266 output is frozen. It does not react to any AT commands, including AT+RST.

It looks like a seriuos problem, is not it? Anyone can crash ESP8266 via WiFi just by running a similar program on PC.

Statistics: Posted by akouz — Tue Aug 16, 2016 8:00 am


]]>
2016-08-15T19:26:10+08:00 2016-08-15T19:26:10+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2574&p=8498#p8498 <![CDATA[Re: Cannot connect to ESP8266 after a while]]>
Could you please use AT+GMR and inform about the SDK/firmware version? Also, have you added custom AT commands to the firmware?

When you face this problem that you described, please use AT+RST and then see if the problem is resolved or not. If resolved, then probably a software issue. Otherwise may be hardware/network issue.

Statistics: Posted by Guest — Mon Aug 15, 2016 7:26 pm


]]>
2016-08-15T14:07:56+08:00 2016-08-15T14:07:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2574&p=8489#p8489 <![CDATA[Cannot connect to ESP8266 after a while]]>
After power-up/restart I initialise ESP8266 as follows:

AT+CWMODE_CUR=3 - set mode "station+softAP"
OK
AT+CWJAP_CUR="MyNetwork","xxxxxxxx" - connect to local network
WIFI CONNECTED
WIFI GOT IP
OK
AT+CIPMUX=1 - multi-connect mode
OK
AT+CIPSERVER=1,1300 - start TCP server, port 1300
OK

After that ESP8266 works quite well. I can broadcast UDP messages, or I can serve TCP requests coming from softAP network or from local network. It can be HTTP requests from a browser, or binary messages from custom software. I can access it from my mobile phone, from my desktop or from laptop, no problems.

But it does not work for long. After a few hours ESP8266 may continue to serve TCP request from one computer and refuses to make TCP connectoins to other computers. It continues to send UDP messages, it may serve HTTP requests in softAP network, but in the local network it talks to one and only one computer, refusing to make connection to any other computer. Say, on my desktop I can access ESP8266 TCP server via browser or via custom software. But I cannot access it from other computers in the local network. Other computers just wait for connection for long time and then finish by time-out. ESP8266 does not show any AT commands or echo when I try to connect from other computers, but it shows expected traffic when I connect my desktop computer.

I tried to reset TCP server:
AT+CIPSERVER=0
AT+CIPSERVER=1,1300
That does not help.

If I restart module by AT+RST and then re-initialise it, everything works again. For a while.

What is wrong?

Statistics: Posted by akouz — Mon Aug 15, 2016 2:07 pm


]]>