Click here to Skip to main content
16,021,765 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am working with Polar H10 to get the Heart Rate Variability from it.

I am running Bluetooth Low Energy Sample from Microsoft.

I have used this sample to get the heart rates from another polar device (Polar OH1) and it worked fine.

But now I want to get the HRV from Polar H10. But BLE sample code is not really showing me the HRV Characteristic which it should just like heart rate.

What adjustments should I make to the sample code?

These are the only characteristics I am seeing:

What I have tried:

// first layer keys are serviceUuid's
// second layer keys are characteristicUuid's
// with their respective name/description as values
{
    "1800"    /* Generic Access */                      : {
    "2a00": "Device Name",
    "2a01": "Appearance",
    "2a02": "Peripheral Privacy Flag",
    "2a03": "Reconnection Address",
    "2a04": "Peripheral Preferred Connection Parameters"
},
"1801"    /* Generic Attribute */                   : {
    "2a05": "Service Changed"
},
"180d"    /* Heart Rate */                          : {
    "2a37": "Heart Rate Measurement",
    "2a38": "Body Sensor Location"
   // This is where it should show Heart Rate Variability //
},
"180a"    /* Device Information */                  : {
    "2a23": "System ID",
    "2a24": "Model Number String",
    "2a25": "Serial Number String",
    "2a26": "Firmware Revision String",
    "2a27": "Hardware Revision String",
    "2a28": "Software Revision String",
    "2a29": "Manufacturer Name String"
},
"180f"    /* Battery Service */                     : {
    "2a19": "Battery Level"
},
"6217ff4b-fb31-1140-ad5a-a45545d7ecf3" /* unknown */: {
    "6217ff4c-c8ec-b1fb-1380-3ad986708e2d": "unknown", /* read:true */ // value = 
     uInt16Array [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    "6217ff4d-91bb-91d0-7e2a-7cd3bda8a1f3": "unknown" /* write:true, 
     indicate:true, descriptors:{ descriptorUuid: "2902" }*/
 {
     /* 6172 */
     this service has all the numbers which I have no idea about. 
     Example: 10905, 10906, and etc.  
  }
}
Posted
Updated 26-Oct-18 1:13am
v5
Comments
Afzaal Ahmad Zeeshan 26-Oct-18 7:13am    
That is not the code, rather merely a data in JSON notation. Where is the code? Also you are using Windows IoT?
Smit Modi 26-Oct-18 9:20am    
Here is the code I am running: https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/BluetoothLE/cs

And yes, Windows 10
Afzaal Ahmad Zeeshan 26-Oct-18 15:22pm    
You did not show the code that you are using. Or are you just trying out the code they have provided? If so, we have little to no knowledge of what you are trying to do, explain a bit more, or rather since the repository is open source project, which means the on-topic discussion can be done on Microsoft's GitHub page too. An expert will be able to help you there.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900