Beacon Timeout 200: bcn_timout,ap_probe_send_start

If you are asking a question, please follow this template:

  1. My goal is: [describe your goal]
    stable running application.

  2. My actions are: [describe your actions - code, commands, etc]
    let my application run for a longer timer -> beacon errors arise more often

  3. The result I see is: [show the result - log, etc]
    After letting run my device for some hours these Beacon error messages arise more often. The Device disonnects sometimes after 5min of connected time and up to 45min connected time, before disconnecting with the beacon error.

From the moment of the message: bcn_timout,ap_probe_send_start
Until: mgos_wifi.c:136 WiFi STA: Connected, BSSID 8c:3b:ad:0a:73:28 ch 11 RSSI -59
the device always needs around 35-36 sec. as “reconnect time”.

Disconnect Message:

May 18 15:37:54.074] bcn_timout,ap_probe_send_start
[May 18 15:37:54.987] main.c:1217 Systemtime: 2020-05-18 15:37:55
[May 18 15:37:54.992] main.c:1221 free min ram: 14864
[May 18 15:37:55.986] main.c:1217 Systemtime: 2020-05-18 15:37:56
[May 18 15:37:55.992] main.c:1221 free min ram: 14864
[May 18 15:37:56.577] ap_probe_send over, rest wifi status to disassoc
[May 18 15:37:56.582] state: 5 -> 0 (1)
[May 18 15:37:56.583] rm 0
[May 18 15:37:56.584] pm close 7
[May 18 15:37:56.585] mg_ssl_if_mbedtls.c:35 0x3fff189c mbedtls_ssl_flush_output() returned -78 (-0x004e)
[May 18 15:37:56.592] mg_ssl_if_mbedtls.c:35 0x3fff189c mbedtls_ssl_write_record() returned -78 (-0x004e)
[May 18 15:37:56.600] mg_ssl_if_mbedtls.c:35 0x3fff189c mbedtls_ssl_send_alert_message() returned -78 (-0x004e)
[May 18 15:37:56.608] mgos_mqtt.c:167 MQTT Disconnect
[May 18 15:37:56.612] mgos_mqtt.c:511 MQTT connecting after 2124 ms
[May 18 15:37:56.619] mgos_wifi.c:119 WiFi STA: Disconnected, reason: 200
[May 18 15:37:56.626] mgos_net.c:82 WiFi STA: disconnected
[May 18 15:37:56.631] main.c:931 Disconnected
[May 18 15:37:56.635] mgos_net.c:86 WiFi STA: connecting
[May 18 15:37:56.745] scandone
[May 18 15:37:56.747] mgos_wifi.c:119 WiFi STA: Disconnected, reason: 201
[May 18 15:37:56.752] mgos_net.c:82 WiFi STA: disconnected
[May 18 15:37:56.757] main.c:931 Disconnected

  1. My expectation & question is: [describe your expectation and your question]
    Does any body has an idea why this Beacon errors occur?
    What could be the reason for this disconnecting Problem of my device?

Thanks for help in advance.

1 Like

I also figured out, that this problem only happens, when the modem sleep is enabled. Anybody an idea why this happens only on sleep mode and how to prevent? Not using the sleep mode is not an option, because I need the reduced power consumption.

1 Like