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.

RTOS/CC2650: How to set Transmitted power in CC2650

Part Number: CC2650


Tool/software: TI-RTOS

Hi,

Is there any example usage of setting tx power output. I have come across command  HCI_EXT_SetTxPowerCmd(uint8 txPower), but it says that I have to put device in standby mode before I set this parameter. 

Also how can I check what is set transmit power? I am using project zero to test this function. 

  • Hi Bluto,

    If you are using the BLE Stack, the appropriate way to set output power is with HCI_EXT_SetTxPowerCmd().

    To read the TX power you can use HCI_LE_ReadAdvChanTxPowerCmd() . Despite the name it should also give you the TX power level when being in a connection.

    Regards,
    Fredrik
  • Thanks Fredrik,

    Will check it out. Do I need to put device in standby mode before changing Tx Power? Also will onboard pcb antenna will make any difference with +5db power output ? I tried changing it by changing default_tx_power level to 12 (from ble_user_config.c) but it did not make any difference to ble range. Do I need to use external antenna in order to us +5db power output?

    Thanks again

  • Hi Bluto,

    You do not have to put the device in Standby (where did you read that by the way?).

    The antenna will not affect the power level transmitted from the radio, it will just add a certain amount of antenna gain.

    Regards,
    Fredrik
  • Its given in icall_api.c file.  Found following comments

    /*******************************************************************************
    * This API is used to set this device's TX Power
    *
    * Note: This command is only allowed when the device's state is Standby.
    *
    * Public function defined in hci.h.
    */
    hciStatus_t HCI_EXT_SetTxPowerCmd(uint8 txPower)
    {
    return hciSendParamsCmd(HCI_EXT_SET_TX_POWER, txPower,
    0, 0, matchHciExtSetTxPowerCS);
    }