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.

CC2640R2F: PTM for RX / TX test via HCI

Part Number: CC2640R2F

Tool/software:

Hi Team,

My customer is using TI CC2640R2F, SDK:simplelink_cc2640r2_sdk_5_30_00_03

They are using sample code: simple_observer w/ PTM to perform Rx/Tx test in the BLE stack, not BLE5 stack.

PS: the simple_observer 

The following is the RX test procedure:

Step

Purpose

Command

1

Reset the device

HCI_Reset

2

Device enter Rx mode and start the test 

HCIExt_ModemTestRxCmd

Reading RSSI while testing

HCI_ReadRssiCmd

3

Stop the test?
Stop the test and reset the device?

HCI_LE_TestEnd?HCI_EXT_EndModemTestCmd?

However, PTM does not enable all the commands. Among others, the HCI_ReadRSSI() command is not enabled in PTM mode.

Please help to provide comments:

1. for Rx test, if  the above RX test procedure need to be modified? 

    If yes, please help to provide recommend test steps.

2. for RSSI test of RX , if PTM did not enable this command.

    Do we have other way to get the value of RSSI?

3. PTM does not enable all the commands. Please help to check if TI has a list about supported HCI command for PTM,

4. PTM can be enable both for the example code of BLE stack and BLE5 stack in SDK. 

   The supported HCI commands are the same between BLE stack and BLE5 stack ?

   Which one is recommended  for PTM to run RX / TX test via HCI?

Thanks.

  • Hi, 

    1. for Rx test, if  the above RX test procedure need to be modified? 

    For the test you are running, the HCI_ReadRSSI() cannot be used (even if you would have the whole DTM software) as HCI_ReadRSSI() will only give the RSSI of Bluetooth LE packets - here you are using a continuous wave. 

    HCI_EXT_EndModemTestCmd() should be used to terminate the test (because this is a modem test, not a DTM test).

    2. for RSSI test of RX , if PTM did not enable this command.

    There is no way to measure the RSSI of the continuous wave signal. You should use DTM signals - or run the test the other way around, with the CC2640R2F being the transmitter.

    4. PTM can be enable both for the example code of BLE stack and BLE5 stack in SDK. 

       The supported HCI commands are the same between BLE stack and BLE5 stack ?

       Which one is recommended  for PTM to run RX / TX test via HCI?

    Your question makes me wonder if the usage of PTM has been well understood. 

    Please see https://software-dl.ti.com/simplelink/esd/simplelink_cc2640r2_sdk/5.30.01.11/exports/docs/blestack/ble_user_guide/html/ble-stack-3.x/hci.html#host-controller-interface-hci 

    To answer your question, PTM is meant to enable production test on a device without a need to reflash it after the test is completed. This means, PTM should be enabled on the same stack as the stack used in the final product (for you it seems blestack).

    Also, if PTM is not a requirement, you should consider using other approaches as they will be more flexible. 

    If not already done, you can consult https://www.ti.com/lit/swra737 

    I hope this will help,

    Best regards, 

  • Hi Clément , 

    Thanks for your comment.