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.

CC2652P: Synchronize external application to the connection interval in Host Test

Part Number: CC2652P
Other Parts Discussed in Thread: CC1352P

sdk: simplelink_cc13xx_cc26xx_sdk_5_40_00_40
example: host_test

Hello everybody,

I want to synchronize my external host-microcontroller application with the connection interval of the target-microcontroller cc2652p bluetooth communication. The best would be, that I can activate and deactivate this on different timepoints.

I know there is a HCI command (GAP_RegisterConnEvent) to receive the notification when a connection interval ends. But I don't want it to be send over the UART communication. I want that host-test program sets a GPIO pin when the connection interval has ended.

The function HCI_EXT_ConnEventNoticeCmd() from TI-BLE5-STACK API looks to be exactly what I need. But I have trouble to make this work in host test. Where should I configure the protocol stack to activate this. I tried to do this in the host_test_app.c file but get an compile error:
Description Resource Path Location Type
unresolved symbol HCI_EXT_ConnEventNoticeCmd, first referenced in <whole-program> host_test_CC1352P_2_LAUNCHXL_tirtos_ccs C/C++ Problem

What would be the best approach?

kind regards,
Samuel

  • Problem solved. Found the callback function which is responsable for sending an event back to the host-microcontroller when you use the HCI command GAP_RegisterConnEvent. It's "static void host_tl_connEvtCallbackProcess(Gap_ConnEventRpt_t *pReport)".


    Instead of sending a event over transport layer I now call my own callback and toggle a GPIO pin. Works fine.

  • Hi Samuel,

    This is indeed the right approach.

    Don't hesitate to open a new thread if you need additional assistance.

    Best regards,