nRF51 SDK
|
This example together with s110 peripheral helper applications tests the multi-link functionality of the S120 SoftDevice.
The source code and project file can be found in the following folders:
<InstallFolder>\Nordic\nrf51822\Board\nrf6310\s120\experimental\ble_app_multilink_central
<InstallFolder>\Nordic\nrf51822\Board\nrf6310\s120\experimental\ble_app_multilink_peripheral
The central device can connect to up to eight peripherals. The Development kit nRF6310 is used as Central since the central application needs more LEDS, while the Evaluation Kit PCA10001 is used for the peripherals.
The multi-link example requires at least three boards to verify that more than one link is active. It is preferred to use one nRFgo Motherboard and two or more evaluation kits for testing this application.
Instructions on how to set up the nRFgo Motherboard: nRFgo Motherboard Setup (nRF6310).
LED assignments PCA10001 Peripheral:
Buttons assignments PCA10001 Peripheral:
LED assignments nRF6310 Central:
The peripheral application on startup will begin advertising. Once connected to the central, pressing button 0 on the peripheral toggles the state of LED 0 on the peripheral and a corresponding LED on the central. When multiple peripherals are connected, each peripheral is assigned one LED by the central depending on the order in which the peripherals got connected. For example, LED 0 will be assigned to the peripheral that connects first. LED 1 will be assigned to the peripheral that connects second and so on.
The central application can be easily ported to run on an evaluation board. The only changed needed would be adapt to the two LEDs on evaluation board. To do this, the preprocessor define BOARD_NRF6310 (available in Keil uVision IDE at Projects->Options for...->C/C++) should be changed to BOARD_PCA10001. Since the evaluation board has only two LEDs, it can visually identify only two links. If more than two links need to be supported, UART logging (for example) can be used instead of the LEDs.
Tested with 1 nRFgo Motherboard board and two evaluation kits