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.

HCI_EXT_ModemTestTxCmd not working

Other Parts Discussed in Thread: CC2541, CC2540

Hello,

I am trying to set up a continuous tx stream at a particular freq for FCC testing using CC2541 and CC2540. I have invoked HCI_EXT_ModemTestTxCmd() to generate modulated at 2440 (,19).  I do not see any packets on the TI Packet Sniffer.  Reading an old conversation about this it was mentioned to invoke HCI_EXT_EnablePTMCmd() prior to the test command which I also have done.   llState is equal to 0x00 until the modem test command is issued in which case llState now equals 0x0b.  Is that the correct value for llState?  Does anybody have any ideas of where I am doing this improperly?

thanks,
Rick

  • Try running modemTestRXCmd on the other device to verify things are working. 

    Here is some wiki info.

    http://processors.wiki.ti.com/index.php/FCC_ETSI_Test

    -Greg

  • Hi Rick
    I'm facing the same issue, did you succeed in executing a continuous tx stream on the selected frequency ?

    Thanks

    Jerome

  • Hi Jerome,
    do you have some more details on what you are experiencing? Is this the only thing that does not work, what HW and SW are you using etc?
  • Hi
    I'm using CC2541 with BLE stack 1.4.0, I developed a BLE peripheral, started my project from simpleBleperpheral code.
    Trying to setup a continuous stream on a selected frequency for EMC testing.
    I call HCI_EXT_ModemTestTxCmd() as described in the above mentioned link, the return value of this call is 0 (success)
    I do not see any packet on the TI Packet Sniffer
    After reading different posts on this, I tried calling HCI_EXT_EnablePTMCmd(), I also tried stopping advertising before calling HCI_EXT_ModemTestTxCmd(), but no way.
    Any help would be greatly appreciated.
    Thanks
  • Hi,
    HCI_EXT_ModemTestTxCmd() will send a continuous modulated signal, not packets, so you should not see it with the Packet Sniffer. You will see it using a spectrum analyzer though. Are you trying to send packets or do you want the continuous modulated signal?
  • Thanks
    What I want is to be able to pass EMI tests, the lab is requesting me to setup the IC at max power on 3 different frequencies.
    So I guess the modulated signal is enough, I do not need to send packets.
    Can you please confirm the following:
    - HCI_EXT_EnablePTMCmd() should be called prior to any call to HCI_EXT_ModemTestTxCmd() ?
    - Advertising should be stopped before HCI_EXT_ModemTestTxCmd() ?

    The above is not mentioned in processors.wiki.ti.com/.../FCC_ETSI_Test, but I read somewhere this was requested ?
    Thanks
  • Jerome,
    No advertising or scanning. HCI_EXT_EnablePTMCmd(), once, followed by HCI_EXT_ModemTestTxCmd(HCI_EXT_TX_MODULATED_CARRIER,???) and do not forget to call HCI_EXT_EndModemTestCmd() prior to invoking your next test.

    Rick
  • Hi,

    You don't really need to call EnablePTMCmd() as this is intended for external test-commands via UART/SPI/etc. But yes, you kind of have to choose whether to use the test modes or have normal operation, like in the code example for the PTM mode.

    Best regards,
    Aslak

  • Thanks for your answers.
    We are going to test in the lab very soon, I'll let you know if this works.
    Jerome