同时启用ble和wifi mesh后,程序出错,打印
Error! Should enable WiFi modem sleep when both WiFi and Bluetooth are enabled
依照提示在初始化wifi时将wifi ps设置为WIFI_PS_MIN_MODEM依旧存在该问题
按如下方式在启动mesh后再次调用esp_wifi_set_ps(WIFI_PS_MIN_MODEM),然后再启动ble,问题貌似解决了,但是不确定是否存在隐患
...
MDF_ERROR_ASSERT(mwifi_start());
MDF_ERROR_ASSERT(esp_wifi_set_ps(WIFI_PS_MIN_MODEM));
...
start ble
...
coredump
0x400929bf: invoke_abort at /home/lqh/esp/esp-mdf/esp-mdf-master-new-idf/esp-idf/components/esp32/panic.c:136
0x40092b41: abort at /home/lqh/esp/esp-mdf/esp-mdf-master-new-idf/esp-idf/components/esp32/panic.c:171
0x400fb22d: coex_init at ??:?
0x400d1cdb: esp_phy_rf_init at /home/lqh/esp/esp-mdf/esp-mdf-master-new-idf/esp-idf/components/esp32/phy_init.c:524
0x400d1d21: esp_phy_rf_init at /home/lqh/esp/esp-mdf/esp-mdf-master-new-idf/esp-idf/components/esp32/phy_init.c:524
0x400d1f30: esp_phy_load_cal_and_init at /home/lqh/esp/esp-mdf/esp-mdf-master-new-idf/esp-idf/components/esp32/phy_init.c:670
0x4016d310: esp_bt_controller_enable at /home/lqh/esp/esp-mdf/esp-mdf-master-new-idf/esp-idf/components/bt/bt.c:1529
0x4013b1f3: gatts_init at /home/lqh/esp/LING_MC/main/bluetooth/gatt_server/gatt_server.c:930
(inlined by) gatts_task at /home/lqh/esp/LING_MC/main/bluetooth/gatt_server/gatt_server.c:1035
Environment
Problem Description
同时启用ble和wifi mesh后,程序出错,打印 Error! Should enable WiFi modem sleep when both WiFi and Bluetooth are enabled 依照提示在初始化wifi时将wifi ps设置为WIFI_PS_MIN_MODEM依旧存在该问题
按如下方式在启动mesh后再次调用esp_wifi_set_ps(WIFI_PS_MIN_MODEM),然后再启动ble,问题貌似解决了,但是不确定是否存在隐患 ... MDF_ERROR_ASSERT(mwifi_start()); MDF_ERROR_ASSERT(esp_wifi_set_ps(WIFI_PS_MIN_MODEM)); ... start ble ...
coredump
0x400929bf: invoke_abort at /home/lqh/esp/esp-mdf/esp-mdf-master-new-idf/esp-idf/components/esp32/panic.c:136 0x40092b41: abort at /home/lqh/esp/esp-mdf/esp-mdf-master-new-idf/esp-idf/components/esp32/panic.c:171 0x400fb22d: coex_init at ??:? 0x400d1cdb: esp_phy_rf_init at /home/lqh/esp/esp-mdf/esp-mdf-master-new-idf/esp-idf/components/esp32/phy_init.c:524 0x400d1d21: esp_phy_rf_init at /home/lqh/esp/esp-mdf/esp-mdf-master-new-idf/esp-idf/components/esp32/phy_init.c:524 0x400d1f30: esp_phy_load_cal_and_init at /home/lqh/esp/esp-mdf/esp-mdf-master-new-idf/esp-idf/components/esp32/phy_init.c:670 0x4016d310: esp_bt_controller_enable at /home/lqh/esp/esp-mdf/esp-mdf-master-new-idf/esp-idf/components/bt/bt.c:1529 0x4013b1f3: gatts_init at /home/lqh/esp/LING_MC/main/bluetooth/gatt_server/gatt_server.c:930 (inlined by) gatts_task at /home/lqh/esp/LING_MC/main/bluetooth/gatt_server/gatt_server.c:1035