This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Dual peripheral feature?

I see from the release notes of s132 4.0.0-2.alpha that it adds:

Support for 20 links in total with freely selectable role (Central/Peripheral) for each link.

I want to try this feature, but I can’t find any example for this in SDK 12.2.0 or SDK 13.0.0-1.alpha.

Anyone know if such an example exists?

Parents
  • Actually S132 4.0.0-2.alpha is not compatible with SDK 12.2.0 or SDK 13.0.0-1.alpha, but I made a minimalistic example that demonstrates the dual peripheral feature.

    I used ble_app_uart as a starting point, but I modified it so that two centrals can connect. Then if one client writes into the UART RX characteristic, the data will be notified to the other client, and vice versa.

    I added some logging to make it easy to see the reason, if anything is not working, for example that you haven’t connected two centrals, that you haven’t set the CCCDs to be able to receive notifications, and so on. So I recommend using a terminal on the PC.

    Please add a comment if you have trouble getting it to work.

    The example is not an official release, and is only tested with Keil and PCA10040, and this testing was very superficial.

  • That's unfortunate. I am seeking a solution where all my nRF52 devices can do the following simultaneously: 1. peripheral role and being connected to a central (e.g. phone/laptop with Web Bluetooth API ) 2. connect to one of the other nRF52 wirelessly. I see there is are ble_central_and_peripheral examples which I could use for one nRF52, the other nRF52 would then need to act as 2 peripherals. Is this possible with the nRF52? Texas Instruments supports multi-role...

Reply
  • That's unfortunate. I am seeking a solution where all my nRF52 devices can do the following simultaneously: 1. peripheral role and being connected to a central (e.g. phone/laptop with Web Bluetooth API ) 2. connect to one of the other nRF52 wirelessly. I see there is are ble_central_and_peripheral examples which I could use for one nRF52, the other nRF52 would then need to act as 2 peripherals. Is this possible with the nRF52? Texas Instruments supports multi-role...

Children
No Data
Related