polarofficial / polar-ble-sdk

Repository includes SDK and code examples. More info https://polar.com/en/developers
Other
483 stars 153 forks source link

PolarSDK-ECG-HR-Demo with HR and RR Plotting #6

Closed KennethEvans closed 5 years ago

KennethEvans commented 5 years ago

I modified the PolarSDK-ECG-HR-Demo app to add an Activity that plots HR and RR as a strip chart. Screenshot attached. I can send you the changes if you are interested, no obligation. It seems like it would be useful as a demo to others.

Screenshot_20190330-123115_Polar ECG small

erkki-silvola commented 5 years ago

You can send the changes. Demos are originally done by a trainee so I have not personally checked them, but any improvements are welcome.

hepcatjk commented 5 years ago

Can we reproduce this demo on the computer too somehow with the SDK? using BLE and python/c# or C++ or something?

erkki-silvola commented 5 years ago

Of course it is possible. But in that case you need to implement the gatt client yourself and this depends on available api's. Check the gatt specification for details.

pedromi commented 5 years ago

Hi KennethEvans! Can you give me more information or send me your activity to test? Many thanks

KennethEvans commented 5 years ago

I did send what I have done. It says you can reply to the notification I got from this topic, and that is what I did. Since no mention has been made of its being received, I assume it did not get to where it needed to be.

Let me try attaching it here: PolarSDK-ECG-HR-Demo-Modified.zip

This is a ZIP of the main directory. The only changes I made were to the java files and ones in res/layout and res/values/strings.xml. The screenshot I sent is from the added HRActivity. I did also make some minor changes to ECGActivitiy and its layout to add some more information. You may or may not want to keep that. (I personally can't do anything significant with ECG until my H10 gets updated.)

erkki-silvola commented 5 years ago

I updated ecg demo with @KennethEvans changes