espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.62k stars 7.28k forks source link

examples/bluetooth/esp_ble_mesh/ble_mesh_wifi_coexist: How to adjust power levels? (IDFGH-10799) #12010

Open rretanubun opened 1 year ago

rretanubun commented 1 year ago

Is your feature request related to a problem?

We are using the ble_mesh_wifi_coexist example program to obtain RF certification testing. We received a request to provide a method to set the power level of the WLAN/BLE radio.

I looked at the provided APIs here:

Unless I am missing something, other than esp_wifi_set_ps(WIFI_PS_MAX_MODEM) I do not see an obvious method to set the radio power level. Even then, based on the documentation, this will only influence the Wifi time slice of the coexistence operation mode.

Describe the solution you'd like.

A console cli to get and set the radio power levels for WLAN and BLE Radio for this example project.

Describe alternatives you've considered.

No response

Additional context.

No response

gnameg commented 1 year ago

Perhaps, you can try to use this API

esp_err_t esp_ble_tx_power_set(esp_ble_power_type_t power_type, esp_power_level_t power_level);
MaxwellAlan commented 1 year ago

Hi @rretanubun Do you want related to change the WLAN tx power in runtime? Usually we can limit the max tx power by config the menuconfig->PHY->Max WiFi TX power. Thanks.

rretanubun commented 1 year ago

Hi alan, changing TX power at runtime for wifi will be ideal, in case you know is there a reason it is only available via menu config (and thus require a different build each time)? Thanks for your time!

On Fri., Aug. 11, 2023, 1:00 p.m. alanmaxwell, @.***> wrote:

Hi @rretanubun https://github.com/rretanubun Do you want related to change the WLAN tx power in runtime? Usually we can limit the max tx power by config the menuconfig->PHY->Max WiFi TX power. Thanks.

— Reply to this email directly, view it on GitHub https://github.com/espressif/esp-idf/issues/12010#issuecomment-1674246754, or unsubscribe https://github.com/notifications/unsubscribe-auth/APSWESAU7BKP4DNL5LCBPGDXUXDAHANCNFSM6AAAAAA3CSDCJE . You are receiving this because you were mentioned.Message ID: @.***>