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: HCI commands to test center frequency and Tx power

Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2640

Hello!

I am trying to determine the actual carrier frequency and the power output of the CC2640R2F radio.

So far I have compiled and programmed the test host application and setup BTool to work with it (I am using the CC2640R2F launchpad to test the setup). The communication works fine and I can set parameters using the BTool GUI. I have (limited) access to a spectrum analyzer and a network vector analyzer.

What I am wondering is which HCI commands I have to use to get a continuous signal from the BLE radio.

  • Is that possible? Does such a command exist?
  • If not what is the best alternative to determine the carier frequency?
  • What would then be the correct way to tune the oscillator frequency in order to tune the RF carrier frequency?

So far I could not find a TI document that describes the vendor specific commands beyond stating the parameters. I would need at least a little description of what the command actually does, as I am new in Bluetooth and HCI.

Thanks a lot for any pointers!

Cheers

JR

  • Hi JR,

    Is the only goal of this test to get a continuous signal of the CC2640R2? If so, I would recommend exploring the option of using SmartRF Studio 7 as you can have continuous TX/RX. The following shows an example screen capture of the SmartRF Studio 7:

    Does this fall in line with what you are looking for?

    HCI Commands

    In regards to possible HCI commands, the following HCI Extension Vendor Specific API covers HCI commands in more detail. You can possibly use HCI_EXT_ModemTestTxCmd/HCI_EXT_ModemTestRxCmd or HCI_EXT_EnhancedModemTestTxCmd/HCI_EXT_EnhancedModemTestRxCmd to run a continuous transmitter/receiver test.  

    Tuning HF Oscillator

    The following Application Report specifically section 6.4 Tuning the HF Oscillator. for more information on how to tune the oscillator.

    Best Regards,

    Jenny

  • Dear Jenny,

    that looks exactly like what I was looking for! :-)

    Could you please point me to a resource where it describes how I can connect the CC2640 board to the PC and what kind of FW I need to (maybe) have on it running? I was guessing the serial connection would work with the host test firmware, but had no initial luck with that.

    I found the software docu, but couldnt find anything about how to connect my board.

    Thanks!

    JR

  • Hi JR,

    Glad to hear that this is what you're looking for! Sure, are you referring to how to connect the Launchpad to use SmartRF Studio 7? If so, you can use a micro USB connecter to connect the Launchpad to your PC. In terms of FW, if you are using the SmartRF Studio, you will not need to pre-program any firmware as this application will handle it for you.

    Once opening SmartRF Studio 7 and connecting your Launchpad to the PC, locate the List of Connected Devices as seen in the image below:

    Select BLE mode when the Select CC2640R2F mode window pops up.

    Best Regards,

    Jenny

  • Hi Jenny!

    Thanks! I played around a bit and noticed that RFStudio7 needs the JTAG interface, which fits to your recommendation to use the programming USB port on the launchpad.

    For my custom board that is not really an option, due to the size limitation and influence of the connector on the antenna - yes the board is tiny compared to the connector. :-)

    So I will stick to the HCI for most of my tests.

    I am very happy having learned about the RFStudio7! It makes my life so much easier to test the other side of the BLE connection with predefined data packets.

    Thanks a gain!

    JR