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

sd_ble_gap_tx_power_set doesn't work on scanning in central role

I am testing about tx power level on nRF5_SDK_15.3.0_59ac345 with nRF52840.

I have some confusing about sd_ble_gap_tx_power_set() function.

In peripheral advertising mode,

I can see the RSSI value reduced on nRF connect App after use sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_advertising.adv_handle, -40)

but In Central scan mode,

I call the api like below 2-cases and then start scanning.

     case1: sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_SCAN_INIT , 0, -40);

     case2: sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_SCAN_INIT , 0, 8);

my nRF52840 device can find nearby peripheral advertising device,

but two case are get same peripheral RSSI values.

I thought that changing the scanner's power level would result in different RSSI values, but is this misunderstanding?

please let me know exactly usage about sd_ble_gap_tx_power_set  and BLE_GAP_TX_POWER_ROLE_SCAN_INIT 

 

Related