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.

CC2640: Defining Transmit Power and Selecting Channel

Part Number: CC2640


Hi Team,

We have a customer working with CC2640 trying to define the transmit power and put the module into a transmit mode on a specified channel.

Do we have any info in terms of what type of message these transmissions are sent out as? Customer is making the assumption that we should be able to sniff out the transmissions. They typically filter any sniffed packets for the MAC address of interest, but that requires defining the type of message (for example, indirect advertisement).

Another assumption is that setting this “transmit” mode requires the folllowing:
• Defining output power: HCI_EXT_SetTxPowerCmd
• Initiating Tx test: HCI_LE_Transmitter_Test
• Ending Tx test: HCI_LE_Test_End

Any info you can provide to confirm the above would be greatly appreciated. Thanks!

  • Hi SSF,

    If your customer is sending out packets using HCI_LE_Transmitter_Test start and End, these won't show up on the packet sniffer.

    These aren't really BLE advertisement packets, just PHY test packets. (Which may not get caught on the free TI Sniffer, you'll see these if you remove the background filter in other sniffers as undirected packets)

    You should be able to see the number of packets received when HCI_LE_Test_End is sent - other than that, you'll have to buy a sniffer that supports this.

    Regards,
    Rebel
  • Rebel, thank you, that helps. I can confirm functionality using current draw measurement and will try with spectrum analyzer.

    Along those lines, I am trying to run a Tx test manually and modify Tx power. I have confirmed functionality of HCI_LE_Transmitter_Test and HCI_LE_Test_End. However, if I want to change Tx power to 2dbm, I send command "HCI_EXT_SetTxPowerCmd" (or 0xFC010109), but don't see change in current draw. Is correct sequence: Set Tx Power -> Start Test -> Test End? Or are there other commands that must be sent to achieve this?

    Or perhaps the command is incorrect, but it seems like: Opcode = FC01; Tot Param Length = 01; Param = 09 (or 2dbm)

    Thank you,

    Genaro

  • Hi Genaro,

    It looks like the op code is correct, and the param looks fine.

    Did the return event show success?

    I don't see why your procedure wouldn't work, it should be fine!

    Regards,
    Rebel
  • Hey Rebel, 

    When sending the Tx Power command, I do not see a "success" returned. More confusingly, the module stops responding to the start test / end test commands. In other words, once i send HCI_EXT_SetTxPowerCmd, there is no response to subsequent commands. 

    Glad to know the op code and param look correct, at the least. Anything else I should check?

    Thanks,

    Genaro