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
- Central hub which connects to multiple peripheral devices and acts as a single peripheral role to connect the mobile phone.
- 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.