Page 1 of 1

bcn_timout occurs very often

Posted: Wed Jan 03, 2018 6:52 am
by hazardandy

I've been struggling with "bcn_timout" errors for the past few months on an ESP8266. Currently, I'm running on Mongoose-OS (mgos) ( which is built on nonos-sdk (specifically: ... 17b7da56c7).

With basic apps that just connect to wifi, and depending on the router I connect to, I can get disconnected nearly every 30 seconds. It will then reconnect successfully. With some routers I only drop out after 10 minutes, and some ESP modules only drop out after 10 minutes as well, but most commonly I have ESPs connecting to networks and dropping every 30-60 seconds.

Code: Select all

ap_probe_send over, rest wifi status to disassoc

I have the Arduino port build from approximately Oct 2016 and that doesn't experience this issue. I have the esp-open-rtos build from approximately Jan 2017 and that doesn't experience this issue either. I am not certain which sdk version either of those are running on.

I believe this is an SDK issue because of the wifi packets I'm seeing the device send must be generated at quite a low level. When running on Arduino, the device connects to the AP and then is quite. For mgos running on the nonos-sdk version above, the ESP is transmitting many Null packets requesting "power management bit = 1", followed by many Probe Requests which the AP then doesn't respond to. Then, the ESP just gives up and sends a pile of Disassociate commands and then goes through the reconnecting process. This can be seen in the following picture:


Here is a summary of some of the tests I have performed to try to narrow this problem down:

I really want to resolve this issue, and I'm looking for any ideas and support. If there are any tests I can perform to generate more data to help resolve the problem, let me know.