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

    I'm sorry, but I'm struggling to see what you want to do here. Do you want the nRF52 to change the TX power whenever a serial command (over UART, SPI, or TWI for example) is received? I don't think we have an example doing such a thing, but you should be able to make a command trigging the sd_ble_gap_tx_power_set() command. You can check out the UART peripheral example which makes the device print "Exit!" and do nothing if q or Q is received over UART.

    Best regards,

    Simon

Reply
  • Hi

    I'm sorry, but I'm struggling to see what you want to do here. Do you want the nRF52 to change the TX power whenever a serial command (over UART, SPI, or TWI for example) is received? I don't think we have an example doing such a thing, but you should be able to make a command trigging the sd_ble_gap_tx_power_set() command. You can check out the UART peripheral example which makes the device print "Exit!" and do nothing if q or Q is received over UART.

    Best regards,

    Simon

Children
No Data
Related