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.

BLE Test Mode

Other Parts Discussed in Thread: CC2540

I am looking at how to do some RF test on the CC2540.  Also, for BT qualification or FCC certification, I need to put the CC2540 BLE chip in a test mode so its performances can be measured.  I looked into all documents including the user guide, the SW developer guide and the data manual, but I could not find the information about how to set the CC2540 into a test mode.

 

Can you please help me find the required information?

  • It is possible to put the CC2540 into direct test mode by using the following HCI functions:

    HCI_LE_ReceiverTestCmd

    HCI_LE_TransmitterTestCmd

    HCI_LE_TestEndCmd

    These functions implement the BLE direct test mode commands defined in the BT 4.0 spec. The function prototypes can be found in hci.h.

  • Li Chen71282 said:

    We need to know how to use the HCI_LE_TransmitterTestCmd() functions.

    I’m writing the BLE direct test mode project based on the HOstTestRelease-CC2540EM Master project.

    I’m adding code below in the end of HCI_EXT_App_Init() function:

    HCI_LE_TransmitterTestCmd(0,HCI_DIRECT_TEST_MAX_PAYLOAD_LEN,HCI_DIRECT_TEST_PAYLOAD_PRBS9);

    Will this simple added line work for the transmit Direct Test Mode test? Thanks!

    BLUETOOTH SPECIFICATION Version 4.0 [Vol 2]

    Part E HOST CONTROLLER INTERFACE FUNCTIONAL SPECIFICATION

    HCI Commands and Events

    7.8.29 LE Transmitter Test Command (page 1100 of 2302)

    HCI_LE_Receiver_Test
    HCI_LE_Transmitter_Test
    HCI_LE_Test_End

    Here is another related post.

    BLE CC2540 Output Spectrum

  • Hi Willis,

    My name is Kyle Lee from Samsung Electronics,

    I am working on Bluetooth LE Direct  Test Mode now and got a problem for Receiver test.

    We are actually using a lot of BT chipsets and one of these is TI, but actually we are using BlueZ stack.

    So I would like to ask about Receiver test on BlueZ level if you are possible.

    I saw your comments about LE test mode via Googling. I think you are an expert on this.

    The problem is that we don't know how to get the PER and the Packet counts against  'LE Receiver Test'.

    Actually I can verify that this cmd has sent to the chipset but I don't know the result.

    so if you know how to parse the result against LE receiver test, please give me some hints.

    It will be very helpful,

    My email is kyonghun.lee@samsung.com

    Please help me~

    BR,

    Kyle Lee

  • I implemented:

    HCI_LE_ReceiverTestCmd

    HCI_LE_TransmitterTestCmd

    HCI_LE_TestEndCmd

    I don't know how to get the packet report after issuing HCI_LE_ReceiverTestCmd followed by HCI_LE_TestEndCmd. HCI_LE_TransmitterTestCmd works fine.

  • Does this help?

    /*******************************************************************************
     * @fn          PHY_RawGetRxData
     *
     * @brief       Gets the number of successfully received packets, the number
     *              of packets received with a CRC error, and the last received
     *              RSSI (as an unsigned integer).
     *
     * input parameters
     *
     * @param       None.
     *
     * output parameters
     *
     * @param       numRxPkts    - Number of successfully received packets.
     * @param       numRxErrPkts - Number of received packets with a CRC error.
     * @param       rxRSSI       - Last received RSSI (as an unsigned integer).
     *
     * @return      None.
     */
    void PHY_RawGetRxData( uint16 *numRxPkts,
                           uint16 *numRxErrPkts,
                           uint8  *rxRSSI );

  • mark   thankyou

  • Leo Bodnar said:

    void PHY_RawGetRxData( uint16 *numRxPkts,
                           uint16 *numRxErrPkts,
                           uint8  *rxRSSI );

    Hi Leo,

    Is this the same information returned from HCI_EXT_PER?  (11.21 HCI Extension Packet Error Rate)

  • Is there a GUI tool to send the direct test mode commands.   I see commands in BTool but they are not the same.   I have seen the commands in an extension of the HCI Test tool but that tool seems to have limited com port capability (goes up to com6 and I'm at com30)

    I'm using the CC2540 USB Dongle from the CC2541DK-MINI kit and need to do the Core 4.0 RF tests.

  • I was able to figure this out.    The com port does show up in HCI Test.  I had made a mistake on the setup.

    And the HCI test does have the library for HCI LE specific commands.

    My question now is why are these not in BTool?