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: PTM mode

Part Number: CC2340R5
Other Parts Discussed in Thread: SYSCONFIG,

Hi team,

Customer would like to add PTM into their project. From below link, it describes just to enable "PTM" option in sysConfig. However, it seems not work. Could you instruct how to enter PTM mode ? like press which button during Power on/Reset. 

https://dev.ti.com/tirex/explore/content/simplelink_lowpower_f3_sdk_7_10_00_35/docs/ble5stack/ble_user_guide/html/ble-stack-5.x/ptm-and-dtm.html

I also check "basic_ble_ptm" example with BTool. BTool cannot connect to CC2340R5. Please instruct how to enter PTM mode for "basic_ble_ptm" example. The Readme file is empty.

Thank you.

  • Hello Jerry,

    PTM mode should be working for the basic_ble_ptm example (note that not all HCI commands have been implemented yet). What errors or callback do you receive while sending HCI commands to the device.

    Kind Regards,

    Rogelio

  • Hi Rogelio,

    1. for basic_ble_ptm, how can I let CC23450R5 enter PTM mode ? Should I need to press BTN1 or BTN2 ? If I directly use BTool to test, the BTool shows "GAP Device Initialization Timeout".

    2. for data_stream example, how to integrate PTM feature ? Does customer just enable "PTM" option in sysConfig ? How to let device enter PTM mode ? by press BTN1 or BTN2 ?

  • Hi Jerry,

    for basic_ble_ptm, how can I let CC23450R5 enter PTM mode ? Should I need to press BTN1 or BTN2 ? If I directly use BTool to test, the BTool shows "GAP Device Initialization Timeout".

    For basic ble ptm I would make sure the ptm option is chosen in the syscfg file. For Btool the error is probably due to not resetting the device after connecting. I would again connect btool then reset the device and connect again.

    2. for data_stream example, how to integrate PTM feature ? Does customer just enable "PTM" option in sysConfig ? How to let device enter PTM mode ? by press BTN1 or BTN2 ?

    Unfortunately ptm is still not enabled in other examples atm.

    Kind Regards,

    Rogelio

  • Hi Rogelio,

    For basic ble ptm I would make sure the ptm option is chosen in the syscfg file. For Btool the error is probably due to not resetting the device after connecting. I would again connect btool then reset the device and connect again.

    Do you mean for basic_ble_ptm, after poewr on, FW will directly enter PTM mode directly ? We don't need to press any Button while power cycle ?
    However, I tried several times (reset device before connect BTool or connect Btool, then reset device and connect again), BTool always shows "shows "GAP Device Initialization Timeout".  Only with host_test FW, BTool can work.
    Is there any document about how to integrate PTM into existing project ?
  • Hi Jerry,

    I have tested it and was able to get some HCI running through btool. 

    Steps:

    1. Flash basic_ble_ptm onto launchpad

    2. Reset launchpad with button (honestly probably not necessary but better safe than sorry)

    3. Connect to btool

    4. Send HCIExt_ResetSystemCmd thats located in the Advanced commands.

    you should receive an event response.

    I will note that there are many hci commands that arent supported through ptm mode and unfortunately I dont have a list.

    If you want to do RF testing I would recommend using rfStudios in which we have a section in our userguide.

    Kind Regards,

    Rogelio

  • Hi,

    I tried both host_test and basic_ble_ptm, but both couldn't be connected with Btool.

    In basic_ble_ptm, the PTM option has been chosen in the syscfg file as follow:

    And we didn't modify any of the code or settings in both projects, either.

    In Btool, it showed errors as follow :

    As for the serial port settings:

    Please help to check if we had any configurations wrongly applied.

    Thanks.

    BR,

    YuWen

  • Hi Yuwen,

    Have you tested with CC2340R5 EVM ?

    Please make sure you choose the correct UART COM port.

    For host_test, BTool can run initialization process. But with basic_ble_ptm, BTool cannot run initlalization. You can set HCIExt_ResetSystemCmd and get response.

  • Hi Jerry,

    Thanks for helping.

    The issue has been solved.

    Thanks.

    BR,

  • Hi Rogelio,

    In TI CC23XX SDK user guide, it said "If the device powers up and goes into PTM mode (by a GPIO being held high or low or some other stimulus), the UART will then be used for DTM commands.", so should OEM implement some mechanism(detect some GPIO status before run main task) to enter PTM mode by call PTM_start ?

  • Hello,

    The user guide is referring to being able to toggle between ptm and regular application running. This is due to PTM mode having to use the UART to send HCI commands so if your application utilizes the UART you would need some sort of toggle to switch from application mode to PTM mode. The user guide is just stating this can be done by gpio inputs or other stimulus, however, this would need to be implemented in the application as it is not by default in the basic_ble_ptm example.

    Kind Regards,

    Rogelio