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.

Notification per ConnHandle

Other Parts Discussed in Thread: CC2540

Hi,

My simplePeripheral allows for multiple concurrent Central connection.

Now when when one of the Centrals (IOS devices) writes a "Command" characteristic, the application processes the received Value and is supposed to respond back to the Central with a Central specific Notification.

However, is there a way to send a notification back _only_  to the Central that initiated the write rather than to all Centrals that have notifications on that Characteristic enabled ?

Any other suggestions on alternative implementation for a connHandle specific write/response functionality would be greatly appreciated as well!

best regards,

Oliver.

  • Hi Oliver,

    It is not possible for a peripheral device to be connected to multiple central devices so I do not really understand your question. Anyway, looking at the client/server perspective (independent of GAP roles Peripheral/Central) you have certain rules to follow. In order to send a notification back as a response to a notification, you would have to have a server on the each side of the communication (and essentially a client on each side). Note that the notification uses the connection handle to relay to correct client device.

    Maybe I am misunderstanding you. Could you explain the use case in more detail?

    Best Regards

  • Hi Nick,

    Thank you for taking the time to respond. I had worked on the single user application first which works fine and then wanted to extend it for multiple phones to control the BLE device. I guess I should have read the standards more carefully to start with.

    So I guess the only way to make this use case work (Multiple Phones communicating with the CC2540 simultaneously) I will have to refactor the firmware code to use the Central role profile. And then make the phones a Peripheral. If I understand the stack docs correctly This would allow for max 3 concurrent devices?

    best regards,

    Oliver.

      

  • Hi Oliver,

    Oliver Fueckert said:
    So I guess the only way to make this use case work (Multiple Phones communicating with the CC2540 simultaneously) I will have to refactor the firmware code to use the Central role profile. And then make the phones a Peripheral. If I understand the stack docs correctly This would allow for max 3 concurrent devices

    Correct, you can look at the simpleBLECentral example project. 

    Best Regards