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-Q1: About the response time of HCI cmd

Part Number: CC2340R5-Q1
Other Parts Discussed in Thread: CC2340R5,

Hi TI

   We are developing 2340R5-Q1 bluetooth to do some RF test. And We want to confirm with you about after we send HCI cmd, if we do not recieve the response from dut within how long time will reminds us timeout information,

   Like below, at- 10:32:40.115 I send  <Tx>  cmd 01 1D FC 01 00, and at 10:32:42.872, it sent me an error. So I konw, within about 2.757s, RX cmd should be recieve

   [1] : <Info> - 10:32:39.921
Port opened at 2024/4/27 上午 10:32:39
--------------------------------------------------------------------
[2] : <Tx> - 10:32:40.115
-Type : 0x01 (Command)
-OpCode : 0xFC1D (HCIExt_ResetSystemCmd)
-Data Length : 0x01 (1) byte(s)
Type : 0x00 (0) (Chip Reset)
Dump(Tx):
0000:01 1D FC 01 00 .....
--------------------------------------------------------------------
[3] : <Error> - 10:32:42.872
Message Response Timeout
Name = HCIExt_ResetSystemCmd
OpCode = 0xFC1D
Tx Time = 10:32:40.115
--------------------------------------------------------------------
[4] : <Warning> - 10:32:42.875
Device Reset Timeout
Device May Not Function Properly

     In our Host- test code, if there is any setting can be change for HCI cmd response time, within how long can be OK? It may help us to do the Factory test, beacause we need to be sure our dut will have ennough time to response hci cmd.

     And How to merge basic Ble FW and Host test FW, if you have any Ideas, please let us know, thanks.

     Our sorrunding:

     CCS: V12.6.0

      SDK example: simplelink_lowpower_f3_sdk_7_40_00_64

      project: host_test_LP_EM_CC2340R5_freertos_ticlang

      hci cmd: 

     send: 01 1E 20 03 00 25 00 

     recieve: 04 0E 04 01 1E 20 00

     Best Regards,

     Annie

  • Hello Annie, 

    Instead of merging BLE firmware and the host test firmware, please look into using Production Test Mode instead. 

    Additionally, expect a response on Tuesday about the HCI command response time. 

    Thanks, 

    Isaac

  • Hi Isaac

         We try to import PTM FW and its HCI cmd work OK by UART. Thanks for your help, it is very useful for us.

          What's more, Later we will try to use LIN interface instead of UART to send HCI cmd, and if you know something about that, could you share us?

          And also the response time of HCI cmd we need to know and make the next step of the project.

          Best Regards,

          Annie

          

  • Hello Annie, 

    We do not support LIN on CC2340R5-Q1. 

    To change the HCI command response time, you will have to use HCI tester. This allows you to automate HCI commands for testing. I will include a script here showing your command with a different response time.

    Below I will attach the script, in the script I send the ResetSystemCmd, then wait for 10 seconds until there is a response timeout.  The Wait_HCI_Vendor_Specific_Event command allows for customization of the timeout period. There are also command specific wait commands depending on the HCI command. 

    Additionally, I will include a file used to populate the command library in HCI tester. 

    Tester_HCILib_CC26xx_6_41_00_17.xml

    Send_HCI_EXT_ResetSystemCmd 0
    Wait_HCI_Vendor_Specific_Event 5000, 

    Let me know if this helps! 

    Thanks, 

    Isaac

  • Hi Isaac,

         We will try to use HCI tester to set the time. You tell us so much detail about how to change hci cmd time, it is really what we need now, thank you so much! 

    Best Regards,

    Annie