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.

  • Petter,

    Firstly thanks for the example. I'm aware that it is not an official release and hasn't been fully tested. Having said that, could you please confirm that the dual peripheral example was tested with the "ble_central\ble_app_uart_c" example in the v13.0.0 SDK? I can confirm that I'm able to get the system working with the Nordic UART v2.0 Android app, but for me the ble_app_uart_c never is able to connect to the "Nordic UART Service". Meanwhile, if I use the "ble_peripheral/ble_app_uart" in place of the dual peripheral example, I am able to get both the ble_app_uart_c and the Android app connecting and sending/receiving data from it.

Reply
  • Petter,

    Firstly thanks for the example. I'm aware that it is not an official release and hasn't been fully tested. Having said that, could you please confirm that the dual peripheral example was tested with the "ble_central\ble_app_uart_c" example in the v13.0.0 SDK? I can confirm that I'm able to get the system working with the Nordic UART v2.0 Android app, but for me the ble_app_uart_c never is able to connect to the "Nordic UART Service". Meanwhile, if I use the "ble_peripheral/ble_app_uart" in place of the dual peripheral example, I am able to get both the ble_app_uart_c and the Android app connecting and sending/receiving data from it.

Children
No Data
Related