PINE64
bluetooth heart rate real time monitoring - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PineTime (https://forum.pine64.org/forumdisplay.php?fid=134)
+--- Forum: Development Discussion on PineTime (https://forum.pine64.org/forumdisplay.php?fid=136)
+--- Thread: bluetooth heart rate real time monitoring (/showthread.php?tid=15869)



bluetooth heart rate real time monitoring - ptmatrtwo - 01-28-2022

Hi
could be possible with PineTime to send real time heart rate sensor data through bluetooth connection directly (without phone) to a local server ?

Thank you


RE: bluetooth heart rate real time monitoring - barray - 01-28-2022

All of the following would require a programming effort (as far as I'm aware).

Quote:could be possible with PineTime to send real time heart rate sensor data [..]

The PineTime has functionality that allows it to wake periodically (see the new function to show the time each hour) and execute some function. It should be possible to wake the I2C bus, wake the HR sensor, make a reading and go back to sleep - all without entirely powering the device back on.

Quote:[..] through bluetooth connection directly (without phone) to a local server ?

Kind of. You need to get your data from the watch to the server via Bluetooth, so this could happen in bulk either via a Phone or Desktop. The good news is though that it should now be possible to collect HR data without needing to be tethered all the time to another device.

Note though that some important data such as GPS will not be available without a complimentary device offering GPS data.

In the future it could be great to see a PineTimePro that has a little more hardware capability, making it more independent from the need for external devices. Support for WiFi, a magnetometer, GPS and LoRa are all in theory within the realm of possibility - but expect a much more expensive device to result.


RE: bluetooth heart rate real time monitoring - ptmatrtwo - 02-03-2022

Thank you very much Barray!
 
Quote:The good news is though that it should now be possible to collect HR data without needing to be tethered all the time to another device.


Could you please give me some tips about collecting HR data with bluetooth ?


RE: bluetooth heart rate real time monitoring - barray - 02-03-2022

(02-03-2022, 08:51 PM)ptmatrtwo Wrote: Thank you very much Barray!

No problem.

(02-03-2022, 08:51 PM)ptmatrtwo Wrote: Could you please give me some tips about collecting HR data with bluetooth ?

I believe the work to expose the HR data via BT is currently in progress: https://github.com/InfiniTimeOrg/InfiniTime/issues/895

Then you would just need to read it via the sports watch API they use (there should be plenty of examples).