wifi报错 wifi:m f probe req l=0

ESP_Gargamel
Posts: 653
Joined: Wed Nov 14, 2018 8:45 am

Re: wifi报错 wifi:m f probe req l=0

Postby ESP_Gargamel » Thu Jun 24, 2021 9:51 am

可能你可以在 disconnect 的 event 里处理下,如果 reason 为 no ap found,可以考虑重启。这里出现这个 log,肯定是扫不到路由了。

airee888
Posts: 13
Joined: Fri Jun 04, 2021 5:49 am

Re: wifi报错 wifi:m f probe req l=0

Postby airee888 » Fri Jun 25, 2021 2:37 am

ESP_Gargamel wrote:
Thu Jun 24, 2021 9:51 am
可能你可以在 disconnect 的 event 里处理下,如果 reason 为 no ap found,可以考虑重启。这里出现这个 log,肯定是扫不到路由了。
这样处理的话,如果ap主动断开,比如ap断电情况,esp32岂不是会反复重启?

ESP_Gargamel
Posts: 653
Joined: Wed Nov 14, 2018 8:45 am

Re: wifi报错 wifi:m f probe req l=0

Postby ESP_Gargamel » Fri Jun 25, 2021 3:00 am

这是个问题。
另外,可尝试下 esp_wifi_stop + esp_wifi_deinit,在重新起 wifi。
最好能有可复现问题的最小工程,可做近一步 debug。

airee888
Posts: 13
Joined: Fri Jun 04, 2021 5:49 am

Re: wifi报错 wifi:m f probe req l=0

Postby airee888 » Fri Jun 25, 2021 3:21 am

最小工程还没跑死呢

其实出现wifi:m f probe req l=0时,不光是wifi,蓝牙也崩了,无法连接,手机搜不到广播,也连接不到另一个gatt server
所以只起wifi还不行。

airee888
Posts: 13
Joined: Fri Jun 04, 2021 5:49 am

Re: wifi报错 wifi:m f probe req l=0

Postby airee888 » Fri Jun 25, 2021 3:30 am

我发上来一个log,也就是wifi:m f probe req l=0 错误第一次出现时的log上下文,在557行。
可以看到,先是gattc断开,然后是596行 wifi bcn timout,然后才反复出现wifi:m f probe req l=0

之后,wifi和ble全部崩溃
Attachments
log.txt
(252.07 KiB) Downloaded 280 times

zhangzuoyi
Posts: 5
Joined: Wed Jun 30, 2021 2:17 am

Re: wifi报错 wifi:m f probe req l=0

Postby zhangzuoyi » Wed Jun 30, 2021 2:25 am

我也遇到类似的问题,wifi连接时间久了会出现找不到蓝牙的情况,报同样的错

zhangzuoyi
Posts: 5
Joined: Wed Jun 30, 2021 2:17 am

Re: wifi报错 wifi:m f probe req l=0

Postby zhangzuoyi » Sat Oct 23, 2021 2:27 am

ESP_Gargamel wrote:
Fri Jun 25, 2021 3:00 am
这是个问题。
另外,可尝试下 esp_wifi_stop + esp_wifi_deinit,在重新起 wifi。
最好能有可复现问题的最小工程,可做近一步 debug。
我尝试这么做了,主要代码如下:
esp_wifi_stop();
esp_wifi_deinit();
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
ESP_ERROR_CHECK( esp_wifi_init(&cfg) );
ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) );
ESP_ERROR_CHECK( esp_wifi_start() );

有的时候可以解决这个问题,有的时候会失败(接下去都会失败),日志如下。是否有办法检测到重启wifi失败?
W (43830617) wifi:TX Q not empty: 500, TXQ_BLOCK=0
W (43830617) wifi:force witi stop
I (43830617) wifi:flush txq
I (43830617) wifi:stop sw txq
I (43830617) wifi:lmac stop hw txq
W (43830617) wifi:sw tx 0 state not idle, potential error!
W (43830627) wifi:force sw tx 0 state to idle, ebuf flag=412
I (43830627) wifi:Deinit lldesc rx mblock:10
I (43831657) wifi:wifi driver task: 3ffbc274, prio:23, stack:6656, core=0
I (43831667) wifi:wifi firmware version: c7d0450
I (43831667) wifi:wifi certification version: v7.0
I (43831667) wifi:config NVS flash: enabled
I (43831667) wifi:config nano formating: disabled
I (43831677) wifi:Init data frame dynamic rx buffer num: 32
I (43831677) wifi:Init management frame dynamic rx buffer num: 32
I (43831687) wifi:Init management short buffer num: 32
I (43831687) wifi:Init dynamic tx buffer num: 32
I (43831697) wifi:Init static rx buffer size: 1600
I (43831697) wifi:Init static rx buffer num: 10
I (43831707) wifi:Init dynamic rx buffer num: 32
I (43831707) wifi_init: rx ba win: 6
I (43831717) wifi_init: tcpip mbox: 32
I (43831717) wifi_init: udp mbox: 6
I (43831727) wifi_init: tcp mbox: 6
I (43831727) wifi_init: tcp tx win: 5744
I (43831727) wifi_init: tcp rx win: 5744
I (43831737) wifi_init: tcp mss: 1440
I (43831737) wifi_init: WiFi IRAM OP enabled
I (43831747) wifi_init: WiFi RX IRAM OP enabled
I (43831757) wifi:mode : sta (c4:dd:57:c9:81:c4)
I (43831757) wifi:enable tsf
E (43831757) wifi:sta is connecting, return error
I (43834897) MQTT_SAMPLE: wifi disconnected
I (43838027) MQTT_SAMPLE: wifi disconnected
I (43841167) MQTT_SAMPLE: wifi disconnected
W (43843587) wifi:m f probe req l=0
I (43844307) MQTT_SAMPLE: wifi disconnected
W (43844307) wifi:m f probe req l=0
W (43844547) wifi:m f probe req l=0
W (43844787) wifi:m f probe req l=0
W (43845037) wifi:m f probe req l=0

zmaxwellz
Posts: 1
Joined: Mon Jan 17, 2022 3:37 am

Re: wifi报错 wifi:m f probe req l=0

Postby zmaxwellz » Mon Jan 17, 2022 3:44 am

请问这个问题有可靠解决方案了么

cashchew
Posts: 5
Joined: Wed Sep 18, 2019 4:14 pm

Re: wifi报错 wifi:m f probe req l=0

Postby cashchew » Fri Mar 25, 2022 3:49 pm

我也有类似问题。有解决方案么?
Attachments
wifi-wdt-timeout.txt
(28.58 KiB) Downloaded 105 times

Who is online

Users browsing this forum: No registered users and 17 guests