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.

Does hostTest support all standard LE HCI commands?

Other Parts Discussed in Thread: CC2650, BLE-STACK

Hi,

I am trying to use CC2650 to implement advertisement and scan features. Currently I am using hostTest sample. After reading the hostTest code, I am feeling it does not support ALL standard LE HCI commands.

For example, I am trying to set LE advertising parameters. The code does not handle this HCI command.

TI does provide a vendor specific HCI command GAP_UpdateAdverstingData/GAP_MakeDiscoveable for advertising. But the question is that no place to set the advertising min/max.  According to BT spec, the controller shall continue advertising until the host issues a stop. If I cannot set the adv interval min/max, how does the controller know when to send adv out?

  • Hi Ziyang,

    Host Test does support all standard HCI commands as listed in the TI Vendor Specific HCI Guide, Section 8.2 (version included with BLE-Stack v2.2.0). Please note the limitations in this section w.r.t certain events not returned/consumed by the BLE Stack.  When you say the code does not handle this HCI command, what are you referring to?

    You can refer to Appendix H of the TI BLE Software Developer's guide for a list of the supported HCI commands. I believe the one you are interested in would be HCI_LE_SetAdvParamCmd. Please let me know if this does not solve your problem.

    Edit: Clarified supported LE HCI commands in the TI VS HCI Guide.

  • Hi Rachel,

    1. In the hostTest stack source code, ble_dispatch.c, function processICallLL(). This function is to process incoming HCI LE command. There is no place to process HCI_LE_SET_ADV_PARAM command.
    2. I am using BTool to run the test. I do not see any HCI command for HCI_LE_SET_ADV_PARAM.
    3. In the swru393.pdf (developer guide), it mentions that the HCI_LE_SetAdvParamCmd is not able to be called from APP. HostTest actually has an APP which is talking to Host and talking to BLE stack. Does it mean host cannot send HCI command to HostTest APP to call this function?

    Ziyang
  • Hello Ziyang,

    Note that, as specified in the TI Vendor Specific HCI Guide, certain LE HCI commands will have their respective events consumed by the BLE Stack (Host) component.

    You can use the GAP Set Parameter HCI Extension command to configure ADV parameters. Please see the corresponding Command Parameters description in the guide.

    Best wishes
  • Hi Ziyang,

    If you are trying to implement a network processor for a peripheral device, you may also want to consider using the SimpleNP example instead of HostTest. See the wiki for more information about the difference between HostTest and SimpleNP (http://processors.wiki.ti.com/index.php/CC2640_BLE_Network_Processor). The SimpleNP API Guide is included in the docs folder of your SDK install.