ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
การใช้พลังงาน
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เซ็นเซอร์พลังงานต่ำ
เซ็นเซอร์บางประเภทได้รับการระบุว่าใช้พลังงานต่ำ เซ็นเซอร์พลังงานต่ำต้องทำงานโดยใช้พลังงานต่ำ โดยประมวลผลในฮาร์ดแวร์ ซึ่งหมายความว่าแอปไม่ควรกำหนดให้ SoC ทำงานอยู่ เซ็นเซอร์พลังงานต่ำบางประเภทมีดังนี้
- เวกเตอร์การหมุนของสนามแม่เหล็กโลก
- การเคลื่อนไหวที่สำคัญ
- ตัวนับก้าว
- ตัวตรวจจับก้าว
- ตัวตรวจจับการเอียง
เซ็นเซอร์เหล่านี้จะมีไอคอนพลังงานต่ำ (
) แสดงอยู่ด้วยในตารางสรุปประเภทเซ็นเซอร์แบบคอมโพสิต
เซ็นเซอร์ประเภทเหล่านี้ไม่สามารถติดตั้งใช้งานที่พลังงานสูงได้ เนื่องจากข้อดีหลักๆ ของเซ็นเซอร์ประเภทนี้คือการใช้แบตเตอรี่ต่ำ เซ็นเซอร์เหล่านี้คาดว่าจะเปิดใช้งานเป็นระยะเวลานานมาก ซึ่งอาจเป็นทุกวันตลอด 24 ชั่วโมง คุณไม่ควรใช้เซ็นเซอร์พลังงานต่ำเลย แทนที่จะใช้แบบพลังงานสูง เนื่องจากจะทำให้แบตเตอรี่หมดเร็วมาก
เซ็นเซอร์ประเภทพลังงานต่ำแบบคอมโพสิต เช่น ตัวตรวจจับจำนวนก้าว ต้องมีการประมวลผลในฮาร์ดแวร์
ดูข้อกำหนดด้านพลังงานที่เฉพาะเจาะจงใน CDD และคาดว่าการทดสอบใน CTS จะยืนยันข้อกำหนดด้านพลังงานเหล่านั้น
กระบวนการวัดกำลังไฟฟ้า
ระบบจะวัดพลังงานที่แบตเตอรี่ สำหรับค่าในมิลลิวัตต์ เราจะใช้แรงดันไฟฟ้าที่ระบุของแบตเตอรี่ ซึ่งหมายความว่ากระแส 1mA ที่ 4V ต้องนับเป็น 4mW
ระบบจะวัดกำลังไฟเมื่อ SoC อยู่ในโหมดสลีป และหาค่าเฉลี่ยของกำลังไฟ SoC ในช่วงที่เข้าสู่โหมดสลีปเป็นเวลา 2-3 วินาที เพื่อพิจารณาการเพิ่มขึ้นของกำลังไฟเป็นระยะๆ จากชิปเซ็นเซอร์
สำหรับเซ็นเซอร์ปลุกแบบครั้งเดียว ระบบจะวัดกำลังไฟขณะที่เซ็นเซอร์ไม่ได้ทริกเกอร์ (เพื่อไม่ให้ปลุก SoC) ในทำนองเดียวกัน สำหรับเซ็นเซอร์อื่นๆ ระบบจะวัดกำลังไฟขณะที่ข้อมูลเซ็นเซอร์จัดเก็บอยู่ใน FIFO ของฮาร์ดแวร์ ดังนั้น SoC จึงจะไม่ตื่นขึ้น
โดยปกติแล้ว พลังงานจะวัดเป็นค่าเดลต้าเมื่อไม่มีเซ็นเซอร์เปิดใช้งาน
เมื่อเปิดใช้งานเซ็นเซอร์หลายตัว กำลังไฟฟ้าส่วนต่างต้องไม่เกินผลรวมของกำลังไฟฟ้าของเซ็นเซอร์ที่เปิดใช้งานแต่ละตัว หากเครื่องวัดความเร่งใช้พลังงาน 0.5 mA และเครื่องตรวจจับจำนวนก้าวใช้พลังงาน 0.5 mA การเปิดใช้งานทั้ง 2 อย่างพร้อมกันต้องใช้พลังงานน้อยกว่า 0.5+0.5=1 mA
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# Power consumption\n\nLow-power sensors\n-----------------\n\nSome sensor types are defined as being low power. Low-power sensors must\nfunction at low power, with their processing done in the hardware. This means\nthey should not require the SoC to be running. Here are some low-power sensor\ntypes:\n\n- Geomagnetic rotation vector\n- Significant motion\n- Step counter\n- Step detector\n- Tilt detector\n\nThey are accompanied by a low-power () icon in the [Composite sensor type\nsummary](/docs/core/interaction/sensors/sensor-types#composite_sensor_types) table.\n\nThese sensor types cannot be implemented at high power as their primary benefit\nis low battery use. These sensors are expected to be activated for very long\nperiods, possibly 24/7. It is better to not implement a low-power sensor at all\nrather than implement it as high power, as it would cause dramatic battery\ndrain.\n\nComposite low-power sensor types, such as the step detector, must have their\nprocessing conducted in the hardware.\n\nSee the CDD for specific power requirements, and expect tests in CTS to\nverify those power requirements.\n\nPower measurement process\n-------------------------\n\nThe power is measured at the battery. For values in milliWatts, we use the\nnominal voltage of the battery, meaning a 1mA current at 4V must be counted as\n4mW.\n\nThe power is measured when the SoC is asleep, and averaged over a few seconds\nof the SoC being asleep, so that periodic spikes in power from the sensor chips\nare taken into account.\n\nFor one-shot wake-up sensors, the power is measured while the sensor doesn't\ntrigger (so it doesn't wake the SoC up). Similarly, for other sensors, the\npower is measured while the sensor data is stored in the hardware FIFO, so the\nSoC is not woken up.\n\nThe power normally is measured as a delta with when no sensor is activated.\nWhen several sensors are activated, the delta in power must be no greater than\nthe sum of the power of each activated sensor. If an accelerometer consumes\n0.5mA and a step detector consumes 0.5mA, then activating both at the same time\nmust consume less than 0.5+0.5=1mA."]]