This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Why the heartrate sample has two r-r interval?

heartRateRrInterval1 and heartRateRrInterval2. I can not understand it, the HRP document just say it can be as long as 9 bytes when expend is not available. But why in sample it sends two same value?

Another question, the r-r interval use 60 * 1024 / (uint16) (bpm)), but I think the 1024 should be 1000?

Chris

  • Hello Chris,

    Its just set up as an example. In this case we just use simulated results which are identical here for simplicity. In a real measurement you might have different measured RR-Intervals. The RR interval (R wave to R wave interval), the inverse of heart rate, is showing the fast variations so you might want to add several of these intervals to display on a graph while the BPM will most likely just be refreshed every second or so.

    It should be 1024 as this is the same as left-shifting the number by 10 as we do not deal with floating point numbers and want to avoid loosing the decimal numbers in an unsigned division.

    For your convenience, here is links to the relevant info:

    Heart Rate Profile (HRP)

    Heart Rate Service (HRS)

    Heart Rate Profile Specification.