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.

Difference between two HCI functions

Hi,

What is the difference between following two function:

1. HCI_EXT_ClkDivOnHaltCmd( HCI_EXT_ENABLE_CLK_DIVIDE_ON_HALT );

2. HCI_EXT_HaltDuringRfCmd(HCI_EXT_HALT_DURING_RF_DISABLE);

Also, is it going to effect Advertisement in any case?

Your quick help is appreciated.

Thanks,

Dhaval

  • Can anyone please help me on this?

  • No one from TI can help me on this!!

    Please reply.

  • Hello Dhaval,

    HCI_EXT_ClkDivOnHaltCmd decide if the system clock should be divided if the CPU is halted during RF operations. The HCI_EXT_HaltDuringRfCmd command controls if the CPU should be halted or not. Halt is used to lower the peak current consumption during RF operations. If you disable it it should not affect advertisements.

  • Thanks for your quick reply.

    So, it will affect advertisement if is Enabled. But in our case I see a reverse behavior i.e. we had an issue where sometimes device was not advertising and in that case HCI_EXT_HaltDuringRfCmd was Disabled. But when I enabled it, I haven't observed that issue till now.

    Also, when it is enabled, we have seen sample loss during capturing from sensor. Why this is happening?

  • Hello,

    What kind of project are you using?

    So you are saying that the device will not advertise when halt during RF is disabled?

  • Eirik V said:

    Hello,

    What kind of project are you using? -- What do you mean by this?

    So you are saying that the device will not advertise when halt during RF is disabled?

    -- Yes, sometimes device goes into inconsistent state when halt during RF is disabled i.e. it don't advertise.

  • Hello,

    I need to know which project, device and setup in general you are using to be able to look into this in more detail.

  • Hi Erik,

    It is our custom project, where our device starts advertising on button press and it also turns on LED on board. This LED remains on during advertising is going on or till central device connects to the device. On connection, central device send request to turn on the peripherals, available on our device.

    These peripherals send data to the central device over BLE. The sampling rate of capturing data from peripherals is pretty fast, thus we have disabled the 'halt during RF'. But because of that, after doing sequence connection->enable peripherals->send data over BLE->disconnect for few times, device stops advertising. It turns on the LED on button press, but actually it is not advertising!! And to come out of this state, reset of the device is the only solution!!!

    But when I enabled the 'halt during RF', this issue seems to be resolved. But it has introduced new issue. Where we are not able to capture all the samples from the peripherals. Device misses few samples!

    I hope this information is sufficient.

    Thanks,

    Dhaval