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.

CC2642R-Q1: DTM test command

Part Number: CC2642R-Q1

DTM can generally test continuous broadcast tests, modulation tests, packet sending and receiving tests, and RSSI tests. Which commands are used in these tests? There are too many API commands, and I don't know which one to use?

  • Hi,

    I would like to recommend the following application note for more information on DTM - Configuring Bluetooth LE devices for Direct Test Mode

    Also, here is a list of testing commands for convenience that might be relevant:

    Continuous broadcast tests:
    HCI_EXT_EnhancedModemHopTestTxCmd() which can be used to verify this device meets Japan’s TELEC regulations. 
    Use HCI_EXT_EnhancedModemTestRxCmd() before using the LL_ReadRssi() command.
    Use LL_ReadRssi() to read the RSSI during this test.
    Use LL_EXT_EndModemTest() to end this test.
    This test uses a modulated carrier. To test unmodulated, use HCI_EXT_EnhancedModemTestTxCmd() instead of HCI_EXT_EnhancedModemHopTestTxCmd().

    HCI_EXT_ModemHopTestTxCmd() - this one transmits at the default power level (0 dBm) unless you use HCI_EXT_SetTxPowerCmd() to set the power level.
    Use HCI_ReadRssi() to read the RSSI during this test.
    Use HCI_EXT_EndModemTest() to end this test.


    Packet sending and receiving tests:
    HCI_EXT_PacketErrorRateCmd() - returns the total number of packets received, the number of packets received with a CRC error, the number of events, and the number of    missed events.

    For your convenience I am including the location of the file(s) within the SDK that have more information on the commands outlined above: {YOUR_SDK_INSTALL_LOCATION}/docs/ble5stack/vendor_specific_guide/BLE_Vendor_Specific_HCI_Guide/hci_ext_api.html

  • I pass the interface HCI_EXT_PacketErrorRateCmd(), the host computer returns the Unknown Connection Identifier, how should I connect to the broadcast device?

  • Hi Jinzhen, 

    To use the specific command, it is really about what you want to test. 

    Could you elaborate what do you want to do, or which certification?

    BR. Albin

  • I would like to highlight to the process outlined in section 1 of this document - Configuring the CC2640 for Bluetooth® Direct Test Mode - which outlines steps to enable various DTM components. Please let me know if this is useful