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.

CC2340R2: HCI Receiver Test Question

Expert 3750 points
Part Number: CC2340R2
Other Parts Discussed in Thread: CC2541, CC2340R5

Tool/software:

Hi team, 

For the HCI_LE_ReceiverTestCmd() I typically see 0x21 for the number of packets received. I am not in a chamber, so I assume the radio is picking up signals on the frequency that I configured the radio (which is 2402 MHz – channel 0) in my current environment. Therefore, if I went to a more controlled environment like a chamber where I can control RF environment, I would expect the number of packets received to increase or decrease. Is this correct?  Do you know how long the LE Receiver Test runs once it is started? Does it run until LE Test End is sent (although the number of packets returned will be zero)? Or does it run for a fixed duration?

Is the implementation of the LE Test End command different in the CC2340 vs the CC2541? In our previous design with the CC2541 we would call HCI_LE_ReceiverTestCmd() and then call HCI_LE_TestEndCmd(). HCI_LE_TestEndCmd would return the number of packets received during the LE Receiver Test. But it seems the CC2340 operates differently - HCI_LE_TestEndCmd returns the number of packets received.

The CC2541 design is about 12 years old so things may have changed. If that is the case, we just need to communicate the change to the rest of the team and update our documentation.

Best,

Luke

  • Hi !

    The number of received packets should not change in a controlled RF environment, unless your current environment is very noisy and causes packet loss. This is because the packet count of the TestEndCmd only accounts for the packets that have the correct format of a Direct Test Mode packet.

    The LE Receiver test does not run for a fixed amount of time. Instead, the receiver runs for until it receives a LE_Test_End command.

    This can happen in two different way :
    - Either the transmitter runs in Continuous Mode, and it will continue sending packet until the HCI_LE_TestEndCmd function is called.
    - The exact number of packets to transmit has be set through the use of HCI_EXT_SetDtmTxPktCntCmd, and the transmitter will send exactly this number of packets.

    By default, the Continuous Mode is used. I suspect that the difference you observe between the CC2340R5 and the CC2541 might be that the CC2541 uses the second method of having a fixed number of packet as its default. If you wish to use the first mode, you can call HCI_EXT_SetDtmTxPktCntCmd with a parameter of 0.

    If you want to read more about Direct Mode Testing, you can read the Bluetooth specification and our user guide.

    Kind regards,
    Maxence