InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.75k stars 943 forks source link

How to get raw PPG data? #2112

Closed marcinkosztolowicz closed 2 months ago

marcinkosztolowicz commented 2 months ago

Verification

Introduce the issue

Hello,

I would like to ask if there's a way to retrieve raw PPG (Photoplethysmography) data from a Pinetime watch running the InfiniTime firmware. I am aware that it's possible to access such data using the wasp-os system, but I'm specifically interested in doing this with InfiniTime.

Is there any existing method, API, or workaround that allows for accessing the raw PPG data? If not, are there any plans to implement this feature in the future?

Thank you in advance for your help!

Preferred solution

Myabe some applicatoin that saves data heartrate data to file system.

Version

v1.14.0

mark9064 commented 2 months ago

The Hrs3300::ReadHrs() method returns the current PPG reading. It probably makes more sense to edit the HeartRateTask though as that takes care of periodic acquisition for you You'd have to implement a way to save it to the filesystem or make it available over BLE. Both are viable options, but BLE only makes sense for realtime transmission to a nearby device

This would be better as a discussion (https://github.com/InfiniTimeOrg/InfiniTime/discussions) rather than an issue BTW

marcinkosztolowicz commented 2 months ago

link to discussion https://github.com/InfiniTimeOrg/InfiniTime/discussions/2113