This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Set TX power on an NRF52833

Hi,

I try to set the TX power of the NRF52833 to the maximum possible power level, but somehow nothing seems to affect it.

I first tried to change it in the sdk_config.h from 0dBm to +4dBm, but it seems not to affect it. Then I discovered, that the default

signal strength from radio_config.h is RADIO_POWER_NRF_0DBM, so I replaced it everywhere with RADIO_POWER_NRF_POS8DBM,

but also this did not affect the power level when measured with a mobile phone. 

I have two questions now:

  • How can I properly adjust the power level to constant maximum power?
  • How it comes the NRF52833 has +8dBm, but this seems not adjustable from the sdk_config.h?

Kind Regards,

Sebastian

Parents
  • Hi Sebastian

    To set the TX power level, you have to call the function "sd_ble_gap_tx_power_set(), which is defined in ble_gap.h. If you're using SoftDevice S140, there should not be any issues setting the TX power to 8dBm here. You can check out the ble_app_proximity example to see how it is used in a main.c file.

    Best regards,

    Simon

  • Am I right with the assumption, that when I set the advertiser TX power level "sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_adv_handle, power_level)", it will automatically set the power level also for connection, since in ble_gap.h is a note: @note When a connection is created it will inherit the transmit power from the initiator or advertiser leading to the connection.

Reply
  • Am I right with the assumption, that when I set the advertiser TX power level "sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_adv_handle, power_level)", it will automatically set the power level also for connection, since in ble_gap.h is a note: @note When a connection is created it will inherit the transmit power from the initiator or advertiser leading to the connection.

Children
No Data
Related