![]() |
[question] How does the step counter log data? - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PineTime (https://forum.pine64.org/forumdisplay.php?fid=134) +--- Forum: General Discussion on PineTime (https://forum.pine64.org/forumdisplay.php?fid=135) +--- Thread: [question] How does the step counter log data? (/showthread.php?tid=16868) |
[question] How does the step counter log data? - arock - 06-19-2022 Does the step counter log the number of steps in a period of time in InfiniTime or another OS. If so, does it also log time stamps for when the steps were taken? If not, would it be possible to stream the step counter data to one of the companion apps and log it using the app? Thanks RE: [question] How does the step counter log data? - wibble - 06-20-2022 I think InfiniTime is currently using the accelerometer's built in step count reporting, updating a total number of steps and a resettable 'trip counter' which probably isn't quite what you're after. There is an open issue for Bluetooth PAMP/PAMS (Physical Activity Monitoring Profile / Service) support which would allow an external device that supports the standard (phone app etc.) to log in more detail. That may address your needs but I don't see any activity yet on adding it. https://github.com/InfiniTimeOrg/InfiniTime/blob/develop/src/drivers/Bma421.cpp https://github.com/InfiniTimeOrg/InfiniTime/tree/develop/src/components/motion https://github.com/InfiniTimeOrg/InfiniTime/issues/214 https://www.bluetooth.com/specifications/specs/ |