Skip to content
Vehicle properties
Power & shutdown

AP_POWER_STATE_REQ

What it is

Property to control power state of application processor

It is assumed that AP's power state is controlled by a separate power controller.

For configuration information, VehiclePropConfig.configArray must have bit flag combining values in VehicleApPowerStateConfigFlag.

  configArray[0] : Bit flag combining values in VehicleApPowerStateConfigFlag,
                   0x0 if not used,
                   0x1 for enabling suspend to ram,
                   0x2 for supporting powering on AP from off state after timeout.
                   0x4 for enabling suspend to disk,
  int32Values[0] : VehicleApPowerStateReq enum value
  int32Values[1] : additional parameter relevant for each state,
                   0 if not used.

How the ID is built

A property ID is a 32-bit value packing four fields. Reading 0x11410a00 apart:

FieldMaskValueMeans
Group0xf00000000x10000000SYSTEM
Area0x0f0000000x01000000GLOBAL
Type0x00ff00000x00410000INT32_VEC
Ordinal0x0000ffff0x00000a000xa00

Reading it from an app

CarPropertyManager mgr = (CarPropertyManager)
        car.getCarManager(Car.PROPERTY_SERVICE);

CarPropertyValue<Integer> value =
        mgr.getProperty(VehiclePropertyIds.AP_POWER_STATE_REQ, 0);

This property is read-only — writes are rejected. It fires a callback whenever the value changes.