Example how to do the data forward between two BLE central host (multiple peripheral role in BLE)

Overview

Bluetooth 4.1 has started to support the central / peripheral role on each device / host in the Bluetooth Specification.  It would be very interested topic to how to support difference scenarios

  1. Central hub which connects to multiple peripheral devices and acts as a single peripheral role to connect the mobile phone.
  2. The device acts as multiple peripheral role to connect multiple centrals at the same time.

Nordic Bluetooth Stack

Nordic semiconductor has released the latest version of its S132 SoftDevice (S132v4.0.x or later) for the nRF52832 multi-protocol SoC. This latest SoftDevice can support up to 20 concurrent connections in a variety of Bluetooth low energy role combinations to suit almost any application scenario.

In addition to offering unparalleled connectivity options for different applications the new S132 enables specific tailoring of data bandwidth settings for each link according to its needs. Each link can be setup for low, medium or high bandwidth options, which is highly advantageous especially in fitness and wearable applications where multiple links can be in operation simultaneously but performing very different functions.

Dual Peripheral role on data communication between two mobile phone

Nordic Softdevice can support up to 4 peripherals (tested) at the same.  Here is the example code at the github to support such dual peripheral role and data forward between two mobile phones.

Based on the experimental multiple peripheral example in SDK 15.0, it has added the NUS GATT server together.

When the Mobile phone 1 does the write without response on the NRF52 device, it would get the nus_data_handler and then forward to another Mobile phone 2.

URL : dual_ble_peripheral_example

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.