-
Notifications
You must be signed in to change notification settings - Fork 147
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
Read PPG data from Polar OH1 #213
Comments
Hi @lonelyzerg,
|
Thank you @JOikarinen ! After changing the resolution I am able to get the data I want from the sensor. However I'm not really clear on how to request stream and most of my knowledge are from reading code writen by others. Is there any documentation on the definition of each byte when writing to PMD control point and their valid values? |
@JOikarinen One more question. Is there any way to read saved data recorded by polar oh1 as an independent trainings device? I read from Polar website that there are apps that sync the recorded data, however I need to gather samples from multiple participants at the same time so I will need an efficient way to read saved data from the sensor. Thank you! |
The document you referenced earlier is the one available at the moment. |
|
Thank you for your reply! I wonder if PPG and/or PPI data are also saved in the sensor? If so is there anyway I can download the data after syncing the sensor? |
|
Hi @lonelyzerg . FYI, we have now support of recording raw data (PPG, ACC, GYRO, MAG, PPI, HR) inside device memory to be retrieved later for Verity Sense with version > 2.1.0 and Polar SDK version > 5, see doc : https://github.com/polarofficial/polar-ble-sdk/blob/master/documentation/OfflineRecordingExplained.md Unfortunately this can't be supported for OH1, as it has really small memory compared to Verity Sense, so not much data could be recorded inside it. |
Platform your question concerns:
Device:
Description:
I' trying to read PPG data from my Polar OH1 sensor using Python bleak libarary and get no response. Basically I am writing
bytearray([0x02, 0x01, 0x00, 0x01, 0x82, 0x00, 0x01, 0x01, 0x0E, 0x00])
to PMD Control"FB005C81-02E7-F387-1CAD-8ACD2D8DF0C8"
, and listen to PMD Data"FB005C82-02E7-F387-1CAD-8ACD2D8DF0C8"
usingawait client.start_notify(PMD_DATA, data_conv)
where data_conv is the callback function. I get no response from the sensor.After reading the documentation I tried to read PMD Control. The result is
bytearray(b'\x0f\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
.According to the documentation, 2nd byte represent supported measurement type, and instead of 0x6e in the example of Ploar Verity Sense, my Ploar OH1 gives me 0x0e. If they represent the same thing, this means my sensor does not support ecg/ppg/ppi/acc.
I wonder if there is any problem with firmware so I tried to read the firmware field ("00002A26-0000-1000-8000-00805f9b34fb"). The result is 1.3.9 but I do not know what is the latest firmware version.
It would be really nice if someone can explain to me how reading from the sensor works.
The text was updated successfully, but these errors were encountered: