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.

CC2642R: Read Tx power level value

Part Number: CC2642R
Other Parts Discussed in Thread: SYSCONFIG

Hi,

thanks for the response at RE: CC2642R: How to identify the Tx power level in BLE App.

We checked our default power level in sysconfig, its shows 0 dBm, but when we read via API it shows -20 dBM, should we consider -20dBM has the current Tx power value ?

thanks,

Rajendra

  • Hi Rajendra,

    • The HCI command HCI_LE_ReadTxPowerCmd reads the minimum and maximum supported Tx Power. This seems to work properly for you - I mean the command returns -20 dBm and +5 dBm.

    • You can use the function HCI_ReadTransmitPowerLevelCmd to read the transmit power level for a specific connection. The syntax to use is: 
      HCI_ReadTransmitPowerLevelCmd(connectionHandle /*replace with your connection handle*/,
                                    HCI_READ_CURRENT_TX_POWER_LEVEL);

    As a side note, all these commands work the same way. You should execute them, then an event is sent by the BLE stack - you apparently did this properly the first time. Make sure to review the documentation of each function.

    I hope this will help,

    Kind regards,

  • Hello, 

    I tried the HCI_LE_ReadAdvChanTxPowerCmd command and I see that the value returned is '0'. As the default Tx power is set to '0' in sysconfig. It seems to be in line with that. Could you check if we are using this correctly?

  • Hi,

    It seems you are using the function properly. However, only one byte (octet) is relevant.

    For additional details, please consult the Bluetooth Core Specifications:

    • BLUETOOTH CORE SPECIFICATION Version 5.2 | Vol 4, Part E, §7.8.6      (LE Read Advertising Physical Channel Tx Power command)
    • BLUETOOTH CORE SPECIFICATION Version 5.2 | Vol 4, Part E, §7.3.35     (Read Transmit Power Level command)
    • BLUETOOTH CORE SPECIFICATION Version 5.2 | Vol 4, Part E, §7.8.74    (LE Read Transmit Power command)

    Best regards,