Google Fit 应用程序如何在不耗尽电池电量的情况下一直测量步数? [英] How is it possible that Google Fit app measures number of steps all the time without draining battery?

查看:31
本文介绍了Google Fit 应用程序如何在不耗尽电池电量的情况下一直测量步数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google Fit 应用在安装后会测量您步行或跑步的持续时间,以及一直的步数.然而,奇怪的是,使用它似乎并没有耗尽电池.其他应用程序,如 Moves 似乎非常准确地记录了步数,声明它由于它不断监控 GPS 和加速度计,因此消耗大量电量.

The Google Fit app, when installed, measures the duration you are walking or running, and also the number of steps all the time. However, strangely, using it does not seem to drain the battery. Other apps like Moves which seems to record number of steps pretty accurately declares that it uses a lot of power because of it constantly monitoring the GPS and the accelerometer.

我想象了几种可能性:

  • 每分钟左右唤醒一次手机,然后分析传感器几秒钟,然后再次入睡.不过好像每分钟的记录都挺准确的,所以起床一定很频繁.
  • 实际上一直打开加速度计,只有在加速度计测量数据缓冲区已满后才对其进行分析.不过我认为加速度计有一个小的缓冲区来存储最新的测量值.
  • 使用 GPS 来估计步数,而不是实际计算步数.然而事实并非如此,因为它甚至可以在室内使用.
  • Wakes up the phone every minute or so, then analyses the sensors for a few seconds and then sleeps again. However it seems that the records are pretty accurate to the minute, so the waking up must be frequent.
  • Actually turns on the accelerometer all the time, and analyzes it only after the accelerometer measurement data buffer is full. However I think the accelerometer has a small buffer to store the latest measurements.
  • Use GPS to estimate the number of steps instead of actually counting it. However this should not be the case, since it works even indoors.

该应用仍然感觉神奇.全程计算步数,没有明显的电池消耗.

The app still feels magical. Counting steps the whole time without perceptible battery drain.

推荐答案

感谢您提出这个问题!

电池是我们最关心的问题之一,我们努力优化 Google Fit 的电池使用情况并提供神奇的体验.Google Fit 混合使用传感器(加速度计、计步器、显着运动计数器)、机器学习和启发式方法来获取正确的数据.我们的算法与您的第一个选项非常相似,外加一点魔法.

Battery is one of our top most concerns and we work hard to optimize Google Fit's battery usage and provide a magical experience. Google Fit uses a mix of sensors(Accelerometer, Step counter, Significant Motion counter), Machine Learning and heuristics to get the data right. Our algorithm is pretty similar to your 1st option plus a little bit of magic.

我们会定期轮询加速度计并使用机器学习和启发式方法来正确识别活动和持续时间.对于带有硬件计步器的设备,我们使用这些计步器来监控步数.对于较旧的设备,我们使用检测到的活动来预测正确的步数.我们的算法合并了这些活动、步骤和有时的位置,以关联并进一步提高准确性.

We periodically poll accelerometer and use Machine Learning and heuristics to correctly identify the activity and duration. For devices with hardware step counters, we use these step counters to monitor step counts. For older devices, we use the activity detected to predict the right number of steps. Our algorithms merge these activities, steps and sometimes location to correlate and further increase accuracy.

我们不会轮询 GPS 来估计步数或检测活动.

We do not poll GPS to estimate steps or detect activities.

-- Google Fit 团队的工程师.

这篇关于Google Fit 应用程序如何在不耗尽电池电量的情况下一直测量步数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆