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: HCIExt_SetTxPowerCmd and Btool

Part Number: CC2642R

I working with a customer who is experiencing the following issue:

We are using TI BTool to send HCIExt_SetTxPowerCmd to a CC2652R1 microcontroller and set its TX Power for RF Tests, but the TX power does not change.

Could you advise what is needed to have the HCIExt_SetTxPowerCmd working properly with the BTool?

The following is the setup I have:

    • BTool v1.42.13 (BLE5)
    • CC26x2R LaunchPad with CC2652R1 microcontroller
    • Ble5_host_test_cc26x2R1lp_app
    • Cc26x2_sdk_2_30_00_34

I am reading the RSSI with SmartRF Studio v7 (2.11.0) and another CC26X2R Launchpad.

The sequence of HCI commands with BTool is the following:

    1. Send HCI_Reset or HCIExt_ResetSystemCmd
    2. Send HCIExt_SetTxPowerCmd
    3. Send HCIExt_EnhancedModemTestTxCmd

Any thoughts?

Thanks,

Stuart

  • Hi Stuart,

    The query is about sending HCI commands to the Bluetooth stack in a CC2652R1 microcontroller.
    The BTool (PC Application from TI) is used to send the HCI commands through a serial port.
    The HCI commands that is not working is HCIExt_SetTxPowerCmd (it is not changing the Bluetooth RF TX Power).
  • HI Stuart,

    I will take a look at this once I'm back in the office on Monday and and get back to you.

    Best Regards,
    R.M
  • Hi Stuart,

    I just tried this and I am able to change the TX power with HCIExt_SetTxPowerCmd.
    Here's the tests I run (measure TX power with Spectrum Analyzer):
    1. HCIExt_EnhancedModemTestTxCmd, Modulated Carrier, 1Mbps PHY, CH 0 => Measure TX power = -0.3 dBm
    2. HCI_Reset
    3. HCIExt_SetTxPowerCmd, 5 dBm
    4. HCIExt_EnhancedModemTestTxCmd, Modulated Carrier, 1Mbps PHY, CH 0 => Measured TX power = 4.5 dBm
    5. HCI_Reset
    6. HCIExt_SetTxPowerCmd, -6 dBm
    7. HCIExt_EnhancedModemTestTxCmd, Modulated Carrier, 1Mbps PHY, CH 0 => Measured TX power = -6.1 dBm

    Setup:
    CC2652 Launchpad
    cc26x2_sdk_2_30_00_34
    BTool v1.42.13

    Best Regards,
    R.M
  • Hi R.M.,

    Are there any other actions required before performing the above 7 steps?

    Thanks a lot.

    René S.

  • Hi René,

    The only step was too flash the CC2652 Launchpad with the prebuild heximage ble5_host_test_cc26x2r1lp_app_FlashROM_Release.hex found in simplelink_cc26x2_sdk_2_30_00_34\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\hexfiles\cc26x2r1

    Do you get any error messages in BTool when running the commands?

    Best Regards,

    R.M

  • I noticed that I have to reset the lunchpad by pressing its reset switch before using the btool.
    When I do not perform such reset and BTool is started then the tool shows a timeout error (lunchpad does not respond to the initial HCI Reset command it receives).
    If the board is manually reset before the BTool is started then there is no error.
    This is the only error I get.

    Also I am compiling the host test project before flashing the Launchpad through Code Composer Studio 8.2.0.
    I will try an Spectrum Analyzer to check if the Power is changing .

    Thanks
  • Hi R.M.,

    I performed a test with a Spectrum Analyzer and verified that the RF output power indeed changes following the HCIExt_SetTxPwrCmd.
    This query may be closed.

    Thanks a lot.

    René S.
  • Hi Rene,

    Thank you for your feedback, good that it's working now.

    Best Regards,
    R.M