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

Setting Tx Power nRF52832

I have a custom beacon with: nRF5_SDK_12.3.0_d7731ad I am using: \examples\ble_peripheral\ble_app_beacon With: \pca10040\s132

When I change the value: int8_t tx_power = 4; OR int8_t tx_power = -40;

I get no change in the range or the RSSI value?

My advertising_init Code:

static void advertising_init(void)

{ uint32_t err_code; ble_advdata_t advdata; ble_advdata_t srdata; uint8_t flags = BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED;

ble_advdata_manuf_data_t manuf_specific_data;

manuf_specific_data.company_identifier = APP_COMPANY_IDENTIFIER;

    int8_t tx_power                 = 4;
advdata.p_tx_power_level        = &tx_power;
Parents
  • Thanks, I will try this in the morning. What should I set "m_tx_pwr = ...;" to to get the best possible range (tx power)?

    In ble_gap.h there is: #define BLE_GAP_AD_TYPE_TX_POWER_LEVEL 0x0A /**< Transmit power level. (accepted values are -40, -30, -20, -16, -12, -8, -4, 0, 3, and 4 dBm)*/ Should this not be set? It is 0x0A HEX which is decimal 10 - but 10 is not an accepted value??

Reply
  • Thanks, I will try this in the morning. What should I set "m_tx_pwr = ...;" to to get the best possible range (tx power)?

    In ble_gap.h there is: #define BLE_GAP_AD_TYPE_TX_POWER_LEVEL 0x0A /**< Transmit power level. (accepted values are -40, -30, -20, -16, -12, -8, -4, 0, 3, and 4 dBm)*/ Should this not be set? It is 0x0A HEX which is decimal 10 - but 10 is not an accepted value??

Children
No Data
Related