polarofficial / polar-ble-sdk

Repository includes SDK and code examples. More info https://polar.com/en/developers
Other
449 stars 147 forks source link

Possible to download accelerometer on Polar Verity Sense after 24 hours? #337

Closed RealLast closed 1 year ago

RealLast commented 1 year ago

Platform your question concerns:

Device:

Description:

Hello,

we would like to use the Polar Verity Sense in a study where we measure accelerometer data over 24 hours. As far as we understood, accelerometer data can be transmitted live when a bluetooth connection is available. However, this means that for continuous measurements, the mobile phone always has to be within reach of the Polar. This is not feasible for us, since we can not guarantee that participants will always have their phone with them.

Is it possible to use this SDK to record accelerometer data locally over 24 hours and download it afterward? Alternatively, it would also be an option to download data in shorter intervals, such as every 6 hours, if the internal memory of the Polar is not big enough to store data for 24 hours.

Thank you very much.

Best regards

JOikarinen commented 1 year ago

Hi @RealLast, sorry for delayed reply.

Is it possible to use this SDK to record accelerometer data locally over 24 hours and download it afterward?

The latest beta version of the SDK allows for offline recording directly to the Polar Verity Sense device memory, eliminating the need for continuous BLE streaming. You can learn more about offline recording in the documentation, available at this link: https://github.com/polarofficial/polar-ble-sdk/blob/polar-ble-sdk-5.0.0/documentation/OfflineRecordingExplained.md

Alternatively, it would also be an option to download data in shorter intervals, such as every 6 hours, if the internal memory of the Polar is not big enough to store data for 24 hours.

The VeritySense device has 13.7MB of memory available for offline recordings. Assuming previously saved recordings have been removed from the device's memory, it can accommodate 24 hours of ACC data sampled at 26Hz. The Verity Sense compresses the offline recording data very effectively. The compression rate however depends on various factors. However, it is possible to calculate worst-case scenarios. For instance, if data is sampled at 52Hz, VeritySense can store at least 12 hours of ACC data, and if sampled at 26Hz, at least 23 hours of ACC data can be stored.