This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2652P7: HCI_EXT_SET_TX_POWER to support both 6dBm and 14dBm

Part Number: CC2652P7

HCI_EXT_SET_TX_POWER supports below power levels, among which HCI_EXT_TX_POWER_P2_14_DBM_P4_6_DBM to HCI_EXT_TX_POWER_P2_18_DBM_P4_10_DBM represent different power levels for P-2 and P-4 LaunchPads to my understanding.

HCI_EXT_TX_POWER_0_DBM
HCI_EXT_TX_POWER_1_DBM
HCI_EXT_TX_POWER_2_DBM
HCI_EXT_TX_POWER_3_DBM
HCI_EXT_TX_POWER_4_DBM
HCI_EXT_TX_POWER_5_DBM
HCI_EXT_TX_POWER_P2_14_DBM_P4_6_DBM
HCI_EXT_TX_POWER_P2_15_DBM_P4_7_DBM
HCI_EXT_TX_POWER_P2_16_DBM_P4_8_DBM
HCI_EXT_TX_POWER_P2_17_DBM_P4_9_DBM
HCI_EXT_TX_POWER_P2_18_DBM_P4_10_DBM
HCI_EXT_TX_POWER_P2_19_DBM
HCI_EXT_TX_POWER_P2_20_DBM

Now a customer is testing their custom board with CC2652P7, and needs to test both 6-10dBm and 14-18dBm TX power. But with the existing parameters we can only set power to either 6dBm or 14dBm.

Is there a way to modify this API to support both 6-10 and 14-18 dBm? Or is there other low-level API to set the TX Power?

Best regards,

Shuyang

  • Hi Shuyang,

    The hardware's matching circuit of each LaunchPad is optimized for a specific TX power region, whether it is 6 to 10 dBm for the P-4 or 14 to 20 dBm for the P-2.  Furthermore, the internal PA is only capable of a programmable range of 6 dB (Section 7.11 of the Datasheet) and thus a range between 6 and 14 dBm is not feasible.  You will therefore need to have both txPowerTable_2400_pa5_10 and txPowerTable_2400_pa5_20 built and selected during start-up (stack_main -> setBleUserConfig -> llUserConfig.txPwrTblPtr   = userCfg->boardConfig->txPwrTbl -> .txPwrTbl      = &appTxPwrTbl ->

    txPwrTbl_t appTxPwrTbl = {
                               (txPwrVal_t*)RF_BLE_txPowerTable,
                               NUM_TX_POWER_VALUES,  // max
                               DEFAULT_TX_POWER};    // default

    Where RF_BLE_txPowerTable is defined as txPowerTable_2400_pa5_10 or txPowerTable_2400_pa5_20 and RF_BLE_TX_POWER_TABLE_SIZE is TXPOWERTABLE_2400_PA5_10_SIZE or TXPOWERTABLE_2400_PA5_20_SIZE.

    Regards,
    Ryan