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 get notification BEFORE and AFTER an connection event ?

Other Parts Discussed in Thread: CC2540

Hi,

I'm using the following 2 APIs to get a notification for an "END of RF activity" event.

HCI_EXT_ConnEventNoticeCmd(...)
HCI_EXT_AdvEventNoticeCmd(...)

But is there a way to notify the App of a "Start of RF activity" event ?

I need these to implement coexistence with another 2.4G RF, such that whenever the BLE RF is active, a GPIO will be asserted during that short period of time.

Any idea ? and thanks in advance !

- Thomas

  • Hello,

    If you are using power mgmt, you can put something in front of 

    LL_PowerOnReq( (halPwrMgtMode == CC2540_PM3), wakeForRF );

    in Ha_Sleep.

    If you add any processing time, be sure to increase HAL_SLEEP_ADJ_TICKS, or you may miss the RF sync to timer2.

    Another option is to look at timeToNextRf, which you can then use to set an osal timer before. 

    BR,

    -Greg