AP mode devices constant disconnecting / reconnecting

Anki
Posts: 25
Joined: Thu Apr 09, 2015 3:00 am

AP mode devices constant disconnecting / reconnecting

Postby Anki » Sat Apr 18, 2015 6:41 am

In AP mode looking at the debug output from the ESP8266, I see every 22.5 seconds

Code: Select all

station: 84:3a:4b:d4:24:b0 leave, AID = 1
rm match

add 1
aid 1
station: 84:3a:4b:d4:24:b0 join, AID = 1


It takes about 2.5 seconds for the client to reconnect, so I am loosing about 2.5 seconds of data every 25 seconds. I have tried with several different devices connecting to the ESP8266 AP with similar results. What is going on here?

Anki
Posts: 25
Joined: Thu Apr 09, 2015 3:00 am

Re: AP mode devices constant disconnecting / reconnecting

Postby Anki » Wed Apr 22, 2015 5:06 am

This bug still happens when encryption is turned off. This is a serious bug, can we please have some attention on this?

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: AP mode devices constant disconnecting / reconnecting

Postby ESP_Faye » Wed Apr 22, 2015 9:51 am

Hi,

sorry that we can't replicate your problem, can you offer more details about your test steps ? which SDK are you using ?

Anki
Posts: 25
Joined: Thu Apr 09, 2015 3:00 am

Re: AP mode devices constant disconnecting / reconnecting

Postby Anki » Wed Apr 22, 2015 10:06 am

Hi Faye,

You can reproduce this problem using the same firmware I attached to this thread http://bbs.espressif.com/viewtopic.php?f=7&t=235&p=1457#p1457 compiled against the v1.0.1SDK (I'm sorry, I should have mentioned that in the original post)

Connect a Windows PC or Linux computer to the Espressif's wifi access point and watch the OS messages from UART1 and you will see the repeated join / leave messages.

Again, I am working to collect some wireshark captures and will attach when done.

Anki
Posts: 25
Joined: Thu Apr 09, 2015 3:00 am

Re: AP mode devices constant disconnecting / reconnecting

Postby Anki » Wed Apr 22, 2015 10:22 am

Espressif_Faye,

Kindly let me know what email address I can send network captures to? I don't want to post directly on the forum. Should I send to feedback@espressif.com?

Thank you

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: AP mode devices constant disconnecting / reconnecting

Postby ESP_Faye » Wed Apr 22, 2015 10:38 am

Hi,

Thanks for the reporting ,

with your test code ,we replicated your problem, we are working on it now.

Thanks again.

Anki
Posts: 25
Joined: Thu Apr 09, 2015 3:00 am

Re: AP mode devices constant disconnecting / reconnecting

Postby Anki » Sat Apr 25, 2015 7:59 am

Please let me know if there is anything else I can do to help debug this issue. Have you found any insights into the issue? Thank you.

Anki
Posts: 25
Joined: Thu Apr 09, 2015 3:00 am

Re: AP mode devices constant disconnecting / reconnecting

Postby Anki » Tue Apr 28, 2015 5:41 am

Doing more investigating on my own, this bug appears to be related to (or at least affected by) the beacon interval.

I tried increasing the beacon interval from default 100ms to 200ms and the problem occurred much more frequently. Then I tried decreasing the beacon interval to 33ms and now the problem seems to have gone away.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: AP mode devices constant disconnecting / reconnecting

Postby ESP_Faye » Mon May 04, 2015 3:46 pm

Hi,

sorry for the late reply, structure softap_config need to be initialized.

Code: Select all

   
struct softap_config ap_config;
os_memset(&ap_config, 0, sizeof(ap_config));


or

Code: Select all

   struct softap_config config;
   wifi_softap_get_config(&config); // Get config first.


you could refer to softAP config demo http://bbs.espressif.com/viewtopic.php?f=21&t=227

Thanks for your interest in ESP8266 !

Who is online

Users browsing this forum: No registered users and 31 guests