از 27 مارس 2025، توصیه می کنیم از android-latest-release
به جای aosp-main
برای ساختن و کمک به AOSP استفاده کنید. برای اطلاعات بیشتر، به تغییرات AOSP مراجعه کنید.
نمای کلی
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
مدیریت انرژی برای برنامههای خودرو بسیار مهم است و نیازهای برق به شدت با دستگاههای تلفن همراه متفاوت است، از جمله:
- مصرف برق نزدیک به صفر در هنگام پارک خودرو حتی پس از گذشت چندین ماه، خودرو همچنان باید شارژ باتری کافی برای روشن شدن داشته باشد.
- پاسخ روشن بسیار سریع برای دوربین دید عقب، صدا و صفحه نمایش اسپلش (قبل از بوت شدن خود اندروید).
- بوت شدن سریع در صفحه اصلی اندروید به طوری که کاربر بتواند با دستگاه تعامل داشته باشد.
- از سرگیری/بازیابی وضعیت های برنامه (مانند ایستگاه رادیویی و راهنمای ناوبری) پس از چرخه برق.
تیم Android Automotive در حال رسیدگی به مسائل مربوط به مدیریت انرژی خاص خودرو با یک طرح مدیریت انرژی جدید است، از جمله:
- سیاست قدرت بیاموزید که چگونه اطمینان حاصل کنید که اجزای سخت افزاری و نرم افزاری (مانند صفحه نمایش، صدا، و تعامل صوتی) به صورت انتخابی روشن و خاموش می شوند.
- مدیریت توان . ماشین حالت قدرت مورد استفاده توسط Android Automotive را تعریف میکند، توالیهای خواب/خاموش/بیداری نمونهای را ارائه میکند و ویژگیهای HAL خودرو مربوط به مدیریت انرژی را فهرست میکند.
- حالت گاراژ . حالت کم مصرفی را تعریف می کند که در آن خودرو وظایف تعمیر و نگهداری لازم (مانند به روز رسانی سیستم عامل و برنامه) را در حالی که خودرو پارک شده است، انجام می دهد.
- مدیریت زمان بوت تفاوتهای بین فرآیندهای راهاندازی Android و Android Automotive را تعریف میکند، نکاتی را برای بهینهسازی زمان راهاندازی ارائه میدهد، و دستورالعملهایی را برای راهاندازی سرویسهایی مانند دوربین دید عقب در مراحل اولیه راهاندازی ارائه میدهد.
معماری سخت افزار
همانطور که در شکل زیر نشان داده شده است، واحد میکروکنترلر خودرو (VMCU):
با خاموش شدن خودرو، AP وارد یکی از حالات زیر می شود:
Sleep زمانی اتفاق می افتد که VMCU تصمیم می گیرد قدرت اصلی AP را برای بیدار شدن فوری حفظ کند. به طور معمول، یک سیگنال بیداری از طریق GPIO به AP ارسال می شود.
خواب زمستانی زمانی اتفاق میافتد که VMCU تصمیم میگیرد در حین قطع برق اصلی، محتویات حافظه را حفظ کند. به طور معمول، AP محتویات حافظه ذخیره شده را در روشن شدن بعدی بارگیری می کند.
خاموش شدن زمانی اتفاق می افتد که VMCU تصمیم می گیرد باتری را رزرو کند. AP در روشن شدن بعدی باید بوت سرد شود.
گذرگاه داده VMCU-AP باید یک رابط دو طرفه مانند رابط محیطی سریال (SPI) باشد و باید در HAL خودرو در معرض دید قرار گیرد. ممکن است برای ارسال رویدادهایی مانند:
- نمایش AP روشن یا خاموش.
- بیداری AP (می تواند از طریق GPIO رخ دهد).
- نمایشگر دوربین دید عقب AP روشن یا خاموش.
- خاموش شدن AP کامل شد (به VMCU).
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-29 بهوقت ساعت هماهنگ جهانی."],[],[],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)."]]