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.

How to use HCI_SendCommandCompleteEvent()

Hello,

I have a question about function HCI_SendCommandCompleteEvent() in hci_ext_app.c . It's included in BLE-CC2540-1.1 sample program.
I find description in hci_c_event.h that says "This generic function sends a Command Complete or a Vendor Specific Command Complete Event to the Host." .
What does "Host" mean?  PC application like BTOOL ?
If so, is this function useful only in using Network Processor Configuration ?
When I create software in Single-Device Configuration, shouldn't I use this function ?

Thanks in advance.

Best Regards,
Masashi.

  • The term "host" in Bluetooth refers to the higher levels of the stack (the "controller" refers to the lower levels of the stack). The call to HCI_SendCommandCompleteEvent is necessary to make the network processor application (HostTestRelease) function properly. If this call were not there, in BTool you would not be seeing the "command complete" events, which are needed for the network processor to function properly.

    There should not be any reason to call this function in a single-device configuration.