芯片采用ESP-32-WROOM,程序用了example示例中BluFi和WiFi-mesh自组织两个,在BluFi示例WiFi连接成功的回调中调用了WiFi-mesh的初始化和启动,出错显示:
Error! Should enable WiFi modem sleep when both WiFi and Blutooth are enabled!!!!!!
请问这个问题如何解决,查了资料是低功耗模式设置的问题,但没看到WiFi-mesh关于这块在哪处理
WiFi-mesh 和蓝牙同时启动,运行时出错重启
-
- Posts: 8
- Joined: Wed Apr 22, 2020 3:09 am
Re: WiFi-mesh 和蓝牙同时启动,运行时出错重启
使用API
/**
* @brief Set current WiFi power save type
*
* @attention Default power save type is WIFI_PS_MIN_MODEM.
*
* @param type power save type
*
* @return ESP_OK: succeed
*/
esp_err_t esp_wifi_set_ps(wifi_ps_type_t type);
/**
* @brief Set current WiFi power save type
*
* @attention Default power save type is WIFI_PS_MIN_MODEM.
*
* @param type power save type
*
* @return ESP_OK: succeed
*/
esp_err_t esp_wifi_set_ps(wifi_ps_type_t type);
Re: WiFi-mesh 和蓝牙同时启动,运行时出错重启
是我打开方式的问题吗?仍然没有工作XieWenxiang wrote: ↑Wed Mar 17, 2021 8:47 am使用API
/**
* @brief Set current WiFi power save type
*
* @attention Default power save type is WIFI_PS_MIN_MODEM.
*
* @param type power save type
*
* @return ESP_OK: succeed
*/
esp_err_t esp_wifi_set_ps(wifi_ps_type_t type);
I (785) wifi_init: WiFi IRAM OP enabled
I (785) wifi_init: WiFi RX IRAM OP enabled
I (805) wifi:Set ps type: 1
I (805) wifi:mode : sta (60:55:f9:57:44:38)
I (805) wifi:enable tsf
I (805) [mwifi, 298]: esp-mdf version: v1.0-156-gcf50274-dirty
I (815) wifi:mode : sta (60:55:f9:57:44:38) + softAP (62:55:f9:57:44:38)
I (815) wifi:Total power save buffer number: 16
I (825) wifi:Init max length of beacon: 752/752
I (825) phy: chan:1,max_power:80
I (825) phy: chan:2,max_power:80
I (835) phy: chan:3,max_power:80
I (835) phy: chan:4,max_power:80
I (845) phy: chan:5,max_power:80
I (845) phy: chan:6,max_power:80
I (845) phy: chan:7,max_power:80
I (855) phy: chan:8,max_power:80
I (855) phy: chan:9,max_power:80
I (855) phy: chan:10,max_power:80
I (865) phy: chan:11,max_power:80
I (865) phy: chan:12,max_power:80
I (875) phy: chan:13,max_power:80
I (875) phy: chan:14,max_power:80
I (875) wifi:Init max length of beacon: 752/752
I (895) mesh: <nvs>read layer:0, err:0x1102
I (895) mesh: <nvs>read assoc:0, err:0x1102
I (895) mesh: [IO]disable self-organizing<reconnect>
I (895) wifi:Set ps type: 0
E (895) wifi:Error! Should enable WiFi modem sleep when both WiFi and Bluetooth are enabled!!!!!!
abort() was called at PC 0x420ee4fd on core 0
0x420ee4fd: pm_set_sleep_type at ??:?
Core 0 register dump:
MEPC : 0x403808c0 RA : 0x40389ee2 SP : 0x3fcb9bf0 GP : 0x3fc93c00
0x403808c0: panic_abort at /home/wzk/esp/esp-idf/components/esp_system/panic.c:402
0x40389ee2: __ubsan_include at /home/wzk/esp/esp-idf/components/esp_system/ubsan.c:294
TP : 0x3fc81948 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130
S0/FP : 0x00000004 S1 : 0x3fcb9c54 A0 : 0x3fcb9c1c A1 : 0x3fcb9c52
A2 : 0x00000000 A3 : 0x3fcb9c49 A4 : 0x00000001 A5 : 0x3fc9c000
A6 : 0x7a797877 A7 : 0x76757473 S2 : 0xffffffff S3 : 0x3ff1b5a8
Who is online
Users browsing this forum: No registered users and 49 guests