Important: Before you run this example, make sure to program the SoftDevice.
The ANT and BLE Heart Rate Monitor Relay Application shows the concurrent use of ANT and BLE protocols. It implements the Heart Rate profile using the hardware delivered in the nRF5 Development Kit. In addition, it implements the ANT Heart Rate Profile Receiver. The aggregated data received from ANT is relayed and sent as BLE notifications.
The application includes these two BLE services in the Heart Rate profile:
When notification of the Heart Rate Measurement characteristic is enabled, the Heart Rate Measurement, containing the current value for all the components of the Heart Rate Measurement characteristic, is notified each time when new data is received from the ANT connection.
This example is based on the BLE Heart Rate Application (ble_app_hrs). See that example for additional documentation.
You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\multiprotocol\ble_ant_app_hrm
Button assignments:
Test the Heart Rate Relay Application with the nRF Toolbox app, which is available on both iOS (App Store) and Android (Google Play).
You can also test the application with nRF Connect for Desktop by performing the following steps:
<InstallFolder>\examples\ant\ant_plus\ant_hrm\hrm_tx
. Alternatively, you can connect to an ANT heart rate belt if you change ANT_HRMRX_NETWORK_KEY
to the ANT+ Network Key.