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.

Connecting one CC2640 peripheral to several central devices

Other Parts Discussed in Thread: CC2640

As I understand it is not possible for a peripheral device to be connected to several central devices simutaneously, is that correct?
We use a CC2640 in our products and when I look in bleUserConfig.h it is possible to set MAX_NUM_BLE_CONNS to oter value than 1.
According to comment the recommended value for peripherals is one but it only says "recommended" which makes me a bit unsure.

Our use case is that the peripheral device advertises acoording to a strict profile description.
Advertising data and scan response are included in the profile definition and can't be changed.
The central device is a mobile phone app.
New thing now is that several other "type B" central devices shall be able to connect to the peripheral device.
Type 2 central devices use another profile to connect to another type of peripheral and we probably need to advertise as two different peripheral devices interchangeably.

Anyone that has experience of a similar use case?
And if there are, how did you solve it?

BR
Mattias Haeger

  • Hello Mattias,


    BT Core spec v4.1 allows exactly this configuration. Please see the MultiRole demo on the TI SimpleLink GitHub page for an active sample application. A link is provided on the TI BLE wiki.

    Best wishes

  • Thanks for the answer.
    I tried to run the example on our own hardware and succeded to connect my peripheral device to two different central devices.
    It is possible to change a characteristic value from one central device and read the new value with the other central device, so far so good.
    In our real product we however use the CC2640 as a network processor based on the TI host test example.
    Do you see any problems to run an NWP in a multirole configuration, RAM constraints or anythig else? Or have you tested that already?

    I also wonder if is possible to switch between two different advertiseing messages and scan responses a few times (2-10) per second?
    This would make it possible for the peripheral device to look like two different devices from the cental devices view which would facilitate things a lot.

    BR

    Mattias