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.

CC2640R2F-Q1: Is there a way to specify Connection Handle while connecting to a Peripheral Device.

Part Number: CC2640R2F-Q1


Hello,

I have a MultiRole app designed to work as Central Device to establish up to three connections to different peripherals and also two differents peripherals applications. I managed to have all them working fine but since I need to read the different characteristics on each one I would like to manage them by Connection handle. I've been looking at how the Central manages to assign each peripheral with connection handles and couldn't find a way to specify a connection handle myself (planning to have hardware buttons to start scanning and connecting to each each device/connection handle up to 3 maximum (maximun peripherals that can be connected at any time to my central device). Is there anything I'm missing out in which the multirole example I used as a starting point for my app manages to assing Connection handles? Is there a way to properly do this I want.

If I couldn't explain myself or if you need further information just tell me since I can share code and explain further more.

Best Regards and thanks in advance.

  • Miguel,

    I've assigned an expert to help you.

    -Luis

  • Hi,

    If I understood correctly your environment, I suspect the answer is indeed built into a typical simple_central project. In this project, the connection handlers are added to the connList[].connHandle variable and an example to do a selection can be found in the function SimpleCentral_doSelectConn() of the file <simple_central.c>.

    In this particular example, the selection is done by the menu itself, but you could modify the code to automate this.

    Hope this helps,

    Rafael