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.

CC2640R2F: Host test app, SET TX power command

Part Number: CC2640R2F

Hi,

I using lauchpad with Host test example application for DTM.  I want to set the TX power command to 5dBm.

I used HCI_EXT_SetTxPowerCmd(HCI_EXT_TX_POWER_5_DBM) to set to 5dBm in host_test_app.c file after ICall_registerApp in HostTestApp_init function.

But during EMC test the TX power level was showing 0dBm only.

I have modified the code to have the DEFAULT_TX_POWER as 12(5dBm) in ble_user_config.c file along with the above changes and also set the TX power level using Btool as given below. But there is no change in power level. I sthere any command to read the TX power level in Btool.

  • Hi Karthick,

    How was the power level measured in the test, and what HW were you testing on?

    Regards,
    Fredrik
  • Hi Frederik K,

    we where measuring TX power level inside our EMC chamber and found that we are only sending with 0dBm.

    As measurement in our EMC chamber is quite limited we are now trying to see a difference in the current consumption of the CC2640R2  between 0dbM TX Power Level and +5 dBm TX Power Level.

    For both cases 0dBm as well +5bBm  we see the same current consumption of ~7mA when setting the device to "HCI_LE_Transmitter Test"    

    Changes in code as described above do not result in a different current consumption!

    The HCI commando  "HCI_EXT_TX_POWER_5_DBM"  do as well not lead to a change in power consumption!

    HCI command flow is like this:

    Reset all:                                                          01030C00                                  Answer: 04 0E 06 01 1F 20 00 00 00

    (Optional) TX Power Level increase           01 01 FC 01 0C                         Answer: 04 FF 05 01 04 00 01 FC

    HCI_LE_Transmitter Test                              011E2003000A00                    Answer: 04 0E 04 01 1E 20 00

    HW we use is a SaBLE-xR2 BLE module (CC2640R2) .

                  

  • Hi Dominik,

    if you use the original TX Power Defines at HCI_EXT_SetTxPowerCmd(TX_POWER_5_DBM); or HCI_EXT_SetTxPowerCmd(5);you are actually setting it to -6 DBM. Refer to TxPowerTable[] at ble user config.c.

    At ble_user_config.h apply this code fix. The original are the one commented out which is not right. The TX Power Defines at the bottom are according to "TI BLE Vendor Specific HCI Reference Guide Version 3.1.0"

     

    -kel

  • Hi Markel,

    After making changes as you mentioned above it started working.

    Thank you:)

  • Hi kel,

    I edited your post becasue what you write is not correct. Please stop posting this on the forum.

    The argument to HCI_EXT_SetTxPowerCommand is not the TX_POWER_x_DBM defines, but rather HCI_EXT_TX_POWER_x_DBM. This is clear fro the documentation: HCI_EXT_SetTxPowerCmd.

    As you can see from the original post, the OP is both using the correct argument as well as setting the right value for the default level (12 = 0x0C).

    The changes you proposed do not explain why it now works.

    Regards,
    Fredrik
  • No problem, thanks for correcting me.