blob: ef723086220cb7acfd7b1ee8373f55d033df7e7a [file] [log] [blame]
<html devsite><head>
<title>耗电量</title>
<meta name="project_path" value="/_project.yaml"/>
<meta name="book_path" value="/_book.yaml"/>
</head>
<body>
<!--
Copyright 2017 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<h2 id="low_power_sensors">低功率传感器</h2>
<p>某些传感器类型被定义为低功率传感器。低功率传感器必须以低功率运行,其处理在硬件中完成。这意味着它们不能要求运行 SoC。以下是一些低功率传感器类型:</p>
<ul>
<li>地磁旋转矢量计</li>
<li>大幅运动感测器</li>
<li>计步器</li>
<li>步测器</li>
<li>倾斜探测器</li>
</ul>
<p>它们在<a href="sensor-types.html#composite_sensor_type_summary">复合传感器类型汇总</a>表中带有低功率 (<img src="images/battery_icon.png" width="20" height="20" alt="低功率传感器"/>) 图标。</p>
<p>这些传感器类型不能在高功率下实现,因为它们的主要优势就是耗电量低。这些传感器预计会长期处于激活状态,很可能是全天候。对于低功率传感器,宁愿不实现,也不要在高功率下实现,否则会导致过度耗电。</p>
<p>复合低功率传感器类型(如步测器)的处理过程必须在硬件中进行。</p>
<p>有关具体的功率要求,请参阅 CDD,并应在 CTS 中进行测试来验证这些功率要求。</p>
<h2 id="power_measurement_process">功率测量过程</h2>
<p>功率是在电池处测量。对于以毫瓦为单位的值,我们使用电池的额定电压,这表示电压为 4 伏时,1 毫安的电流必须相应地计为 4 毫瓦。</p>
<p>在 SoC 处于休眠状态时测量功率,并且在 SoC 休眠的几秒钟内计算平均值,以便将来自传感器芯片的周期性功率峰值考虑在内。</p>
<p>对于单次唤醒传感器,在传感器未触发时测量功率(因此不会唤醒 SoC)。同样,对于其他传感器,会在传感器数据存储在硬件 FIFO 中时测量功率,因此 SoC 不会被唤醒。</p>
<p>当没有传感器激活时,通常以增量形式测量功率。当有多个传感器激活时,功率增量不得大于各激活的传感器的功率之和。如果加速度计的电流为 0.5 毫安,步测器的电流也为 0.5 毫安,则同时激活两者所产生的电流必须小于 0.5 + 0.5 = 1 毫安。</p>
</body></html>