BLE Running Speed and Cadence Collector Example

nRF5 SDK v10.0.0

nRF51 SDK v10.0.0
This example requires one of the following SoftDevices: S120, S130

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

The BLE Running Speed and Cadence Collector application implements the Running Speed and Cadence Collector Role using the S120 or S130 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:

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

The name of the example is ble_app_rscs_c_ SoftDevice _ Board , where SoftDevice is the SoftDevice that you are using and Board is the supported board. If you are not using the Keil Pack Installer, you can find the source code and 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: 38.400
  • 8 data bits
  • 1 stop bit
  • No parity
  • HW flow control: RTS/CTS

Testing

Two boards are needed to perform this test:

  • Collector Board : nRF51 Development board mounted with nRF51822 containing S120 or S130 SoftDevice.
  • Sensor Board : nRF51 Development board mounted with nRF51822 chip Board containing S110 or S130 SoftDevice and the Running Speed and Cadence Application provided with the nRF51 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 and program the BLE Running Speed and Cadence Collector Example application on the Collector Board. Ensure that the S120 or S130 SoftDevice is used for this application.
  2. On the Collector board, observe that the BSP_INDICATE_ADVERTISING state is indicated. This shows that the application is scanning for Heart Rate Sensors.
  3. Compile and program the Running Speed and Cadence Sensor application on the Sensor Board. Ensure the S110 or S130 SoftDevice is used for this application.
  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.

Please send us your feedback about the documentation! For technical questions, visit the Nordic Developer Zone .