Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple EcgData at one timestamp. #387

Open
2 of 10 tasks
latownjo opened this issue Jul 24, 2023 · 4 comments
Open
2 of 10 tasks

Multiple EcgData at one timestamp. #387

latownjo opened this issue Jul 24, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@latownjo
Copy link

Platform on which you observed the bug:

  • Android
  • iOS
  • Other
  • Platform is not relevant for this bug

Device on which you observed the bug:

  • Polar OH1
  • Polar Verity Sense
  • Polar H10
  • Polar H9
  • Other
  • Device is not relevant for this bug

Describe the bug
I have dumped all EcgData and combined them into one table. If you sort this data by the timestamp of the EcgSample, the frame rate will be sometimes incredible high. Further I analysed the timestamps of the EcgData package and those timestamps jump back and forward. So it seems, that you have two packages at once.

How to Reproduce
Dump all EcgData and analyse the timestamps.

Expected behavior
Continuous ecg data record with roughly same sample rate.

Screenshots and logs
First 5h of a 24h test recording. Rest of the data has no issues.
EcgSample timestamps
This are the EcgSample timestamp differences (ns, log scale). They fluctuate between 0 and 7685000 ns (130.1Hz). Sometimes the frame rate is constant, but increases periodically. Also there are some gaps with data loss(positive spikes).
EcgData timestamps
This are the timestamps (in ms) of the EcgData (all zero values were removed for better visualisation), sorted by the absolute timestamps of the EcgSample. So, if everything is right the EcgData is dumped each 500ms, but sometimes we have 2 EcgData for the same EcgSample timestamp.

@latownjo latownjo added the bug Something isn't working label Jul 24, 2023
@latownjo
Copy link
Author

latownjo commented Jul 25, 2023

It seems that the SDK were connected to multiple devices. Here a sequence of the ecg channel with overlapping ecgs.
ecg0

@latownjo latownjo reopened this Jul 25, 2023
@aburashima
Copy link

aburashima commented Oct 13, 2023

Hi latownjo,

Could you please tell me how I can launch ECG data stream on Polar H10 device?
I tried to use API call startEcgStreaming(...) on having received bleSdkFeatureReady for .ecg feature, but got error "controlPointRequestFailed(errorCode: 5, description: "Invalid parameter"".
What "settings" values do you use for calling startEcgStreaming(...)?

Thank you in advance!

@latownjo
Copy link
Author

Hi @aburashima,

I used the normal API: requestStreamSettings and called maxSettings on that class.

Hope the info helps.

@aburashima
Copy link

Hi @aburashima,

I used the normal API: requestStreamSettings and called maxSettings on that class.

Hope the info helps.

Yes, it helped! Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants