| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
BLE Running Speed and Cadence Collector Example
This example requires one of the following SoftDevices: S130, S132

Important: Before you run this example, make sure to program the SoftDevice.

The BLE Running Speed and Cadence Collector application implements the Running Speed and Cadence Collector Role using the S13x SoftDevice.

GAP role implemented is the Central role. GATT role implemented is the Client role.

The Running Speed and Cadence Collector application implements the Collector role for the Running Speed and Cadence Profile. It scans peripheral devices, connects to the device advertising with Running Speed and Cadence Service UUID in its advertisement report, and discovers and configures the Running Speed and Cadence Service to start sending Notifications of Running Speed and Cadence Measurements. The received measurements are logged on UART interface.

The application includes one service from the Running Speed and Cadence profile:

- Running Speed and Cadence Service Client

Note
  The application currently does not support connecting to multiple peripherals. Handling Connection Parameters Update and Pairing/Bonding are not implemented. Once connected, the application does not initiate disconnection but is capable of handling disconnection event initiated by peer or triggered unexpectedly.

# Setup

You can find the source code and the project file of the example in the following folder: `<InstallFolder>\examples\ble_central\experimental\ble_app_rscs_c`

Button assignments: BSP BLE Button Assignments

The application uses the following UART settings:

- Baud rate: 115.200
- 8 data bits
- 1 stop bit
- No parity
- HW flow control: RTS/CTS

# Testing

Two boards are needed to perform this test:

- Collector Board: nRF5 Development board containing an S13x SoftDevice.
- Sensor Board: nRF5 Development board containing an S13x SoftDevice and the Running Speed and Cadence Application provided with the nRF5 SDK.

The application running on the Sensor Board is intended to serve as a peer (i.e. Running Speed and Cadence Sensor role) to this Running Speed and Cadence Collector application.

Test the BLE Running Speed and Cadence Collector Example application by performing the following steps:

1. Compile the BLE Running Speed and Cadence Collector Example application and program both the SoftDevice and the application on the Collector Board.
2. On the Collector board, observe that the BSP_INDICATE_ADVERTISING state is indicated. This shows that the application is scanning for Running Speed and Cadence Sensors.
3. Compile the Running Speed and Cadence Sensor application and program both the SoftDevice and the application on the Sensor Board.
4. Observe that the Running Speed and Cadence Sensor is advertising.
5. Once the connection is established, the BSP_INDICATE_CONNECTED state is indicated on the Collector Board.
6. After a few seconds, observe Running Speed and Cadence measurements displayed on the UART.