Heart Rate Monitor example for the BLE API using ST BlueNRG native drivers
Getting started with X-NUCLEO-IDB05A1
This example demonstrates how to use the X-NUCLEO-IDB05A1 component with one of the STM32 Nucleo platforms tested with the to obtain heart rate information:
First, attach the X-NUCLEO-IDB05A1 to the STM32 Nucleo platform as shown here:
Next, connect the STM32 Nucleo platform to your PC with a USB-mini USB cable.
Now return to the BLE_HeartRate_IDB0XA1 project homepage and import the project into your mbed compiler:
Click “Import” button on the pop up window shown below
Compile and load the image onto the STM32 Nucleo platform
Upon a successful compilation, a binary image will be created and a dialog box will ask you where to save it.
Now you can load the compiled code onto your Nucleo platform by saving the newly created binary file to your STM32 Nucleo drive.
Open a terminal window to display the status of your Bluetooth stack. For this example, set the terminal BAUD rate to 9600
Included within the USB interface of the STM32 Nucleo platform is a Virtual COM port that can be used to send back messages to your PC within your embedded code.
You need a terminal emulator installed on your PC to perform serial communications with your STM32 Nucleo platform. If you do not have a terminal emulation program on your PC we recommend you download and install one of the following terminal emulation programs:
Upon a successful serial connection, you should now see the various Bluetooth stack status displayed on your console output.
Test your application with an Android or iOS device
- On the STM32 BLE Profiles app select HeartRateSensor
- Select Heart Rate
Revisions of main.cpp
|22:94afa3edefb3||2018-08-09||Update mbed lib.||File Diff Annotate|
|21:0e7c08f5386f||2016-10-05||Minor change (bps values range)||File Diff Annotate|
|14:f715c13eb84f||2016-03-09||Sync w/ rev115 of mbed lib||File Diff Annotate|
|13:227a0149b677||2016-02-25||Code cleaning||File Diff Annotate|
|3:a51ca6313ad2||2015-09-29||Remove 'IDB0XA1_D13_PATCH' from main||File Diff Annotate|
|2:bc0c0d442a24||2015-09-29||Update arguments for Disconnection callback||File Diff Annotate|
|1:11cd427bbc8b||2015-09-29||Do not use LED when compiling for 'IDB0XA1_D13_PATCH'||File Diff Annotate|
|0:eb7f02ad28a7||2015-09-22||Initial revision||File Diff Annotate|