nRF51 SDK: Blood Pressure Application

| nRF51 SDK

- Home
- Related Pages
- API Reference
- Data Structures

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Blood Pressure Application

# Blood Pressure Application

The Blood Pressure Application is a firmware example that implements the Blood Pressure profile using the hardware delivered in the nRF51822 Development Kit.

The source code and project file can be found in the `<InstallFolder>\Nordic\nrf51822\Board\nrf6310\s110\ble_app_bps` folder.

The application includes the two services in the Blood Pressure profile:

- Blood Pressure Service
- Device Information Service

In addition, use of the Battery Service is also demonstrated. When the application starts, a timer for generating battery measurements is started.

When indication of the Blood Pressure Measurement characteristic is enabled, a Blood Pressure Measurement is transmitted. This also happens when reconnecting to a previously bonded central. A Blood Pressure Measurement is also transmitted each time button 0 is pushed.

Note
  This application is not power optimized!
  The application will stop advertising after 3 minutes and go to system-off mode. Push button 0 or button 1 to wake it up and restart advertising.

# Setup

Instructions on how to set up the nRFgo Motherboard: nRFgo Motherboard Setup (nRF6310).

LED assignments:

- LED 0: Advertising
- LED 1: Connected
- LED 7: Asserted (i.e. an assert check in the application has failed)

Buttons assignments when in system-off:

- Button 0: Wake-up and start advertising.
- Button 1: Wake-up, erase all bonds and restart advertising.

Buttons assignments when connected:

- Button 0: Simulate and send a Blood Pressure Measurement.

# Testing

The Blood Pressure Application can be tested using the nRFReady Utility app for iOS. The app will be listed as "nRFReady Utility" on Apple Store.

It can also be tested using the Master Control Panel as follows:

1. Compile and program the application. Observe that the Advertising LED is lit.
2. Connect to the device from Master Control Panel (the device will be advertising as 'Nordic_BPS'), then bond and perform service discovery. Observe that the Connected LED is lit, and the Advertising LED is off.
3. Click the 'Enable services' button on the Master Control Panel. Observe that one Blood Pressure Measurement indication is received. Also, Battery Level notifications are received every two seconds.
4. Click the 'Disconnect' button and then the 'Connect' button on the Master Control Panel. Observe that one Blood Pressure Measurement indication is received.
5. Push Button 0. Observe that one Blood Pressure Measurement indication is received each time the button is pushed.