BLE_HeartRate_Thread_SED Application Description

How to use the Concurrency mode BLE/Thread with BLE Heart Rate profile and COAP messages transmission over Thread for a Sleepy End Device.

This application demonstrates the BLE/Thread(SED) concurrency mode. The device is configured to attach to a Thread Leader and then sends COAP message every two seconds. This device is also configured in BLE with Heart Rate profile, starts advertising and is available to accept incoming connection in BLE. This application demonstrates the Low Power, in Standby mode.

Keywords

Connectivity, Concurrency, BLE, BLE protocol, Thread, COAP, STM32WBA, low power, Standby mode

Directory contents

Hardware and Software environment

How to use it?

Minimum requirements for the demo:

In order to make the program work, you must do the following:

In a Thread network, nodes are split into two forwarding roles: Router or End Device.
The Thread Leader is a Router that is responsible for managing the set of Routers in a Thread network.
An End Device (or child) communicates primarily with a single Router.

Our Application uses two devices :

After the reset of the Thread_Coap_Generic device, it will be in Leader mode (Green LED2 ON).
Then power on the BLE_HeartRate_Thread_SED device, it will be in Child mode (LEDs are not driven because of Low Power).

Once attached to the Thread Leader (Thread_Coap_Generic device), the Thread Child (BLE_HeartRate_Thread_SED device) starts sending COAP command (Non-Confirmable) to the Thread Leader every two seconds. The Thread Leader will receive COAP commands to toggle its blue LED1.

    
  ___________________________                       ___________________________
  |BLE_HeartRate_Thread_SED |                       | Thread_Coap_Generic     |
  |_________________________|                       |_________________________|  
  |                         |                       |                         |
  |                         |                       |                         |
  |          every 2sec --> |======> COAP =========>| BLUE LED TOGGLE (ON/OFF)|
  |                         | Resource "light"      |                         |
  |                         | Mode: Multicast       |                         |
  |                         | Type: Non-Confirmable |                         |
  |                         | Code: Put             |                         |
  |                         |                       |                         |
  |                         |                       |                         |
  |                         |                       |                         |  
  ---------------------------                       ---------------------------
  | Role : Child            |                       | Role : Leader           |
  |                         |                       |                         |
  |                         |                       | LED : Green             |
  |                         |                       |                         |
  |_________________________|                       |_________________________|

  

During Thread activity, the BLE_HeartRate_Thread_SED device is also configured in BLE with Heart Rate profile, performs advertising and is available to accept incoming connection in BLE.

On the android/ios device, enable the Bluetooth communications, and if not done before:

Traces

Traces are disabled because of Low Power.

Power Consumption

Power consumption can be measured using the X-Nucleo-LPM01A board solution.

On STM32WBA55xx, the consumption should be: