[go: nahoru, domu]

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

Timestamp for PPI measurements. #484

Closed
2 of 10 tasks
hamletAppsfactory opened this issue Aug 27, 2024 · 4 comments
Closed
2 of 10 tasks

Timestamp for PPI measurements. #484

hamletAppsfactory opened this issue Aug 27, 2024 · 4 comments
Labels
question Further information is requested

Comments

@hamletAppsfactory
Copy link

Platform your question concerns:

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

Device:

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

Why the Timestamp for PPI (PolarPpiData) measurements are deprecated and always 0? Is it possible to get them somehow?

@hamletAppsfactory hamletAppsfactory added the question Further information is requested label Aug 27, 2024
@orestesgaolin
Copy link
Contributor

In our case we just assume that the last PPI sample comes from current instant, and samples before that are x ms before that e.g. if we get a batch of [300,500,900] ms then they are at [t-(300+500+900), t-(500+900), t-900] where t is now

@hamletAppsfactory
Copy link
Author

Thanks for the reply, let's assume this is not an offline recording and there is no startTime provided by the device(or SDK).
What is now in this case:

  1. the time of receiving the first measurement
  2. the time of sending the command to the device to start the streaming?
    In my case with OH1 there is a difference between those two points around 3-5 seconds.

@orestesgaolin
Copy link
Contributor

I'd assume it's more likely that time of receiving the measurement is closer to reality.

I suspect the algorithm that determines the PPI values requires several cycles to establish a baseline. When switching to PPI mode you can notice that HR stream stops for a while and starts over.

@jimmyzumthurm
Copy link
Member

@orestesgaolin is correct. I think it's even 25 seconds to receive the first sample after the start command, which contains 5 second windows of PPI samples. The algorithm inside Verity Sense doesn't calculate any timestamp for the samples and this is why it's not provided for PPI data for Verity Sense.

Some other devices such as Polar 360 do have timestamps attached to PPI data as they have more recent algorithm that provide it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants