This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Heart_Rate data transmit?

Hi all,

In my project ,I use the SPI to communication between nRF51822 and STM32,but I don't know how does the heart_rate data transmit to BLE stack.

I am confused ,I want to konw the process in detail that data via bluetooth transmission to Master Control Panel from STM32

  • The serialization example works by exposing the complete softdevice API over the serial interface. This means that in the case of an STM32, the simulation of the heart rate and the actual implementation of a service happens on the STM. Only when the application and service have reached a value that is to be sent over the air as a notification, the STM will call the sd_ble_gatts_hvx() function, with the data to be sent, and this function call and data will be passed over the serial interface to the nRF51 and then over the air.

    For an explanation of data flow in BLE, I'd recommend you to take a look at nAN-36, which explains a bit about how BLE functions.

Related