ESP8266 Developer Zone The Official ESP8266 Forum 2015-07-08T10:15:09+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=671 2015-07-08T10:15:09+08:00 2015-07-08T10:15:09+08:00 https://bbs.espressif.com:443/viewtopic.php?t=671&p=2561#p2561 <![CDATA[Re: AP+STA connectivity loss.]]>
Sorry that we don't have this API.

But you could call wifi_station_set_reconnect_policy and wifi_station_set_auto_connect to disable reconnect.
Then use wifi_set_event_handler_cb to do reconnection yourself.

So sorry for the inconvenience.

Thanks for your interest in Espressif Systems and ESP8266 !

Statistics: Posted by ESP_Faye — Wed Jul 08, 2015 10:15 am


]]>
2015-07-07T20:35:47+08:00 2015-07-07T20:35:47+08:00 https://bbs.espressif.com:443/viewtopic.php?t=671&p=2552#p2552 <![CDATA[Re: AP+STA connectivity loss.]]> Statistics: Posted by iothing — Tue Jul 07, 2015 8:35 pm


]]>
2015-07-07T10:31:07+08:00 2015-07-07T10:31:07+08:00 https://bbs.espressif.com:443/viewtopic.php?t=671&p=2531#p2531 <![CDATA[Re: AP+STA connectivity loss.]]>
You mean TCP connection or UDP transmission ?

Yes,it may happen. This is the limitation that even though ESP8266 can work in station+softAP mode, it actually only has one hardware channel.

So when ESP8266 station is trying to find a target AP, it will scan on every channel, that means ESP8266 station is changing its channel to scan. This makes the channel of ESP8266 softAP is keep changing too..

So the connection may break..

You can set a timer to disable the reconnect of ESP8266 station, call wifi_station_disconnect it will stop connecting. Or call wifi_station_set_reconnect_policy and wifi_station_set_auto_connect to disable reconnect.

Statistics: Posted by ESP_Faye — Tue Jul 07, 2015 10:31 am


]]>
2015-07-06T19:28:05+08:00 2015-07-06T19:28:05+08:00 https://bbs.espressif.com:443/viewtopic.php?t=671&p=2517#p2517 <![CDATA[Re: AP+STA connectivity loss.]]>
client1 is not deassociated from ap2 but sending and receiving data (esp-link httpd) is not possible or very slow. That was what is described as "lose reliable connectivity". Sorry if this was not clear.

Statistics: Posted by iothing — Mon Jul 06, 2015 7:28 pm


]]>
2015-07-06T13:57:03+08:00 2015-07-06T13:57:03+08:00 https://bbs.espressif.com:443/viewtopic.php?t=671&p=2510#p2510 <![CDATA[Re: AP+STA connectivity loss.]]>
According to the log you provided, it seems that your router's SSID is "lambda"

Case 1 ESP8266 station connect to AP

Code:

405328> no lambda found, reconnect after 1s

This means ESP8266 station can't find router "lambda", ESP8266 station is trying to reconnect to the router every 1s

Case 2 a station connect to ESP8266 softAP

Code:

station: 88:70:8c:41:4f:59 join, AID = 1

This log will mean a station connected to ESP8266 softAP, I think this will be the client 1 connect to ap2, in your example. And

Code:

station: 88:70:8c:41:4f:59 leave, AID = 1

This log will mean a station disconnected from ESP8266 softAP.

There is no case 2 sentence in your log,did you misunderstand the disconnect between case 1 and case 2 ?

Statistics: Posted by ESP_Faye — Mon Jul 06, 2015 1:57 pm


]]>
2015-07-03T23:10:29+08:00 2015-07-03T23:10:29+08:00 https://bbs.espressif.com:443/viewtopic.php?t=671&p=2484#p2484 <![CDATA[Re: AP+STA connectivity loss.]]>
Definition:
ap1: a normal accesspoint with wpa2 security enabled.
ap2: the ap of the esp8266 in AP+STA mode.
client1: some smartphone or computer

Steps to reproduce:

1. Set up esp8266 esp-01 in AP+STA mode, wifi_station_set_reconnect_policy(true)
2. Let esp8266 connect to ap1 successfully
3. Use a smartphone or computer to connect to ap2
4. Remove power from ap1
5. client1 gets disconnected from ap2 over and over, interval ~1 second.

More info: If power is applied again to ap1, client1 has again stable connection to ap2

Statistics: Posted by iothing — Fri Jul 03, 2015 11:10 pm


]]>
2015-07-02T11:55:19+08:00 2015-07-02T11:55:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=671&p=2471#p2471 <![CDATA[Re: AP+STA connectivity loss.]]>
Sorry that I can‘t duplicate your problem..

Could you provide more details about your test steps and offer your test code ?

Statistics: Posted by ESP_Faye — Thu Jul 02, 2015 11:55 am


]]>
2015-07-02T11:37:55+08:00 2015-07-02T11:37:55+08:00 https://bbs.espressif.com:443/viewtopic.php?t=671&p=2470#p2470 <![CDATA[Re: AP+STA connectivity loss.]]> Statistics: Posted by iothing — Thu Jul 02, 2015 11:37 am


]]>
2015-07-02T11:31:43+08:00 2015-07-02T11:31:43+08:00 https://bbs.espressif.com:443/viewtopic.php?t=671&p=2469#p2469 <![CDATA[Re: AP+STA connectivity loss.]]>

Statistics: Posted by iothing — Thu Jul 02, 2015 11:31 am


]]>
2015-07-02T09:56:51+08:00 2015-07-02T09:56:51+08:00 https://bbs.espressif.com:443/viewtopic.php?t=671&p=2468#p2468 <![CDATA[Re: AP+STA connectivity loss.]]>
Sorry for the inconvenience.

Please use SDK_v1.1.2 and update to this patch http://bbs.espressif.com/viewtopic.php?f=5&t=608 , try again if your problem is solved or not.

Thanks for your interest in Espressif Systems and ESP8266 !

Statistics: Posted by ESP_Faye — Thu Jul 02, 2015 9:56 am


]]>
2015-07-02T08:22:35+08:00 2015-07-02T08:22:35+08:00 https://bbs.espressif.com:443/viewtopic.php?t=671&p=2464#p2464 <![CDATA[AP+STA connectivity loss.]]>
The problem seems to be that the esp8266 tries to reconnect in 1s intervals:

Code:

398728> Wifi disconnected from ssid lambda, reason beacon_timeout (200)
398728> f -240, scandone
400861> Wifi disconnected from ssid lambda, reason no_ap_found (201)
400861> no lambda found, reconnect after 1s
400963> reconnect
400963> f 0, scandone
403094> Wifi disconnected from ssid lambda, reason no_ap_found (201)
403094> no lambda found, reconnect after 1s
403196> reconnect
403196> f -240, scandone
405327> Wifi disconnected from ssid lambda, reason no_ap_found (201)
405328> no lambda found, reconnect after 1s
405429> reconnect
405430> f 0, scandone
407568> Wifi disconnected from ssid lambda, reason no_ap_found (201)
407568> no lambda found, reconnect after 1s
407670> reconnect
407670> f -240,


Maybe it is possible to set the interval to a higher value? The SDK documentation did not help, and I also do not want to completely disable reconnects by means of wifi_station_set_reconnect_policy();

The idea is that the user can reconfigure/fix wifi settings by connecting to the esp8266 AP. But we also do not want to switch to AP-only mode because it may still be possible that the AP is just temporary off the grid.

Statistics: Posted by iothing — Thu Jul 02, 2015 8:22 am


]]>