Skip to main content

Introduction

Overview

The Vehicle SDK provides APIs for retrieving and controlling vehicle information. Third-party apps connect to the Vehicle Service in Pleos Connect through the Vehicle SDK. The Vehicle Service runs on Android Automotive OS; third-party apps request vehicle information retrieval and control via Vehicle SDK APIs, and the Vehicle Service handles those requests.

Entry point and domain structure

Vehicle SDK APIs are provided as domain interfaces such as Brake, CarInfo, Display, Door, DrivingMode, EvBattery, Fuel, HVAC, and Light. Domain objects such as Door and Brake are not created directly; obtain them only via getXxx() methods on an instance of Vehicle, the Vehicle SDK entry point—for example getDoor() and getBrake(). On the domain object, call capability, get, set, and callback APIs. Capability (checkXXXCapabilities) checks feature support and allowed value ranges; get reads the current value; set writes a value. Callback registers listeners to subscribe to state changes.

Connect to the vehicle service with initialize(), and call release() when finished. Because vehicle communication uses IPC, capability, get, and set results are not returned synchronously; they are delivered via asynchronous onComplete and onFailed lambdas. Do not call release() before async callbacks complete.

DomainDescription
BrakeQuery brake pedal and parking brake status
CarInfoQuery basic vehicle information (dimensions, manufacturer, model year, etc.)
DisplayQuery/set infotainment display data units (e.g., temperature unit)
DoorControl and query door open/close, lock/unlock, and status
DrivingModeQuery drive mode and cruise control information
EvBatteryQuery EV battery and charging status, and efficiency (EV economy)
FuelQuery fuel-related information such as fuel economy
HVACControl and query heating, ventilation, and A/C (temperature, airflow, humidity, etc.)
LightQuery lighting status and control ambient lights, etc.
OdometerQuery total distance, trip distance/time, and distance unit
SafetyQuery vehicle warning information
SeatControl and query seat position, angle, and functions
SideMirrorQuery/set side mirror heating status
SteeringwheelQuery steering wheel status and heating; control heating
TireQuery tire status
TollQuery/set ETCS (hi-pass) voice guidance volume, etc.
TurnSignalQuery turn signal status
WindowControl and query window status
WiperControl and query wiper status

Emulator setup

Develop and verify the Vehicle SDK in the Pleos Connect Emulator environment. Prepare your development environment in the following order.

  1. Check development environment requirements
  2. Install the Pleos Connect Emulator
  3. Create and run an AVD
  4. Configure microphone access
  5. Configure cold boot
  6. Connect a Bluetooth dongle to the AVD
DocumentDescription
Obtaining a domain objectHow to obtain domain objects and call Get, Set, Callback, and Capability APIs
PermissionPermissions by domain
Error codeError codes and onFailed handling
API ReferenceVehicle SDK API reference
TutorialVehicle SDK implementation guide
Sample ProjectSample project