RU | EN

VPM API Example

This is a simple example of implementing interaction with ru.auroraos.Vehicle1.Property using Vehicle.Speed as an example.

  • VPM: Vehicle Property Manager
  • VSS: Vehicle Signal Specification

Recommendations:

  • For this application, use a single DBus connection to the vehicle's bus.
  • Do not call asynchronous methods in the destructor.
  • Make publicly accessible methods for enabling and disabling the VPM connection so that the subscription can be terminated if necessary.

Contents

Compatibility

The project is compatible starting with Aurora OS Automotive version 5.2.0.* and higher.

Build Features

The project is built in the usual way using the Aurora SDK targeting Aurora OS Automotive.

Branch Information

The application versions comply with the branch name convention.

Installation and Launch

The application is installed and launched according to the Example build instructions.

The application must have VehicleInfo permissions to work. These permissions are set in the .desktop file.

Screenshots

screenshots

Project Structure

The project has a standard structure of an application based on C++ and QML for Aurora OS.

  • The ru.auroraos.VpmApiExample.pro file describes the application structure for the QMake build system.
  • The icons directory contains application icons for different screen resolutions.
  • The qml directory contains QML source code and user interface resources.
    • The pages directory contains the application pages.
  • The src directory contains the C++ source code:
    • vpmconstants.h — constants file containing D-Bus address, interface, object path, method names, property names, signal names, and supported types.
  • The rpm directory contains RPM package build settings.
  • The translations directory contains the user interface translation files.
  • The ru.auroraos.VpmApiExample.desktop file defines the display and launch parameters of the application.

Terms of Use and Contribution to Development

The source code of the project is provided under a license, which allows its use in third-party applications.

The Contributor Agreement regulates the rights granted by the participants of the Open Mobile Platform company. Information about the participants is specified in the AUTHORS file. Code of Conduct is the current set of rules of the Open Mobile Platform company, which informs about the expectations for interaction between community members when communicating and working on projects.