nRF51 SDK - S210 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Heart Rate

Receiver

This example will connect to nearest Heart Rate Monitor (HRM) in range. It will then start printing out page data on UART when data is received from that device.

HRM specific configuration options

The following compile time configuration options are available to suite various HRM receiver implementations:

  • HRMRX_NETWORK_KEY ANT PLUS network key.
  • ANTPLUS_NETWORK_NUMBER Network key to associated with the channel.
  • HRMRX_ANT_CHANNEL Used channel number.
  • HRMRX_DEVICE_NUMBER Used device number.
  • HRMRX_DEVICE_TYPE Used device type.
  • HRMRX_TRANS_TYPE Used transmission type.
  • ANTPLUS_RF_FREQ Used channel radio frequency offset from 2400MHz.
  • HRMRX_MSG_PERIOD Used channel period used in 32 kHz counts.
Development phase configuration options

The HRM receiver will trace profile specific state information to UART depending on the selected compile time configuration options.

The following compile time configuration options are available to assist in the development phase of the HRM receiver implementation:

  • TRACE_HRM_PAGE_NMBR - output page number of the current page to UART.
  • TRACE_HRM_PAGE_1 - output page 1 data to UART.
  • TRACE_HRM_PAGE_2 - output page 2 data to UART.
  • TRACE_HRM_PAGE_3 - output page 3 data to UART.
  • TRACE_HRM_PAGE_4 - output page 4 data to UART.
  • TRACE_UART - UART output enabled.

The name of the example is ant_hrm_rx_s210_pca10028. 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\ant\ant_hrm\hrm_rx

Note
The ANT+ Network Key is available for ANT+ Adopters. Please refer to http://thisisant.com to become an ANT+ Adopter and access the key.

Transmitter

This example is a Heart Rate Monitor (HRM) transmitter simulator. It will transmit the users heart rate information in the main data page (page 4).

Device specific information is transmitted at a slower rate in the background data pages (pages 1-3). It will print out profile state information to UART when data is transmitted out of the device.

HRM specific configuration options

The following compile time configuration options are available to suite various HRM transmitter implementations:

  • HRMTX_NETWORK_KEY ANT PLUS network key.
  • ANTPLUS_NETWORK_NUMBER Network key to associated with the channel.
  • HRMTX_ANT_CHANNEL Used channel number.
  • HRM_DEVICE_NUMBER Used device number.
  • HRMTX_DEVICE_TYPE Used device type.
  • HRM_TRANSMISSION_TYPE Used transmission type.
  • ANTPLUS_RF_FREQ Used channel radio frequency offset from 2400MHz.
  • HRMTX_MSG_PERIOD Used channel period used in 32 kHz counts.
Development phase configuration options

The HRM transmitter simulator will trace out various kind of state information to UART depending on the selected compile time configuration options.

The following compile time configuration options are available to assist in the development phase of the HRM transmitter implementation:

  • TX_PAGE1 - output page 1 data to UART.
  • TX_PAGE2 - output page 2 data to UART.
  • TX_PAGE3 - output page 3 data to UART.
  • TRACE_UART - UART output enabled.

The name of the example is ant_hrm_tx_s210_pca10028. 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\ant\ant_hrm\hrm_tx

Note
The ANT+ Network Key is available for ANT+ Adopters. Please refer to http://thisisant.com to become an ANT+ Adopter and access the key.

Transmitter with buttons

This example is a Heart Rate Monitor (HRM) transmitter simulator. It will transmit the users heart rate information in the main data page (page 4).

A simple user interface exists consisting of 2 keypad buttons, which allow the user to decrease or increase the computed heart rate value.

Device specific information is transmitted at a slower rate in the background data pages (pages 1-3). It will print out profile state information to UART when data is transmitted out of the device.

HRM specific configuration options

The following compile time configuration options are available to suite various HRM transmitter implementations:

  • HRMTX_NETWORK_KEY ANT PLUS network key.
  • ANTPLUS_NETWORK_NUMBER Network key to associated with the channel.
  • HRMTX_ANT_CHANNEL Used channel number.
  • HRM_DEVICE_NUMBER Used device number.
  • HRMTX_DEVICE_TYPE Used device type.
  • HRM_TRANSMISSION_TYPE Used transmission type.
  • ANTPLUS_RF_FREQ Used channel radio frequency offset from 2400MHz.
  • HRMTX_MSG_PERIOD Used channel period used in 32 kHz counts.
Development phase configuration options

The HRM transmitter simulator will trace out various kind of state information to UART depending on the selected compile time configuration options.

The following compile time configuration options are available to assist in the development phase of the HRM transmitter implementation:

  • TX_PAGE1 - output page 1 data to UART.
  • TX_PAGE2 - output page 2 data to UART.
  • TX_PAGE3 - output page 3 data to UART.
  • TRACE_UART - UART output enabled.

The name of the example is ant_hrm_tx_buttons_s210_pca10028. 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\ant\ant_hrm\hrm_tx_buttons

Note
The ANT+ Network Key is available for ANT+ Adopters. Please refer to http://thisisant.com to become an ANT+ Adopter and access the key.