Gadgetbridge/app/src/main
Patrick Rudolph 42b7153162 huawei: Decode TruSleep data in test new functionality
Download TruSleep data and extract ACC and PPG packets.
For now the data is only extracted and provided to an analysis
function that does nothing as printing the data as the TruSleep
algorithm is unknown.

With this patch it's possible to do sleep analysis using open source
algorithms, however it's not clear which one to use and how similar
the results would be. A possible use case would be Sleep as Android.

The extracted data contains of Accelerometer data (ACC) and
photoplethysmogram (PPG) data.

ACC packets:
- about every 60 seconds
- contain a timestamp
- contain the activity on one accelerometer axis
  0x00: no activity
  0xff: high activity (like walking)

PPG packets:
- contain a timestamp
- contain raw PPG samples, each with a 10msec based timestamp

This commit allows more developers and researchers to look into sleep
analysis as they gain access to the raw sleep data optained from the watch.

For issue #3860.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
2024-10-26 16:02:14 +00:00
..
aidl OsmAnd: Replace IOsmAndAidlInterface unneeded functions 2023-05-21 22:50:52 +02:00
assets Limit logcat tags to 80 characters 2024-08-30 22:38:22 +01:00
java huawei: Decode TruSleep data in test new functionality 2024-10-26 16:02:14 +00:00
proto Xiaomi: add support for different bitmap pixel formats, fix notification icons 2024-09-20 23:39:34 +02:00
res Huawei: improve texts for file uploads, music icon 2024-10-25 22:39:55 +00:00
AndroidManifest.xml Add device support for the IKEA desk controller 2024-10-15 18:23:56 +00:00
lint.xml Lint: Ignore missing and extra translations 2023-10-08 21:46:37 +01:00
project.properties