Page 1 of 1

I want to know about the coexistence use of WIFI/BLE on the ESP32

Posted: Mon Aug 07, 2023 3:51 am
by y-fujii
  I want to know about the coexistence use of WIFI/BLE on the ESP32.
I heard that there is CONFIG_ESP_COEX_SW_COEXIST_ENABLE Enable option in menuconfig.
Is that available if I select it in menuconfig ?
  However, I am using the ESP-S3 development board to create an application that accesses both Wifi and BLE in the Arduino IDE development environment.
In the configuration on the Arduino IDE, I cannot find any configurations about CONFIG_ESP_COEX_SW_COEXIST_ENABLE.
  I am not sure if I can enable the CONFIG_ESP_COEX_SW_COEXIST_ENABLE option on the Arduino IDE. Does anyone know how to check if the ESP32 CONFIG_ESP_COEX_SW_COEXIST_ENABLE option is enabled on the Arduino IDE? Could anyone please tell me how to do that?
Additionally, When I checked the project file, it was located in user directory below: AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\tools\sdk\esp32s3
I found that “CONFIG_ESP32_WIFI_SW_COEXIST_ENABLE=y” and “CONFIG_SW_COEXIST_ENABLE=y” are in sdkconfig file. And I also found that “#define CONFIG_ESP32_WIFI_SW_COEXIST_ENABLE 1”
and “#define CONFIG_SW_COEXIST_ENABLE CONFIG_ESP_32_WIFI_SW_COEXIST_ENABLE” are in sdkconfig.h file. Does it mean that these options are enabled in the current SDK?

Re: I want to know about the coexistence use of WIFI/BLE on the ESP32

Posted: Mon Aug 07, 2023 6:34 am
by ESP_Sprite
Note that coexistence is always enabled. That switch switches between software and hardware coexistence. Software coexistence is a bit more advanced but uses more resources.

Re: I want to know about the coexistence use of WIFI/BLE on the ESP32

Posted: Tue Aug 08, 2023 4:19 am
by y-fujii
Thank you for your reply. Can I ask you more about this stuff? I want to ask you four questions.
The first question is that I want you to tell me which document I should refer to.
The second question, can you tell which coexistence mode it's running from the information I presented?
Is it software one or is it hardware one?
The third question, could you please tell me details on the functionality of the option (CONFIG_ESP_COEX_SW_COEXIST_ENABLE)? I expect the following differences.
If disabled, Wi-Fi processing and BLE communication processing must be performed separately.
When enabled, BLE communication can be performed by interrupt processing during Wi-Fi processing.
The fourth question is how to enable software coexistence? I'm developing with the Arduino IDE and I'm not sure how to enable the settings. Could you help me please?

Re: I want to know about the coexistence use of WIFI/BLE on the ESP32

Posted: Wed Aug 09, 2023 2:41 am
by y-fujii
Thank you for your message. Now I understand that the software coexistence option (CONFIG_ESP_COEX_SW_COEXIST_ENABLE) is selected by default in the Arduino IDE.
But there was no option matching CONFIG_ESP_COEX_SW_COEXIST_ENABLE within the Arduino IDE, I didn't know that option was selected. Could you help me where I can tell which option is selected, please?
  In my research, I did found "CONFIG_ESP32_WIFI_SW_COEXIST_ENABLE=y" and "CONFIG_SW_COEXIST_ENABLE=y" in the sdkconfig file in my user directory in AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\tools\sdk\esp32s3. However, I couldn't find the option "CONFIG_ESP_COEX_SW_COEXIST_ENABLE" that I'm talking about.
Now I have no hint so I want you to tell me which document I should refer to.