nRF5 SDK v15.0.0
Running Speed and Cadence Application
This example requires one of the following SoftDevices: S132, S140

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

The Running Speed and Cadence Application is an example that implements the Running Speed and Cadence profile using the hardware delivered in the nRF5 Development Kit.

The application includes the two services in the Running Speed and Cadence profile:

In addition, use of the Battery Service is also demonstrated.

When the application starts, it starts a timer to simulate Running Speed and Cadence Measurements.

Also, a timer for generating battery measurements is started.

The sensor measurements are simulated the following way:

When notification of Running Speed and Cadence Measurement characteristic is enabled, the Running Speed and Cadence Measurement, containing the current value for all the components of the Running Speed and Cadence Measurement characteristic, is notified each time the Running Speed and Cadence measurement timer expires. When notification of Battery Level characteristic is enabled, the Battery Level is notified each time the Battery Level measurement timer expires.

Note
This application is not power optimized!
The application will stop advertising after 3 minutes and go to system-off mode. Push Button 1 restart advertising.

Setup

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\ble_peripheral\ble_app_rscs

Button assignments: BSP BLE Button Assignments

Testing

Test the Running Speed and Cadence Application with nRF Connect by performing the following steps:

  1. Compile and program the application. Observe that the BSP_INDICATE_ADVERTISING state is indicated.
  2. Connect to the device from nRF Connect (the device is advertising as 'Nordic_RSC'). Observe that the BSP_INDICATE_CONNECTED state is indicated.
  3. Observe that the services are shown in the connected device and that you can start receiving values for the Running Speed and Cadence and the Battery Service by clicking the 'Play' button. Running Speed and Cadence notifications are received every second, and Battery Level notifications are received every two seconds. You can also read any characteristic from the Device Information Service by clicking the 'Refresh' button. All possible characteristics have been populated for this service.

Documentation feedback | Developer Zone | Subscribe | Updated