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.

CC2340R5: CC2340, continuous TX test

Part Number: CC2340R5
Other Parts Discussed in Thread: CC2640

Hi,

we want to have the chip to do TX continuously with different TX output power. we are able to do that using 3pin jtag through debugger. is there a way to do that through UART? the setup of our board is as follows

SOC----- UART------ CC2340 ----- 3Pin JTAG

  • Hi,

    Thank you for reaching out.

    The host_test example and basic_ble_ptm example available in the newer SDKs do support this possibility: https://www.ti.com/tool/download/SIMPLELINK-LOWPOWER-F3-SDK

    The following HCI commands should be particularly helpful for you:

    Mode

    Command

    Parameters

    Comments

    N/A

    HCI_Reset

    none

    To reset the device

    Continuous Wave

    (Non-signaling)

    HCIExt_EndModemTestCmd

    none

    To terminate a modem test

    HCIExt_ModemTestTxCmd

    Modulation, Channel

    For the 1M PHY only

    HCIExt_ModemTestRxCmd

    Channel

    HCIExt_EnhancedModemTestTxCmd

    Modulation, PHY, Channel

     

    HCIExt_EnhancedModemTestRxCmd

    PHY, Channel

     

    HCIExt_SetTxPowerDbmCmd

    dBm, fraction (not used)

    To set TxPower for modem tests

    DTM

    (Signaling)

    HCI_LE_TestEnd

    none

    To terminate a DTM test

    HCI_LE_TransmitterTest

    Channel, Data Length, Data

    For the 1M PHY only

    HCI_LE_ReceiverTest

    Channel

    HCI_LE_EnhancedTransmitterTest

    Channel, Data Length, Payload, PHY

    Payload should be selected between DTM standard formats (PRBS9, 0x0F, 0x55, etc.)

    This command may raise a benign error in BTool that can be disregarded.

    HCI_LE_EnhancedReceiverTest

    Channel, PHY, modulationIndex

     

    HCIExt_SetMaxDtmTxPowerDbmCmd

    dBm, fraction (not used)

    To set TxPower for DTM tests

    I recommend leveraging BTool to send the UART commands.

    Please let me know if you need additional guidance here.

    Best regards,

  • thanks for your reply, by using the latest SDK, these commands work, besides these, may I know whether the RX command can count how many packages are being received?

  • in CC2640 we use code: 04 0E 06 01 1F 20 00 to end the test and count total packet received. can this apply to CC2340?

  • Hi,

    I would recommend referring to https://www.ti.com/lit/swra737

    For the moment the app note only mentions CC26xx devices, but the same is applicable to CC23xx devices. (Just make sure to use the functions mentioned before to change the TxPower).

    I hope this will help,

    Best regards,

  • Hi Clement,

    based on the application note you provided, the end test command on page 8 will give a summary of the test, which include packet counting on CC2640. I don't think CC2340 provide any summary of the test. could you please help check how to read packet received during RX test?

  • Hi,

    I confirm CC2340 provide the same summary.

    Please see the screenshots below:

    Best regards,