mbed-os-examples / mbed-os-example-ble-HeartRate

This application transmits a heart rate value using the Bluetooth SIG Heart Rate Profile. The heart rate value is provided by the application itself, not by a sensor, so that you don't have to get a sensor just to run the example. The canonical source for this example lives at https://github.com/ARMmbed/mbed-os-example-ble/tree/master/BLE_HeartRate

BLE Heart Rate Monitor

This application transmits a heart rate value using the Bluetooth SIG Heart Rate Profile. The heart rate value is provided by the application itself, not by a sensor, so that you don't have to get a sensor just to run the example.

Technical details are better presented in the mbed Classic equivalent of this example.

Running the application

Requirements

To see the heart rate information on your phone, download Panobike for iOS or Android.

You could also use a generic BLE scanners:

- nRF Master Control Panel for Android.

- LightBlue for iPhone.

Hardware requirements are in the main readme.

Building instructions

Building with mbed-cli

If you'd like to use mbed-cli to build this, then you should refer to the main readme. The instructions here relate to using the developer.mbed.org Online Compiler

In order to build this example in the mbed Online Compiler, first import the example using the ‘Import’ button on the right hand side.

Next, select a platform to build for. This must either be a platform that supports BLE, for example the NRF51-DK, or one of the following:

List of platforms supporting Bluetooth Low Energy

Or you must also add a piece of hardware and the supporting library that includes a Bluetooth Low Energy driver for that hardware, for example the K64F or NUCLEO_F401RE with the X-NUCLEO-IDB05A1

List of components supporting Bluetooth Low Energy.

Once you have selected your platform, compile the example and drag and drop the resulting binary onto your board.

For general instructions on using the mbed Online Compiler, please see the mbed Handbook

Checking for success

Note: Screens captures depicted below show what is expected from this example if the scanner used is nRF Master Control Panel version 4.0.5. If you encounter any difficulties consider trying another scanner or another version of nRF Master Control Panel. Alternative scanners may require reference to their manuals.

/media/uploads/vcoubard/start_scan.png

figure 1 How to start scan using nRF Master Control Panel 4.0.5

/media/uploads/vcoubard/scan_result.png

figure 2 Scan results using nRF Master Control Panel 4.0.5

/media/uploads/vcoubard/connection.png

figure 3 How to establish a connection using Master Control Panel 4.0.5

/media/uploads/vcoubard/discovery.png

figure 4 Representation of the Heart Rate service using Master Control Panel 4.0.5

/media/uploads/vcoubard/register_to_notifications.png

figure 5 How to register to notifications using Master Control Panel 4.0.5

/media/uploads/vcoubard/notifications.png

figure 6 Notifications view using Master Control Panel 4.0.5

Changes

RevisionDateWhoCommit message
38:b36aa157781d 10 days agombed_officialMerge pull request #100 from 0xc0170/master default tip
37:c9fd79974e96 3 weeks agombed_officialMerge pull request #99 from bcostm/add_disco_l475vg
36:22ad72fb57a7 4 weeks agombed_officialMerge pull request #97 from 0xc0170/master
35:606a48c5f3c0 4 weeks agombed_officialMerge pull request #98 from apalmieriGH/master
34:e7de039e4aa1 5 weeks agombed_officialMerge pull request #93 from adbridge/master
33:cfa084a7bae3 8 weeks agombed_officialMerge pull request #89 from adbridge/master
32:ef5e893c4ea6 8 weeks agombed_officialMerge pull request #90 from apalmieriGH/master
31:e606e526e103 8 weeks agombed_officialMerge pull request #88 from adbridge/master
30:50dc9ff0b329 2 months agombed_officialMerge pull request #83 from apalmieriGH/master
29:dbb485f9d61c 2 months agombed_officialMerge pull request #82 from adbridge/master
28:7ad8ad6b0826 2 months agombed_officialMerge pull request #81 from adbridge/master
27:a10821e797a8 3 months agombed_officialMerge pull request #79 from adbridge/master
26:d7dd71a8aea1 3 months agombed_officialMerge pull request #78 from ashok-rao/master
25:7bbd3ab29049 3 months agombed_officialMerge pull request #77 from 0xc0170/master
24:6576abea8167 4 months agombed_officialMerge pull request #70 from 0xc0170/master
23:5e239a05e0ce 4 months agombed_officialMerge pull request #72 from pan-/update_bluenrg_ref
22:1689127e9df0 4 months agombed_officialMerge pull request #71 from pan-/fix_bluenrg_reference
21:ec1d136a5a06 5 months agombed_officialMerge pull request #68 from adbridge/master
20:28c507b4ef01 5 months agombed_officialMerge pull request #66 from ARMmbed/oob_test_mbed-os-5.4
19:9f8c25c3c996 5 months agombed_officialMerge pull request #55 from adbridge/master
18:e3163109544d 5 months agombed_officialMerge pull request #54 from apalmieriGH/master
17:3ef616130e73 6 months agombed_officialMerge pull request #52 from 0xc0170/master
16:711f81ad4785 6 months agombed_officialMerge pull request #48 from adbridge/master
15:5f14519a2e39 6 months agombed_officialMerge pull request #46 from adbridge/master
14:36f9e84a4b15 8 months agombed_officialUpdate mbed-os revision to mbed-os 5.3.0.
13:924e3381c12b 8 months agombed_officialMerge pull request #42 from ARMmbed/mbed-os-5.3.0-rc3
12:b53f75ead212 9 months agombed_officialUpdating mbed-os to mbed-os-5.2.1
11:41c947b801db 9 months agombed_officialUpdating mbed-os to mbed-os-5.2.0
10:ac3615194d04 9 months agombed_officialMerge pull request #32 from ARMmbed/oob
9:28cc52dc2acd 10 months agombed_officialUpdating mbed-os to mbed-os-5.1.5
8:0863e8462ef8 11 months agombed_officialUpdating mbed-os to mbed-os-5.1.4
7:401ff3de9bb2 12 months agombed_officialUpdating mbed-os to mbed-os-5.1.2
6:706e7eebec70 12 months agombed_officialUpdating mbed-os to mbed-os-5.1.1
5:f49beb36116c 12 months agombed_officialUpdating mbed-os to mbed-os-5.1.0
4:3bbff03263b0 12 months agombed_officialUpdate reference to the ST shield library.
3:24f1a7eecc14 12 months agombed_officialUpdating mbed-os to mbed-os-5.1.0-rc5
2:9571b22ed03b 12 months agombed_officialUpdating mbed-os to mbed-os-5.1.0-rc4
1:72c60abef7e7 12 months agombed_officialMerge branch 'master' of https://github.com/ARMmbed/mbed-os-example-ble
0:fb66cae3e9a1 12 months agoVincent Coubard Update example at tag mbed-os-5.0.1-rc1