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

Dynamically changing of Power level

Hello,

 

I am using nRF52840, SDK_16.0.0, SoftDevice S140 V7.0.1 and Segger for flashing the image. I am using ‘ble_app_blinky’.

 

I want to send packet with different Tx power levels over serial interface. I am using sd_ble_gap_tx_power_set() to change Tx power.

 

1) During advertisement packet, if there is a serial command to change Tx power level, will it take immediately by calling sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV).

2) Also once device is connected, it there is a serial command to change Tx power level, will it take immediately by calling sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_CONN) or do I need to reset.

 

Thanks & Regards

Vishnu Beema

Parents
  • Hi Simon,

    1) Your understanding is correct and even I implemented serial interface. My only query is based on current BLE state (Connected or Not-Connected whether can I call sd_ble_gap_tx_power_set() dynamically (Whenever command receives over serial interface).

    2) Also based on BLE state do I need to call sd_ble_gap_tx_power_set() using BLE_GAP_TX_POWER_ROLE_ADV and BLE_GAP_TX_POWER_ROLE_CONN.

    Thanks & Regards

    Vishnu Beema

Reply
  • Hi Simon,

    1) Your understanding is correct and even I implemented serial interface. My only query is based on current BLE state (Connected or Not-Connected whether can I call sd_ble_gap_tx_power_set() dynamically (Whenever command receives over serial interface).

    2) Also based on BLE state do I need to call sd_ble_gap_tx_power_set() using BLE_GAP_TX_POWER_ROLE_ADV and BLE_GAP_TX_POWER_ROLE_CONN.

    Thanks & Regards

    Vishnu Beema

Children
No Data
Related