Question regarding WIFI_EVENT_STA_BEACON_TIMEOUT

axellin
Posts: 196
Joined: Mon Sep 17, 2018 9:09 am

Question regarding WIFI_EVENT_STA_BEACON_TIMEOUT

Postby axellin » Sat Apr 17, 2021 3:08 am

My device sometimes got below messages:
I (5511) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (36087) wifi:bcn_timout,ap_probe_send_start
I (70524) wifi:bcn_timout,ap_probe_send_start
...

But the device seems still working.
Is there any bad side-effect when device shows "wifi:bcn_timout"?
(I'm not sure if the timeout is AP's problem or the STA's problem)

When test with v4.4-dev-946-ge37fd0746e5a, now the device also
sends WIFI_EVENT_STA_BEACON_TIMEOUT event.

I don't see any example in the esp-idf tree about using WIFI_EVENT_STA_BEACON_TIMEOUT event.
My question is what should I suppose to do after receive WIFI_EVENT_STA_BEACON_TIMEOUT event?
If I can just ignore WIFI_EVENT_STA_BEACON_TIMEOUT event (since the device seems still working), why the system sends WIFI_EVENT_STA_BEACON_TIMEOUT event?

BTW, sometimes the wifi re-connect as below.

Code: Select all

I (2559201) wifi:bcn_timout,ap_probe_send_start
I (2561706) wifi:ap_probe_send over, resett wifi status to disassoc
I (2561706) wifi:state: run -> init (c800)
I (2561707) wifi:pm stop, total sleep time: 28748763 us / 2557864870 us

W (2561712) wifi:<ba-del>idx
I (2561715) wifi:new:<4,0>, old:<4,1>, ap:<255,255>, sta:<4,1>, prof:1
My testing device is very closed to the AP, I'm wondering why it got bcn_timeout
and re-connect.

Who is online

Users browsing this forum: Bing [Bot], MicroController and 71 guests