java.lang.Object
com.smartdevicelink.proxy.RPCStruct
com.smartdevicelink.proxy.RPCMessage
com.smartdevicelink.proxy.RPCNotification
Callback for the periodic and non periodic vehicle data read function.
Note:
Initially SDL sends SubscribeVehicleData for getting the periodic updates from HMI whenever each of subscribed data types changes. OnVehicleData is expected to bring such updated values to SDL
Parameter List
Param Name | Type | Description | Req. | Notes | Version Available |
---|---|---|---|---|---|
Gps | Boolean | GPS data. See com.smartdevicelink.proxy.rpc.GPSData for details | N | Subscribable | SmartDeviceLink 2.0 |
Speed | Float | The vehicle speed in kilometers per hour | N | Subscribable | SmartDeviceLink 2.0 |
rpm | Integer | The number of revolutions per minute of the engine | N | Subscribable | SmartDeviceLink 2.0 |
fuelLevel | Double | The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec7.0, please see fuelRange. | N | Subscribable | SmartDeviceLink 7.0.0 |
fuelLevel_State | ComponentVolumeStatus | The fuel level state. This parameter is deprecated starting RPC Spec 7.0, please see fuelRange. | N | Subscribable | SmartDeviceLink 7.0.0 |
fuelRange | List |
The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle. See struct FuelRange for details. | N | {"array_min_size": 0, "array_max_size": 100} | SmartDeviceLink 5.0.0 |
instantFuelConsumption | Float | The instantaneous fuel consumption in micro litres | N | Subscribable | SmartDeviceLink 2.0 |
externalTemperature | Float | The external temperature in degrees celsius. | N | Subscribable | SmartDeviceLink 2.0 |
vin | String | Vehicle identification number. | N | Subscribable | SmartDeviceLink 2.0 |
gearStatus | GearStatus | See GearStatus | N | SmartDeviceLink 7.0.0 | |
prndl | PRNDL | See PRNDL. This parameter is deprecated and it is now covered in `gearStatus` | N | SmartDeviceLink 7.0.0 | |
tirePressure | TireStatus | Tire pressure status | N | Subscribable | SmartDeviceLink 2.0 |
odometer | Integer | Odometer in km | N | Subscribable | SmartDeviceLink 2.0 |
beltStatus | BeltStatus | The status of the seat belts. | N | Subscribable | SmartDeviceLink 2.0 |
bodyInformation | BodyInformation | The body information including power modes. | N | Subscribable | SmartDeviceLink 2.0 |
deviceStatus | DeviceStatus | The connected mobile device status including signal and battery strength. | N | Subscribable | SmartDeviceLink 2.0 |
eCallInfo | ECallInfo | Emergency Call notification and confirmation data. | N | Subscribable | SmartDeviceLink 2.0 |
airbagStatus | AirBagStatus | The status of the air bags. | N | Subscribable | SmartDeviceLink 2.0 |
emergencyEvent | EmergencyEvent | Information related to an emergency event (and if it occurred). | N | Subscribable | SmartDeviceLink 2.0 |
clusterModeStatus | ClusterModeStatus | The status modes of the instrument panel cluster. | N | Subscribable | SmartDeviceLink 2.0 |
myKey | MyKey | Information related to the MyKey feature. | N | Subscribable | SmartDeviceLink 2.0 |
driverBraking | vehicleDataEventStatus | The status of the brake pedal. | N | Subscribable | SmartDeviceLink 2.0 |
wiperStatus | WiperStatus | The status of the wipers | N | SmartDeviceLink 2.0 | |
headLampStatus | headLampStatus | Status of the head lamps | N | SmartDeviceLink 2.0 | |
engineTorque | Float | Torque value for engine (in Nm) on non-diesel variants | N | minvalue:-1000; maxvalue:2000 | SmartDeviceLink 2.0 |
engineOilLife | Float | The estimated percentage of remaining oil life of the engine | N | minvalue:0; maxvalue:100 | SmartDeviceLink 5.0 |
accPedalPosition | Float | Accelerator pedal position (percentage depressed) | N | minvalue: 0; maxvalue:100 | SmartDeviceLink 2.0 |
steeringWheelAngle | Float | Current angle of the steering wheel (in deg) | N | minvalue: -2000; maxvalue:2000 | SmartDeviceLink 2.0 |
cloudAppVehicleID | String | ID for the vehicle when connecting to cloud applications | N | SmartDeviceLink 5.1 | |
handsOffSteering | Boolean | To indicate whether driver hands are off the steering wheel | N | SmartDeviceLink 7.0.0 | |
windowStatus | List |
See WindowStatus | N | SmartDeviceLink 7.0.0 | |
climateData | ClimateData | See ClimateData | N | SmartDeviceLink 7.1.0 | |
stabilityControlsStatus | StabilityControlsStatus | See StabilityControlsStatus | N | SmartDeviceLink 7.0.0 | |
seatOccupancy | SeatOccupancy | See SeatOccupancy | N | SmartDeviceLink 7.1.0 |
public static final java.lang.String KEY_SPEED
public static final java.lang.String KEY_RPM
public static final java.lang.String KEY_EXTERNAL_TEMPERATURE
public static final java.lang.String KEY_VIN
public static final java.lang.String KEY_PRNDL
public static final java.lang.String KEY_TIRE_PRESSURE
public static final java.lang.String KEY_ENGINE_TORQUE
public static final java.lang.String KEY_ENGINE_OIL_LIFE
public static final java.lang.String KEY_ODOMETER
public static final java.lang.String KEY_GPS
public static final java.lang.String KEY_INSTANT_FUEL_CONSUMPTION
public static final java.lang.String KEY_BELT_STATUS
public static final java.lang.String KEY_BODY_INFORMATION
public static final java.lang.String KEY_DEVICE_STATUS
public static final java.lang.String KEY_DRIVER_BRAKING
public static final java.lang.String KEY_WIPER_STATUS
public static final java.lang.String KEY_HEAD_LAMP_STATUS
public static final java.lang.String KEY_ACC_PEDAL_POSITION
public static final java.lang.String KEY_STEERING_WHEEL_ANGLE
public static final java.lang.String KEY_E_CALL_INFO
public static final java.lang.String KEY_AIRBAG_STATUS
public static final java.lang.String KEY_EMERGENCY_EVENT
public static final java.lang.String KEY_CLUSTER_MODE_STATUS
public static final java.lang.String KEY_MY_KEY
public static final java.lang.String KEY_FUEL_RANGE
public static final java.lang.String KEY_TURN_SIGNAL
public static final java.lang.String KEY_ELECTRONIC_PARK_BRAKE_STATUS
public static final java.lang.String KEY_CLOUD_APP_VEHICLE_ID
public static final java.lang.String KEY_HANDS_OFF_STEERING
public static final java.lang.String KEY_WINDOW_STATUS
public static final java.lang.String KEY_GEAR_STATUS
public static final java.lang.String KEY_CLIMATE_DATA
public static final java.lang.String KEY_FUEL_LEVEL
public static final java.lang.String KEY_FUEL_LEVEL_STATE
public static final java.lang.String KEY_STABILITY_CONTROLS_STATUS
public static final java.lang.String KEY_SEAT_OCCUPANCY
public OnVehicleData()
public OnVehicleData(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
public com.smartdevicelink.proxy.rpc.OnVehicleData setGps(GPSData gps)
public com.smartdevicelink.proxy.rpc.GPSData getGps()
public com.smartdevicelink.proxy.rpc.OnVehicleData setSpeed(Double speed)
public java.lang.Double getSpeed()
public com.smartdevicelink.proxy.rpc.OnVehicleData setRpm(Integer rpm)
public java.lang.Integer getRpm()
Deprecated
Sets the fuelLevel.
public com.smartdevicelink.proxy.rpc.OnVehicleData setFuelLevel(Double fuelLevel)
Deprecated
Gets the fuelLevel.
public java.lang.Double getFuelLevel()
Deprecated
public com.smartdevicelink.proxy.rpc.OnVehicleData setFuelLevelState(ComponentVolumeStatus fuelLevelState)
Deprecated
public com.smartdevicelink.proxy.rpc.enums.ComponentVolumeStatus getFuelLevelState()
public com.smartdevicelink.proxy.rpc.OnVehicleData setInstantFuelConsumption(Double instantFuelConsumption)
public java.lang.Double getInstantFuelConsumption()
Deprecated
Sets the externalTemperature.
public com.smartdevicelink.proxy.rpc.OnVehicleData setExternalTemperature(Double externalTemperature)
Deprecated
Gets the externalTemperature.
public java.lang.Double getExternalTemperature()
public com.smartdevicelink.proxy.rpc.OnVehicleData setVin(String vin)
public java.lang.String getVin()
Deprecated
Sets the prndl.
public com.smartdevicelink.proxy.rpc.OnVehicleData setPrndl(PRNDL prndl)
Deprecated
Gets the prndl.
public com.smartdevicelink.proxy.rpc.enums.PRNDL getPrndl()
Sets the tirePressure.
public com.smartdevicelink.proxy.rpc.OnVehicleData setTirePressure(TireStatus tirePressure)
public com.smartdevicelink.proxy.rpc.TireStatus getTirePressure()
public com.smartdevicelink.proxy.rpc.OnVehicleData setOdometer(Integer odometer)
public java.lang.Integer getOdometer()
public com.smartdevicelink.proxy.rpc.OnVehicleData setBeltStatus(BeltStatus beltStatus)
public com.smartdevicelink.proxy.rpc.BeltStatus getBeltStatus()
public com.smartdevicelink.proxy.rpc.OnVehicleData setBodyInformation(BodyInformation bodyInformation)
public com.smartdevicelink.proxy.rpc.BodyInformation getBodyInformation()
public com.smartdevicelink.proxy.rpc.OnVehicleData setDeviceStatus(DeviceStatus deviceStatus)
public com.smartdevicelink.proxy.rpc.DeviceStatus getDeviceStatus()
public com.smartdevicelink.proxy.rpc.OnVehicleData setDriverBraking(VehicleDataEventStatus driverBraking)
public com.smartdevicelink.proxy.rpc.enums.VehicleDataEventStatus getDriverBraking()
public com.smartdevicelink.proxy.rpc.OnVehicleData setWiperStatus(WiperStatus wiperStatus)
public com.smartdevicelink.proxy.rpc.enums.WiperStatus getWiperStatus()
public com.smartdevicelink.proxy.rpc.OnVehicleData setHeadLampStatus(HeadLampStatus headLampStatus)
public com.smartdevicelink.proxy.rpc.HeadLampStatus getHeadLampStatus()
public com.smartdevicelink.proxy.rpc.OnVehicleData setEngineTorque(Double engineTorque)
public java.lang.Double getEngineTorque()
public com.smartdevicelink.proxy.rpc.OnVehicleData setEngineOilLife(Float engineOilLife)
public java.lang.Float getEngineOilLife()
public com.smartdevicelink.proxy.rpc.OnVehicleData setAccPedalPosition(Double accPedalPosition)
public java.lang.Double getAccPedalPosition()
public com.smartdevicelink.proxy.rpc.OnVehicleData setSteeringWheelAngle(Double steeringWheelAngle)
public java.lang.Double getSteeringWheelAngle()
public com.smartdevicelink.proxy.rpc.OnVehicleData setECallInfo(ECallInfo eCallInfo)
public com.smartdevicelink.proxy.rpc.ECallInfo getECallInfo()
public com.smartdevicelink.proxy.rpc.OnVehicleData setAirbagStatus(AirbagStatus airbagStatus)
public com.smartdevicelink.proxy.rpc.AirbagStatus getAirbagStatus()
public com.smartdevicelink.proxy.rpc.OnVehicleData setEmergencyEvent(EmergencyEvent emergencyEvent)
public com.smartdevicelink.proxy.rpc.EmergencyEvent getEmergencyEvent()
public com.smartdevicelink.proxy.rpc.OnVehicleData setClusterModeStatus(ClusterModeStatus clusterModeStatus)
public com.smartdevicelink.proxy.rpc.ClusterModeStatus getClusterModeStatus()
public com.smartdevicelink.proxy.rpc.OnVehicleData setMyKey(MyKey myKey)
public com.smartdevicelink.proxy.rpc.MyKey getMyKey()
Sets the fuelRange.
public com.smartdevicelink.proxy.rpc.OnVehicleData setFuelRange(java.util.List<com.smartdevicelink.proxy.rpc.FuelRange> fuelRange)
Gets the fuelRange.
public java.util.List getFuelRange()
Sets turnSignal
public com.smartdevicelink.proxy.rpc.OnVehicleData setTurnSignal(TurnSignal turnSignal)
Gets turnSignal
public com.smartdevicelink.proxy.rpc.enums.TurnSignal getTurnSignal()
Sets electronicParkBrakeStatus
public com.smartdevicelink.proxy.rpc.OnVehicleData setElectronicParkBrakeStatus(ElectronicParkBrakeStatus electronicParkBrakeStatus)
Gets electronicParkBrakeStatus
public com.smartdevicelink.proxy.rpc.enums.ElectronicParkBrakeStatus getElectronicParkBrakeStatus()
Sets a string value for the cloud app vehicle ID
public com.smartdevicelink.proxy.rpc.OnVehicleData setCloudAppVehicleID(String cloudAppVehicleID)
Gets a String value of the returned cloud app vehicle ID
public java.lang.String getCloudAppVehicleID()
Sets a value for OEM Custom VehicleData.
public com.smartdevicelink.proxy.rpc.OnVehicleData setOEMCustomVehicleData(String vehicleDataName,Object vehicleDataState)
Gets a VehicleData value for the vehicle data item.
public java.lang.Object getOEMCustomVehicleData(String vehicleDataName)
Sets the windowStatus.
public com.smartdevicelink.proxy.rpc.OnVehicleData setWindowStatus(java.util.List<com.smartdevicelink.proxy.rpc.WindowStatus> windowStatus)
Gets the windowStatus.
public java.util.List getWindowStatus()
Gets the stabilityControlsStatus.
public com.smartdevicelink.proxy.rpc.StabilityControlsStatus getStabilityControlsStatus()
Sets the stabilityControlsStatus.
public com.smartdevicelink.proxy.rpc.OnVehicleData setStabilityControlsStatus(StabilityControlsStatus stabilityControlsStatus)
Sets the handsOffSteering.
public com.smartdevicelink.proxy.rpc.OnVehicleData setHandsOffSteering(Boolean handsOffSteering)
Gets the handsOffSteering.
public java.lang.Boolean getHandsOffSteering()
Sets the gearStatus.
public com.smartdevicelink.proxy.rpc.OnVehicleData setGearStatus(GearStatus gearStatus)
Gets the gearStatus.
public com.smartdevicelink.proxy.rpc.GearStatus getGearStatus()
Sets the climateData.
public com.smartdevicelink.proxy.rpc.OnVehicleData setClimateData(ClimateData climateData)
Gets the climateData.
public com.smartdevicelink.proxy.rpc.ClimateData getClimateData()
Sets the seatOccupancy.
public com.smartdevicelink.proxy.rpc.OnVehicleData setSeatOccupancy(SeatOccupancy seatOccupancy)
Gets the seatOccupancy.
public com.smartdevicelink.proxy.rpc.SeatOccupancy getSeatOccupancy()
From Class | Methods |
---|---|
com.smartdevicelink.proxy.RPCMessage | getFunctionID, getFunctionName, setFunctionName, getMessageType, setParameters, getParameters, getObject, getString, getInteger, getFloat, getDouble, getBoolean, getLong |
com.smartdevicelink.proxy.RPCStruct | getStoreValue, getStore, deserializeJSON, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode |
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |