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.

LP-EM-CC2340R5: HCI TXpower cmd doesn't work

Part Number: LP-EM-CC2340R5
Other Parts Discussed in Thread: CC2340R5

Hi expert,

Hardware:  CC2340R5 pg2.0 evm + host test example in 7.10.0.35 sdk + btool.

- use cc2340r5 evm to connect the other device.

-use energy trace to measure the current ~2.38mA

-set different Txpower by using btool

                          -OpCode         : 0xFC01 (HCIExt_SetTxPowerCmd)

- the current from energy trace is the same.

it seems that txpower hci command doesn't work.

by the way, when I set HCI txPower command, there has only tx and no rx command complete event.

Is that correct?

[110] : <Tx> - 03:04:39.432
-Type : 0x01 (Command)
-OpCode : 0xFC01 (HCIExt_SetTxPowerCmd)
-Data Length : 0x01 (1) byte(s)
Tx Power : 0x09 (9) (HCI_EXT_TX_POWER_0_DBM)
Dump(Tx):
0000:01 01 FC 01 09 .....
--------------------------------------------------------------------

BR,

frank

  • Hi Frank,

    The command to change txPower on the CC23XX is now  HCI_EXT_SetTxPowerDbmCmd(txPower, fraction). Where txPower is the desired txPower in dbm. For example, if the desired txPower is 5dbm, then you would call HCI_EXT_SetTxPowerDbmCmd(5, 0);

    Best Regards,

    Jan

  • Jan,

    I cannot find the command from BTool.

    I use MISC_GenericCommand. it shows below.

    Does it mean that I cannot use HCI TX power command to for this release?

    [195] : <Warning> - 10:03:45.334
    The Last 2 Byte(s) In The Following Message Were Not Decoded
    (Message Has More Than The Expected Number Of Data Bytes)
    --------------------------------------------------------------------
    [196] : <Tx> - 10:03:45.328
    -Type : 0x01 (Command)
    -OpCode : 0xFC2F (Unknown OpCode 0xFC2F)
    -Data Length : 0x02 (2) byte(s)
    Raw : 00 00
    Dump(Tx):
    0000:01 2F FC 02 00 00 ./....
    --------------------------------------------------------------------
    [197] : <Rx> - 10:03:45.348
    -Type : 0x04 (Event)
    -EventCode : 0x00FF (HCI_LE_ExtEvent)
    -Data Length : 0x05 (5) bytes(s)
    Event : 0x0401 (1025) (HCIExt_SetTxPowerCmdDone)
    Status : 0x00 (0) (SUCCESS)
    CmdOpCode : 0xFC2F (Unknown OpCode 0xFC2F)
    Dump(Rx):
    0000:04 FF 05 01 04 00 2F FC ....../.
    --------------------------------------------------------------------

    BR,

    frank

  • Hi,

    The name of the command is now HCI_EXT_SetTxPowerDbmCmd(), the old command HCIExt_SetTxPowerCmd() is no longer supported. Thank you for letting us know that the command does not seem to show up in BTool. Taking a step back, can you clarify what you are trying to use the command for? Is this simply to set the txPower to a certain value or to perform some RF testing?

    Best Regards,

    Jan