اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release
بدلاً من aosp-main
لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في AOSP.
نظرة عامة
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
إنّ إدارة الطاقة أمر مهم للتطبيقات المخصّصة للسيارات، وتختلف متطلبات
الطاقة اختلافًا كبيرًا عن الأجهزة الجوّالة، بما في ذلك:
- استهلاك طاقة منخفض جدًا عندما تكون المركبة متوقفة من المفترض أن تظل طاقة البطارية في المركبة
كافية لتشغيلها، حتى بعد مرور عدة أشهر.
- استجابة سريعة للغاية لتشغيل الكاميرا الخلفية والصوت وشاشة البدء (قبل تشغيل نظام التشغيل Android نفسه)
- بدء التشغيل السريع إلى الشاشة الرئيسية في Android كي يتمكّن المستخدم من التفاعل مع
الجهاز
- استئناف أو استعادة حالات التطبيقات (مثل محطة الراديو و
إرشادات التنقّل) بعد إعادة تشغيل الجهاز
يعالج فريق Android Automotive مشاكل إدارة
الطاقة الخاصة بالمركبات من خلال مخطّط جديد لإدارة الطاقة، بما في ذلك:
- سياسة الطاقة
تعرَّف على كيفية التأكّد من تفعيل مكونات الأجهزة والبرامج (مثل الشاشة
والصوت والتفاعل الصوتي) وإيقافها بشكل انتقائي حسب الحاجة.
- إدارة الطاقة:
يحدِّد آلة حالة الطاقة المستخدَمة في Android Automotive، ويقدّم أمثلة على تسلسلات بدء/إيقاف/تنشيط وضع السكون، ويسرد سمات Vehicle HAL ذات الصلة بإدارة الطاقة.
- وضع المرآب:
يحدِّد وضع الطاقة المنخفضة الذي تنفِّذ فيه المركبة مهام الصيانة اللازمة (مثل تحديثات نظام التشغيل والتطبيقات) عندما تكون المركبة متوقفة.
- إدارة وقت بدء التشغيل
يحدِّد الاختلافات بين عمليات التمهيد في Android وAndroid Automotive، ويقدّم نصائح لتحسين وقت التمهيد، ويقدّم تعليمات لبدء الخدمات، مثل كاميرا الرؤية الخلفية، في وقت مبكر من تسلسل التمهيد.
بنية الأجهزة
كما هو موضّح في الشكل أدناه، وحدة التحكّم الدقيق بالمركبة (VMCU):
عند إيقاف تشغيل المركبة، يدخل نقطة الاتصال في إحدى الحالات التالية:
-
يحدث وضع السكون عندما يقرر وحدة التحكّم في الشبكة الافتراضية الاحتفاظ بالطاقة
الرئيسية لنقطة الوصول من أجل الاستيقاظ الفوري. يتم عادةً إرسال إشارة تنشيط إلى
وحدة التحكّم في حدود الجلسة من خلال منفذ GPIO.
-
يحدث وضع الإسبات عندما يقرر وحدة التحكّم في الفيديو (VMCU) الاحتفاظ بمحتوى الذاكرة مع
قطع التيار الكهربائي الرئيسي. عادةً ما يحمِّل نقطة الوصول محتويات الذاكرة المحفوظة عند تشغيلها في المرة التالية.
-
يحدث الإيقاف عندما يقرر وحدة التحكّم في الوسائط (VMCU) حجز
البطارية. يجب أن يتم تشغيل نقطة الوصول من خلال إعادة التشغيل من حالة إيقاف التشغيل الكامل عند تشغيلها في المرة التالية.
يجب أن تكون ناقل بيانات وحدة التحكّم في المركبة (VMCU) وحدة تحكّم في الأجهزة الطرفية (AP) ثنائية الاتجاه، مثل واجهة SPI، ويجب أن تكون ظاهرة في HAL للمركبة. ويمكن استخدامها
لإرسال أحداث مثل:
- تفعيل شاشة نقطة الوصول أو إيقافها
- تنشيط نقطة الوصول (يمكن أن يحدث من خلال GPIO)
- تفعيل شاشة الكاميرا الخلفية في السيارة أو إيقافها
- اكتمال عملية إيقاف نقطة الوصول (إلى وحدة التحكّم في الفيديو)
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Overview\n\n*Power management* is critical to automotive apps, and power\nrequirements differ vastly from mobile devices, including:\n\n- Near-zero power consumption while the vehicle is parked. The vehicle should still have enough battery charge to start, even after many months.\n- Extremely fast power-on response for rear-view camera, audio, and splash screen (before Android itself boots).\n- Quick boot into Android home screen so that user can interact with the device.\n- Resume/restore app states (such as the radio station and navigation guidance) after power cycle.\n\nThe Android Automotive team is addressing automotive-specific power\nmanagement issues with a new power management scheme, including:\n\n- [Power policy](/docs/automotive/power/power_policy). Learn how to ensure that hardware and software components (such as display, audio, and voice interaction) are selectively turned on and off as needed.\n- [Power management](/docs/automotive/power/power). Defines the power state machine used by Android Automotive, provides example sleep/shutdown/wake sequences, and lists the Vehicle HAL properties related to power management.\n- [Garage Mode](/docs/automotive/power/garage_mode). Defines a low power mode in which the vehicle executes necessary maintenance tasks (such as OS and app updates) while the vehicle is parked.\n- [Managing boot time](/docs/automotive/power/boot_time). Defines differences between the Android and Android Automotive boot processes, provides tips for optimizing boot time, and gives instructions for starting services such as the rear view camera early in the boot sequence.\n\nHardware architecture\n---------------------\n\nAs illustrated in the figure below, the Vehicle Microcontroller Unit (VMCU):\n\n- Interfaces with the vehicle's native interface. For example, the Controller Area Network (CAN) bus.\n- Controls the power of the app processor (AP), which handles infotainment, presuming the AP is powered by Android.\n- Communicates to the AP through the data bus and general purpose I/O (GPIO) pins to inform activities such as state transitions. \n\n **Figure 1.** Hardware blocks\n\nOn vehicle power off, the AP enters into one of the following states:\n\n- **Sleep** occurs when the VMCU decides to retain the AP's\n main power for instant wake-up. Typically, a wake-up signal would be sent to\n the AP through the GPIO.\n\n- **Hibernation** occurs when the VMCU decides to keep the memory contents while\n cutting the main power. Typically, The AP loades the saved memory contents at the next power on.\n\n- **Shutdown** occurs when the VMCU decides to reserve\n battery. The AP must cold boot at next power on.\n\nThe VMCU-AP data bus must be a bidirectional interface such as Serial\nPeripheral Interface (SPI), and must be exposed in the Vehicle HAL. It may be\nused to send events such as:\n\n- AP display On or Off.\n- AP wake-up (can occur through the GPIO).\n- AP rear-view camera display On or Off.\n- AP shut-down complete (to the VMCU)."]]