Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Multi-Link Peripheral - what is really needed?

Most of the SDK Peripheral examples support only a single connection.

Is there a guide somewhere which explains and illustrates  what, exactly, needs to be changed to update a single-connection example to support multiple connections ?

The SDK  v15.3.0 "BLE Multiperipheral" example does not provide any explanation - it is purely presented as a done & dusted fait accompli.

Disappointed

it also obfuscates the issue by using the Queued Writes module - which, by Nordic's own admission, is not a widely-used feature!

In particular, I want to know: Apart from counting connections & re-starting advertising, is it necessary to do anything more at all in a Peripheral which has only Read & Write characteristics - no Notifications?

I ask because that is exactly what I am doing at the moment:

I have a  Peripheral which has only Read & Write characteristics - no Notifications

I have got as far as adding the counting of connections & re-starting advertising - and it seems that the Reading & Writing of the characteristics works fine with multiple connections without making any further changes!

But is this safe?

Parents
  • Hi, 

    Is there a guide somewhere which explains and illustrates  what, exactly, needs to be changed to update a single-connection example to support multiple connections ?

    Unfortunately, we don't have the tutorial as your requirement. However, If you compare the BLE Multiperipheral Application and BLE Blinky Application these two examples, you will see the main work is maintaining links in the connection handle. 

    In particular, I want to know: Apart from counting connections & re-starting advertising, is it necessary to do anything more at all in a Peripheral which has only Read & Write characteristics - no Notifications?

    The BLE Multiperipheral Application shows how one Peripheral can connect to several Centrals. To demonstrate this, program the example on one device to test several peripheral connections from this single device to several Centrals. You don't need to do anything for the characteristics even your peripheral application. 

    -Amanda H.

Reply
  • Hi, 

    Is there a guide somewhere which explains and illustrates  what, exactly, needs to be changed to update a single-connection example to support multiple connections ?

    Unfortunately, we don't have the tutorial as your requirement. However, If you compare the BLE Multiperipheral Application and BLE Blinky Application these two examples, you will see the main work is maintaining links in the connection handle. 

    In particular, I want to know: Apart from counting connections & re-starting advertising, is it necessary to do anything more at all in a Peripheral which has only Read & Write characteristics - no Notifications?

    The BLE Multiperipheral Application shows how one Peripheral can connect to several Centrals. To demonstrate this, program the example on one device to test several peripheral connections from this single device to several Centrals. You don't need to do anything for the characteristics even your peripheral application. 

    -Amanda H.

Children
No Data
Related