Skip to content
anaskhameesPublic

About

IVI System

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

Table of Contents


In-Vehicle Infotainment (IVI) System

ITI Graduation Project

image-20240614174014478

Infotainment combines two words – “information” and “entertainment”. It refers to a system that delivers a combination of information and entertainment services. Infotainment systems connect with all the smart automotive technologies like ADAS systems, V2X connectivity solutions, telematics devices, smartphones, sensors etc., and integrate them with each other to provide a great driving experience.

Modern in-vehicle systems are truly adding a luxurious touch to vehicles and offering an interactive experience to the driver. Besides playing your favorite song tracks or watching relaxing YouTube videos, you can now also get real-time traffic updates and call/text your loved ones without doing anything. more.

1. Project Features

Our IVI system contain

  • Audio
  • Video
  • Bluetooth
  • WiFi
  • Calender
  • GUI Calculator
  • Air conditioner
  • Settings : change the theme ,date, time.....etc

2. Build Linux Image

Make Sure that you have 150 GB free space in your system

2.1. Download the Layers and BSP

  • Create directory called "yocto"

    image-20240618030459271

  • Download Poky build system (Kirkstone branch)

    Go to yocto directory and setup the environment

git clone -b kirkstone git://git.yoctoproject.org/poky

image-20240618030600975

  • Download RaspberryPi Board Support Package BSP (Kirkstone branch)

    Go to poky directory and download the BSP

git clone -b kirkstone https://github.com/agherzan/meta-raspberrypi.git 
  • Download openembedded (kirkstone branch)
git clone -b kirkstone https://github.com/openembedded/meta-openembedded.git
  • Download Qt5 Layer (Kirkstone branch)
git clone -b kirkstone https://github.com/meta-qt5/meta-qt5

image-20240618030312325

  • Setup the Environment

    source oe-init-build-env 

    image-20240618033047484

2.2. Add the Layers in bblayer.conf file

"/ABSOLUTE/PATH/poky/meta \
 /ABSOLUTE/PATH/poky/meta-poky \
 /ABSOLUTE/PATH/poky/meta-yocto-bsp \
 /ABSOLUTE/PATH/meta-raspberrypi \
 /ABSOLUTE/PATH/meta-openembedded/meta-oe \
 /ABSOLUTE/PATH/meta-openembedded/meta-gnome \
 /ABSOLUTE/PATH/meta-openembedded/meta-xfce \
 /ABSOLUTE/PATH/meta-openembedded/meta-python \
 /ABSOLUTE/PATH/meta-openembedded/meta-networking \
 /ABSOLUTE/PATH/meta-openembedded/meta-multimedia \
 "

image-20240618031005179

  1. /ABSOLUTE/PATH/poky/meta:
  • Description: The core layer provided by the Yocto Project. It contains essential recipes and configuration files for building the core components of the Linux system.
  • Purpose: Provides the foundational elements and base recipes necessary for building a basic image.
  1. /ABSOLUTE/PATH/poky/meta-poky:
  • Description: A reference distribution layer provided by the Yocto Project.
  • Purpose: Contains example configurations and policies for building Poky, a reference distribution for the Yocto Project.
  1. /ABSOLUTE/PATH/poky/meta-yocto-bsp:
  • Description: A BSP (Board Support Package) layer provided by the Yocto Project.
  • Purpose: Provides support for various hardware platforms, including board-specific configurations and drivers.
  1. /ABSOLUTE/PATH/meta-raspberrypi:
  • Description: A BSP layer specifically for the Raspberry Pi platform.
  • Purpose: Contains recipes and configurations needed to build images for Raspberry Pi boards.
  1. /ABSOLUTE/PATH/meta-openembedded/meta-oe:
  • Description: The core OpenEmbedded layer, part of the meta-openembedded collection.
  • Purpose: Provides a wide range of additional recipes and metadata that are not included in the core Yocto layers.
  1. /ABSOLUTE/PATH/meta-openembedded/meta-gnome:
  • Description: An OpenEmbedded layer for GNOME desktop environment components.
  • Purpose: Provides recipes for building GNOME applications and libraries.
  1. /ABSOLUTE/PATH/meta-openembedded/meta-xfce:
  • Description: An OpenEmbedded layer for XFCE desktop environment components.
  • Purpose: Provides recipes for building XFCE applications and libraries.
  1. /ABSOLUTE/PATH/meta-openembedded/meta-python:
  • Description: An OpenEmbedded layer for Python-related recipes.
  • Purpose: Provides recipes for Python runtime, libraries, and applications.
  1. /ABSOLUTE/PATH/meta-openembedded/meta-networking:
  • Description: An OpenEmbedded layer for networking-related recipes.
  • Purpose: Provides recipes for various networking tools and applications.
  1. /ABSOLUTE/PATH/meta-openembedded/meta-multimedia:
  • Description: An OpenEmbedded layer for multimedia-related recipes.
  • Purpose: Provides recipes for multimedia libraries, codecs, and applications.

3. Configure Local.conf File

3.1. Select your target machine ( in my case RPI 3B+)

image-20240618031500380

3.2. General Configuration

3.2.1. Core System Configuration

CONF_VERSION = "2"

DISTRO_FEATURES:append = " systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
IMAGE_INSTALL += " packagegroup-core-boot"
IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  • CONF_VERSION: Specifies the configuration version.
  • DISTRO_FEATURES: Enables features in the distribution. Here, systemd is appended, and sysvinit is considered as a fallback.
  • VIRTUAL-RUNTIME_init_manager: Specifies systemd as the virtual runtime init manager.
  • VIRTUAL-RUNTIME_initscripts: Compatibility units for systemd.
  • IMAGE_INSTALL: Lists packages to be included in the image, including core boot packages and additional tools.
  • IMAGE_ROOTFS_EXTRA_SPACE: Allocates extra space for the root filesystem.

2. QT Configuration

#QT configuration
IMAGE_INSTALL:append = " make cmake"
IMAGE_INSTALL:append = " qtbase-tools qtbase qtdeclarative qtimageformats qtmultimedia qtquickcontrols2 qtquickcontrols qtbase-plugins cinematicexperience liberation-fonts qtbase-dev curl wget userland gstreamer1.0-plugins-bad qtsvg"
DISTRO_FEATURES:append = " x11 opengl wayland"
PACKAGECONFIG_FONTS:pn-qtbase = " fontconfig"
  • Installs build tools (make and cmake) and a suite of Qt libraries and plugins.
  • Configures font support for Qt applications using fontconfig.

3. MP3 Configuration

IMAGE_INSTALL:append = " gstreamer1.0-plugins-good gstreamer1.0-plugins-base gstreamer1.0-plugins-ugly"
LICENSE_FLAGS_ACCEPTED:append = " commercial  commercial_gstreamer1.0-plugins-ugly"
PACKAGECONFIG:pn-qtmultimedia = " gstreamer alsa"
  • Installs GStreamer plugins for MP3 support (good, base, ugly).
  • Accepts commercial licenses for the specified plugins.

4. Audio Configuration

IMAGE_INSTALL:append = "gstreamer1.0-plugins-good gstreamer1.0-plugins-base gstreamer1.0-plugins-ugly mpg123 pulseaudio pulseaudio-module-dbus-protocol pulseaudio-server pulseaudio-module-bluetooth-discover pulseaudio-module-bluetooth-policy pulseaudio-module-bluez5-device pulseaudio-module-bluez5-discover alsa-utils alsa-lib alsa-plugins alsa-tools alsa-state dbus"
LICENSE_FLAGS_ACCEPTED:append = "commercial commercial_gstreamer1.0-plugins-ugly"
PACKAGECONFIG:pn-qtmultimedia = "gstreamer alsa"
#IMAGE_INSTALL:append = "chromium"
#stream mp3 by bluetooth

DISTRO_FEATURES:append = "pulseaudio"

KERNEL_MODULE_AUTOLOAD:rpi = "snd-bcm2835"
MACHINE_FEATURES:append = "sound"
  • Adds pulseaudio and related modules for audio support.
  • Includes ALSA utilities and plugins for audio configuration.

5. Debugging and Development Tools

IMAGE_INSTALL:append = " strace"
EXTRA_IMAGE_FEATURES += "tools-debug"
  • Installs strace for debugging purposes.

6. Bluetooth and Wi-Fi Tools

MAGE_INSTALL:append = " \
    python3 \
    util-linux \
    bluez5 \
    i2c-tools \
    bridge-utils \
    hostapd \
    iptables \
    wpa-supplicant \
    pi-bluetooth \
    bluez5-testtools \
    udev-rules-rpi \
    linux-firmware \
    iw \
    kernel-modules \
    linux-firmware-ralink \
    linux-firmware-rtl8192ce \
    linux-firmware-rtl8192cu \
    linux-firmware-rtl8192su \
    linux-firmware-rpidistro-bcm43430 \
    linux-firmware-bcm43430 \
    connman \
    connman-client \
    dhcpcd \
    openssh \
    psplash \
    psplash-raspberrypi \
    coreutils \
"
  • Installs various Bluetooth (bluez5, pi-bluetooth) and Wi-Fi (hostapd, wpa-supplicant) tools and firmware for different wireless chips.

7. Additional Features and Configuration for WiFi and Bluetooth

DISTRO_FEATURES:append = " \
    bluez5 \
    bluetooth \
    wifi \
    pi-bluetooth \
    linux-firmware-bcm43430 \
    systemd \
    usrmerge \
    ipv4 \
"

MACHINE_FEATURES:append = " \
    bluetooth \
    wifi \
"

IMAGE_FEATURES:append = " \
    splash \
"
IMAGE_INSTALL:append = " xserver-xorg xf86-video-fbdev xf86-input-evdev xterm matchbox-wm"
  • Extends distribution features (bluez5, bluetooth, wifi, etc.) and machine-specific features (bluetooth, wifi).
  • Adds image features (splash).
  • Installs X server components (xserver-xorg, xf86-video-fbdev, etc.).

My Local.conf File

#
# This file is your local configuration file and is where all local user settings
# are placed. The comments in this file give some guide to the options a new user
# to the system might want to change but pretty much any configuration option can
# be set in this file. More adventurous users can look at
# local.conf.sample.extended which contains other examples of configuration which
# can be placed in this file but new users likely won't need any of them
# initially.
#
# Lines starting with the '#' character are commented out and in some cases the
# default values are provided as comments to show people example syntax. Enabling
# the option is a question of removing the # character and making any change to the
# variable as required.

#
# Machine Selection
#
# You need to select a specific machine to target the build with. There are a selection
# of emulated machines available which can boot and run in the QEMU emulator:
#
#MACHINE ?= "qemuarm"
#MACHINE ?= "qemuarm64"
#MACHINE ?= "qemumips"
#MACHINE ?= "qemumips64"
#MACHINE ?= "qemuppc"
#MACHINE ?= "qemux86"
#MACHINE ?= "qemux86-64"
#
# There are also the following hardware board target machines included for 
# demonstration purposes:
#
#MACHINE ?= "beaglebone-yocto"
#MACHINE ?= "genericx86"
#MACHINE ?= "genericx86-64"
#MACHINE ?= "edgerouter"
#

MACHINE ?= "raspberrypi3-64"

#
# Where to place downloads
#
# During a first build the system will download many different source code tarballs
# from various upstream projects. This can take a while, particularly if your network
# connection is slow. These are all stored in DL_DIR. When wiping and rebuilding you
# can preserve this directory to speed up this part of subsequent builds. This directory
# is safe to share between multiple builds on the same machine too.
#
# The default is a downloads directory under TOPDIR which is the build directory.
#

DL_DIR ?= "/home/anas/yocto/downloads"

#
# Where to place shared-state files
#
# BitBake has the capability to accelerate builds based on previously built output.
# This is done using "shared state" files which can be thought of as cache objects
# and this option determines where those files are placed.
#
# You can wipe out TMPDIR leaving this directory intact and the build would regenerate
# from these files if no changes were made to the configuration. If changes were made
# to the configuration, only shared state files where the state was still valid would
# be used (done using checksums).
#
# The default is a sstate-cache directory under TOPDIR.
#

SSTATE_DIR ?= "/home/anas/yocto/sstate-cache"

#
# Where to place the build output
#
# This option specifies where the bulk of the building work should be done and
# where BitBake should place its temporary files and output. Keep in mind that
# this includes the extraction and compilation of many applications and the toolchain
# which can use Gigabytes of hard disk space.
#
# The default is a tmp directory under TOPDIR.
#
#TMPDIR = "${TOPDIR}/tmp"

#
# Default policy config
#
# The distribution setting controls which policy settings are used as defaults.
# The default value is fine for general Yocto project use, at least initially.
# Ultimately when creating custom policy, people will likely end up subclassing 
# these defaults.
#
DISTRO ?= "poky"
# As an example of a subclass there is a "bleeding" edge policy configuration
# where many versions are set to the absolute latest code from the upstream 
# source control systems. This is just mentioned here as an example, its not
# useful to most new users.
# DISTRO ?= "poky-bleeding"

#
# Package Management configuration
#
# This variable lists which packaging formats to enable. Multiple package backends
# can be enabled at once and the first item listed in the variable will be used
# to generate the root filesystems.
# Options are:
#  - 'package_deb' for debian style deb files
#  - 'package_ipk' for ipk files are used by opkg (a debian style embedded package manager)
#  - 'package_rpm' for rpm style packages
# E.g.: PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
# We default to rpm:
PACKAGE_CLASSES ?= "package_rpm"

#
# SDK target architecture
#
# This variable specifies the architecture to build SDK items for and means
# you can build the SDK packages for architectures other than the machine you are
# running the build on (i.e. building i686 packages on an x86_64 host).
# Supported values are i686, x86_64, aarch64
#SDKMACHINE ?= "i686"

#
# Extra image configuration defaults
#
# The EXTRA_IMAGE_FEATURES variable allows extra packages to be added to the generated
# images. Some of these options are added to certain image types automatically. The
# variable can contain the following options:
#  "dbg-pkgs"       - add -dbg packages for all installed packages
#                     (adds symbol information for debugging/profiling)
#  "src-pkgs"       - add -src packages for all installed packages
#                     (adds source code for debugging)
#  "dev-pkgs"       - add -dev packages for all installed packages
#                     (useful if you want to develop against libs in the image)
#  "ptest-pkgs"     - add -ptest packages for all ptest-enabled packages
#                     (useful if you want to run the package test suites)
#  "tools-sdk"      - add development tools (gcc, make, pkgconfig etc.)
#  "tools-debug"    - add debugging tools (gdb, strace)
#  "eclipse-debug"  - add Eclipse remote debugging support
#  "tools-profile"  - add profiling tools (oprofile, lttng, valgrind)
#  "tools-testapps" - add useful testing tools (ts_print, aplay, arecord etc.)
#  "debug-tweaks"   - make an image suitable for development
#                     e.g. ssh root access has a blank password
# There are other application targets that can be used here too, see
# meta/classes/image.bbclass and meta/classes/core-image.bbclass for more details.
# We default to enabling the debugging tweaks.
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"

#
# Additional image features
#
# The following is a list of additional classes to use when building images which
# enable extra features. Some available options which can be included in this variable
# are:
#   - 'buildstats' collect build statistics
USER_CLASSES ?= "buildstats"

#
# Runtime testing of images
#
# The build system can test booting virtual machine images under qemu (an emulator)
# after any root filesystems are created and run tests against those images. It can also
# run tests against any SDK that are built. To enable this uncomment these lines.
# See classes/test{image,sdk}.bbclass for further details.
#IMAGE_CLASSES += "testimage testsdk"
#TESTIMAGE_AUTO:qemuall = "1"

#
# Interactive shell configuration
#
# Under certain circumstances the system may need input from you and to do this it
# can launch an interactive shell. It needs to do this since the build is
# multithreaded and needs to be able to handle the case where more than one parallel
# process may require the user's attention. The default is iterate over the available
# terminal types to find one that works.
#
# Examples of the occasions this may happen are when resolving patches which cannot
# be applied, to use the devshell or the kernel menuconfig
#
# Supported values are auto, gnome, xfce, rxvt, screen, konsole (KDE 3.x only), none
# Note: currently, Konsole support only works for KDE 3.x due to the way
# newer Konsole versions behave
#OE_TERMINAL = "auto"
# By default disable interactive patch resolution (tasks will just fail instead):
PATCHRESOLVE = "noop"

#
# Disk Space Monitoring during the build
#
# Monitor the disk space during the build. If there is less that 1GB of space or less
# than 100K inodes in any key build location (TMPDIR, DL_DIR, SSTATE_DIR), gracefully
# shutdown the build. If there is less than 100MB or 1K inodes, perform a hard halt
# of the build. The reason for this is that running completely out of space can corrupt
# files and damages the build in ways which may not be easily recoverable.
# It's necessary to monitor /tmp, if there is no space left the build will fail
# with very exotic errors.
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    HALT,${TMPDIR},100M,1K \
    HALT,${DL_DIR},100M,1K \
    HALT,${SSTATE_DIR},100M,1K \
    HALT,/tmp,10M,1K"

#
# Shared-state files from other locations
#
# As mentioned above, shared state files are prebuilt cache data objects which can be
# used to accelerate build time. This variable can be used to configure the system
# to search other mirror locations for these objects before it builds the data itself.
#
# This can be a filesystem directory, or a remote url such as https or ftp. These
# would contain the sstate-cache results from previous builds (possibly from other
# machines). This variable works like fetcher MIRRORS/PREMIRRORS and points to the
# cache locations to check for the shared objects.
# NOTE: if the mirror uses the same structure as SSTATE_DIR, you need to add PATH
# at the end as shown in the examples below. This will be substituted with the
# correct path within the directory structure.
#SSTATE_MIRRORS ?= "\
#file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \
#file://.* file:///some/local/dir/sstate/PATH"

#
# Yocto Project SState Mirror
#
# The Yocto Project has prebuilt artefacts available for its releases, you can enable
# use of these by uncommenting the following lines. This will mean the build uses
# the network to check for artefacts at the start of builds, which does slow it down
# equally, it will also speed up the builds by not having to build things if they are
# present in the cache. It assumes you can download something faster than you can build it
# which will depend on your network.
# Note: For this to work you also need hash-equivalence passthrough to the matching server
#
#BB_HASHSERVE_UPSTREAM = "hashserv.yocto.io:8687"
#SSTATE_MIRRORS ?= "file://.* http://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH"

#
# Qemu configuration
#
# By default native qemu will build with a builtin VNC server where graphical output can be
# seen. The line below enables the SDL UI frontend too.
PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
# By default libsdl2-native will be built, if you want to use your host's libSDL instead of 
# the minimal libsdl built by libsdl2-native then uncomment the ASSUME_PROVIDED line below.
#ASSUME_PROVIDED += "libsdl2-native"

# You can also enable the Gtk UI frontend, which takes somewhat longer to build, but adds
# a handy set of menus for controlling the emulator.
#PACKAGECONFIG:append:pn-qemu-system-native = " gtk+"

#
# Hash Equivalence
#
# Enable support for automatically running a local hash equivalence server and
# instruct bitbake to use a hash equivalence aware signature generator. Hash
# equivalence improves reuse of sstate by detecting when a given sstate
# artifact can be reused as equivalent, even if the current task hash doesn't
# match the one that generated the artifact.
#
# A shared hash equivalent server can be set with "<HOSTNAME>:<PORT>" format
#
#BB_HASHSERVE = "auto"
#BB_SIGNATURE_HANDLER = "OEEquivHash"

#
# Memory Resident Bitbake
#
# Bitbake's server component can stay in memory after the UI for the current command
# has completed. This means subsequent commands can run faster since there is no need
# for bitbake to reload cache files and so on. Number is in seconds, after which the
# server will shut down.
#
#BB_SERVER_TIMEOUT = "60"

# CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to
# track the version of this file when it was generated. This can safely be ignored if
# this doesn't mean anything to you.

CONF_VERSION = "2"

PACKAGE_CLASSES ?= "package_rpm opkg"
IMAGE_INSTALL:append = " opkg"

DISTRO_FEATURES:append = " systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
IMAGE_INSTALL += " packagegroup-core-boot"
IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
IMAGE_INSTALL:append = " x11vnc"

#QT configuration
IMAGE_INSTALL:append = " make cmake"
IMAGE_INSTALL:append = " qtbase-tools qtbase qtdeclarative qtimageformats qtmultimedia qtquickcontrols2 qtquickcontrols qtbase-plugins cinematicexperience liberation-fonts qtbase-dev curl wget userland gstreamer1.0-plugins-bad"
IMAGE_INSTALL:remove = "qtwebengine"
PACKAGECONFIG_FONTS:pn-qtbase = " fontconfig"
IMAGE_INSTALL:append = " openssh-sftp-server rsync"
IMAGE_INSTALL:append = "  python3-modules python3-misc python3-dev"
LAYERSERIES_COMPAT_meta-python2 = " kirkstone"

DISTRO_FEATURES:append = " x11 opengl wayland"

#MP3 Config
IMAGE_INSTALL:append = " gstreamer1.0-plugins-good gstreamer1.0-plugins-base gstreamer1.0-plugins-ugly mpg123"

LICENSE_FLAGS_ACCEPTED:append = " commercial commercial_gstreamer1.0-plugins-ugly"
PACKAGECONFIG:pn-qtmultimedia = " gstreamer alsa" 

#stream mp3 by blutooth
DISTRO_FEATURES:append = " pulseaudio"

KERNEL_MODULE_AUTOLOAD:rpi = "snd-bcm2835"
MACHINE_FEATURES:append = " sound"

IMAGE_INSTALL:append = " pulseaudio pulseaudio-module-dbus-protocol pulseaudio-server pulseaudio-module-bluetooth-discover pulseaudio-module-bluetooth-policy pulseaudio-module-bluez5-device pulseaudio-module-bluez5-discover alsa-utils alsa-lib alsa-plugins mpg123 alsa-tools alsa-state dbus"

#for debugging 
IMAGE_INSTALL:append = " strace"
IMAGE_INSTALL:append = " qtsvg"
#for blutooth and Wifi

IMAGE_INSTALL:append = " \
    python3 \
    util-linux \
    bluez5 \
    i2c-tools \
    bridge-utils \
    hostapd \
    iptables \
    wpa-supplicant \
    pi-bluetooth \
    bluez5-testtools \
    udev-rules-rpi \
    linux-firmware \
    iw \
    kernel-modules \
    linux-firmware-ralink \
    linux-firmware-rtl8192ce \
    linux-firmware-rtl8192cu \
    linux-firmware-rtl8192su \
    linux-firmware-rpidistro-bcm43430 \
    linux-firmware-bcm43430 \
    connman \
    connman-client \
    dhcpcd \
    openssh \
    psplash \
    psplash-raspberrypi \
    coreutils \
"

DISTRO_FEATURES:append = " \
    bluez5 \
    bluetooth \
    wifi \
    pi-bluetooth \
    linux-firmware-bcm43430 \
    systemd \
    usrmerge \
    ipv4 \
"

MACHINE_FEATURES:append = " \
    bluetooth \
    wifi \
"

IMAGE_FEATURES:append = " \
    splash \
"
IMAGE_INSTALL:append = " xserver-xorg xf86-video-fbdev xf86-input-evdev xterm matchbox-wm"

EXTRA_IMAGE_FEATURES += "tools-debug"

# For Multithreading 

BB_NUMBER_THREADS = "4"
PARALLEL_MAKE = "-j 4"

IMAGE_FSTYPES = "tar.bz2 ext4 rpi-sdimg"

4. Build the Image

bitbake core-image-sato -k

For Create SDK Run : (mandatory if the you will use remote deploy with Qt)

bitbake core-image-sato -c populate_sdk

image-20240618033205669

Screenshot_from_2024-06-14_15-35-58

image-20240618033339842

5. Flash the Image on SD Card

Go to /poky/build/tmp/deploy/images/raspberrypi3-64/

image-20240618033642108

bzip2 -d -f core-image-sato-raspberrypi3-64.wic.bz2

Extract and un compress the image

image-20240618034331467

Know the Name of SD card

lsblk |grep sd

image-20240618034805359

sudo dd bs=4M if=core-image-sato-raspberrypi3-64.wic of=/dev/sdc status=progress conv=fsync 

Connect the SD card and Flash the Image on SD Card

Screenshot_from_2024-06-14_17-27-09

image-20240618034421643

image-20240618034441179

image-20240618034456567

OR

image-20240705181417924

if you will use .rpi-sdimg extension , you should use :

sudo dd bs=4M if=core-image-sato-raspberrypi3-64.rpi-sdimg of=/dev/sdc status=progress conv=fsync 
  • For remove Rpi logo in booting stage :

    go to boot partition of rpi and open cmdline.txt file and add the below

    Screenshot_from_2024-06-26_21-27-44

6. WiFi Configuration on RPI 3 B+

Go to RPI and connect display and keyboard with rpi then open the terminal

  • check WIFI driver

    ifconfig wlan0
    

wlan

6.1. wpa supplicant tool (option 1)

  • Edit the wpa_supplicant.conf in RPI (/etc/wpa_suppicant.conf)

    Screenshot_from_2024-06-26_06-46-45

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1

network={
    ssid="Network Name"
    psk="password"
    key_mgmt=WPA-PSK
}
  • Create a service for auto connection in RPI rootfs : /etc/systemd/system

    Screenshot_from_2024-06-26_07-00-02

[Unit]
Description=WPA supplicant
Before=network.target

[Service]
ExecStart=/sbin/wpa_supplicant -c /etc/wpa_supplicant.conf -i wlan0
Restart=on-failure

[Install]
WantedBy=multi-user.target
  • After that run those commands on rpi terminal

    systemctl enable wpa_supplicant
    systemctl start wpa_supplicant

    After that when boot the RPI the wifi will connect automatically

6.2. Connman Tool (option 2)

image-20240626072659444

image-20240626072922794

Enable connman

systemctl enable connman
systemctl start connman

image-20240626071825139

To start the ConnMan service, discover Wi-Fi networks, and connect to a specific Wi-Fi network, follow these step-by-step instructions:

Start ConnMan Service

  • systemctl start connman: This command starts the ConnMan service.
  • systemctl enable connman: This command enables ConnMan to start at boot time.

Discover Wi-Fi Networks

  1. List Available Wi-Fi Networks: Now, use connmanctl to interact with ConnMan and list available Wi-Fi networks.

    connmanctl

    This command opens the ConnMan interactive shell.

    image-20240626080432052

  2. Scan for Wi-Fi Networks: Inside the ConnMan interactive shell, run the following commands:

     enable wifi
    scan wifi
    services
    
    • scan wifi: This command instructs ConnMan to scan for available Wi-Fi networks.
    • services: This command lists all available services, including Wi-Fi networks ConnMan has discovered.

    Look for the Wi-Fi network you want to connect to. Note its name (SSID) and its identifier (something like wifi_1234567890ab_YourSSID_managed_psk).

Connect to a Wi-Fi Network

  1. Connect to the Desired Wi-Fi Network: After identifying the Wi-Fi network you want to connect to, use the following commands inside the ConnMan interactive shell:

    agent on
    connect wifi_1234567890ab_YourSSID_managed_psk
    
    • agent on: This command enables the ConnMan agent, which is necessary for handling network connection requests that require user interaction (such as entering a Wi-Fi passphrase).
    • connect wifi_1234567890ab_YourSSID_managed_psk: Replace wifi_1234567890ab_YourSSID_managed_psk with the actual identifier of the Wi-Fi network you want to connect to. This command initiates the connection process.
  2. Enter Wi-Fi Passphrase (if required): If the Wi-Fi network is secured with a passphrase, ConnMan will prompt you to enter it. Type the passphrase and press Enter.

  3. Verify Connection: Once entered correctly, ConnMan will attempt to connect to the Wi-Fi network. If successful, you should see confirmation messages in the ConnMan shell indicating the connection status.

Exiting ConnMan Shell

  1. Exit ConnMan Shell: After connecting to the Wi-Fi network or if you need to exit the ConnMan shell, you can simply type:

    exit
    

    This command will exit the ConnMan interactive shell and return you to your regular terminal prompt.

7. Configure the sound settings in rpi

The default sound routing goes to the HDMI device inside of the audio jack. Since our HDMI device doesn’t support audio playing, we had to change the default sound routing from HDMI to audio jack.

  1. Open /etc/asound.conf

  2. Edit the file as follow :

    pcm.!default {
    type hw
    card 1
    device 0
    }
    ctl.!default {
    type hw
    card 1
    }

8. Configure the Bluetooth on rpi

image-20240705194737760

9. Create Script to Auto-mount the flash memory on rpi

9.1. Step 1

On rpi rootfs go to /usr/local/bin directory and create this script usb-mount.sh

Do not forget to make the script file executable

sudo chmod +x usb-mount.sh

to make sure run:

ls -l usb-mount.sh

image-20240705184735508

#!/bin/bash

# This script is called from our systemd unit file to mount or unmount
# a USB drive.

usage()
{
    echo "Usage: $0 {add|remove} device_name (e.g. sdb1)"
    exit 1
}

if [[ $# -ne 2 ]]; then
    usage
fi

ACTION=$1
DEVBASE=$2
DEVICE="/dev/${DEVBASE}"

# See if this drive is already mounted, and if so where
MOUNT_POINT=$(/bin/mount | /bin/grep ${DEVICE} | /usr/bin/awk '{ print $3 }')

do_mount()
{
    if [[ -n ${MOUNT_POINT} ]]; then
        echo "Warning: ${DEVICE} is already mounted at ${MOUNT_POINT}"
        exit 1
    fi

    # Get info for this drive: $ID_FS_LABEL, $ID_FS_UUID, and $ID_FS_TYPE
    eval $(/sbin/blkid -o udev ${DEVICE})

    # Figure out a mount point to use
    LABEL=${ID_FS_LABEL}
    if [[ -z "${LABEL}" ]]; then
        LABEL=${DEVBASE}
    elif /bin/grep -q " /media/${LABEL} " /etc/mtab; then
        # Already in use, make a unique one
        LABEL+="-${DEVBASE}"
    fi
    MOUNT_POINT="/media/${LABEL}"

    echo "Mount point: ${MOUNT_POINT}"

    /bin/mkdir -p ${MOUNT_POINT}

    # Global mount options
    OPTS="rw,relatime"

    # File system type specific mount options
    if [[ ${ID_FS_TYPE} == "vfat" ]]; then
        OPTS+=",users,gid=100,umask=000,shortname=mixed,utf8=1,flush"
    fi

    if ! /bin/mount -o ${OPTS} ${DEVICE} ${MOUNT_POINT}; then
        echo "Error mounting ${DEVICE} (status = $?)"
        /bin/rmdir ${MOUNT_POINT}
        exit 1
    fi

    echo "**** Mounted ${DEVICE} at ${MOUNT_POINT} ****"
}

do_unmount()
{
    if [[ -z ${MOUNT_POINT} ]]; then
        echo "Warning: ${DEVICE} is not mounted"
    else
        /bin/umount -l ${DEVICE}
        echo "**** Unmounted ${DEVICE}"
    fi

    # Delete all empty dirs in /media that aren't being used as mount
    # points. This is kind of overkill, but if the drive was unmounted
    # prior to removal we no longer know its mount point, and we don't
    # want to leave it orphaned...
    for f in /media/* ; do
        if [[ -n $(/usr/bin/find "$f" -maxdepth 0 -type d -empty) ]]; then
            if ! /bin/grep -q " $f " /etc/mtab; then
                echo "**** Removing mount point $f"
                /bin/rmdir "$f"
            fi
        fi
    done
}

case "${ACTION}" in
    add)
        do_mount
        ;;
    remove)
        do_unmount
        ;;
    *)
        usage
        ;;
esac

9.1.1. usb-mount.sh Script explanation

  1. Script Header and Usage Function:

    #!/bin/bash
    
    # This script is called from our systemd unit file to mount or unmount
    # a USB drive.
    
    usage()
    {
        echo "Usage: $0 {add|remove} device_name (e.g. sdb1)"
        exit 1
    }
    • This is a bash script meant to be executed by the shell.
    • The usage function prints the correct usage of the script and exits with an error code.
  2. Argument Check:

    if [[ $# -ne 2 ]]; then
        usage
    fi
    • Checks if the script receives exactly two arguments. If not, it calls the usage function.
  3. Assigning Variables:

    ACTION=$1
    DEVBASE=$2
    DEVICE="/dev/${DEVBASE}"
    • Assigns the first argument to ACTION (expected to be either "add" or "remove").
    • Assigns the second argument to DEVBASE (the device name, e.g., sdb1).
    • Constructs the full device path and assigns it to DEVICE.
  4. Check If Already Mounted:

    MOUNT_POINT=$(/bin/mount | /bin/grep ${DEVICE} | /usr/bin/awk '{ print $3 }')
    • Uses the mount command to check if the device is already mounted and extracts the mount point if it is.
  5. Mount Function:

    do_mount()
    {
        if [[ -n ${MOUNT_POINT} ]]; then
            echo "Warning: ${DEVICE} is already mounted at ${MOUNT_POINT}"
            exit 1
        fi
    
        eval $(/sbin/blkid -o udev ${DEVICE})
    
        LABEL=${ID_FS_LABEL}
        if [[ -z "${LABEL}" ]]; then
            LABEL=${DEVBASE}
        elif /bin/grep -q " /media/${LABEL} " /etc/mtab; then
            LABEL+="-${DEVBASE}"
        fi
        MOUNT_POINT="/media/${LABEL}"
    
        echo "Mount point: ${MOUNT_POINT}"
    
        /bin/mkdir -p ${MOUNT_POINT}
    
        OPTS="rw,relatime"
        if [[ ${ID_FS_TYPE} == "vfat" ]]; then
            OPTS+=",users,gid=100,umask=000,shortname=mixed,utf8=1,flush"
        fi
    
        if ! /bin/mount -o ${OPTS} ${DEVICE} ${MOUNT_POINT}; then
            echo "Error mounting ${DEVICE} (status = $?)"
            /bin/rmdir ${MOUNT_POINT}
            exit 1
        fi
    
        echo "**** Mounted ${DEVICE} at ${MOUNT_POINT} ****"
    }
    • Checks if the device is already mounted and exits with a warning if it is.
    • Uses blkid to get the filesystem label, UUID, and type.
    • Determines a unique mount point under /media/ using the label or device base name.
    • Creates the mount point directory.
    • Sets global and filesystem-specific mount options (additional options for vfat).
    • Mounts the device and exits with an error if the mount fails.
  6. Unmount Function:

    do_unmount()
    {
        if [[ -z ${MOUNT_POINT} ]]; then
            echo "Warning: ${DEVICE} is not mounted"
        else
            /bin/umount -l ${DEVICE}
            echo "**** Unmounted ${DEVICE}"
        }
    
        for f in /media/* ; do
            if [[ -n $(/usr/bin/find "$f" -maxdepth 0 -type d -empty) ]]; then
                if ! /bin/grep -q " $f " /etc/mtab; then
                    echo "**** Removing mount point $f"
                    /bin/rmdir "$f"
                }
            fi
        done
    }
    • Unmounts the device if it is mounted.
    • Removes any empty directories in /media/ that are not currently used as mount points.
  7. Main Script Logic:

    case "${ACTION}" in
        add)
            do_mount
            ;;
        remove)
            do_unmount
            ;;
        *)
            usage
            ;;
    esac
    • Calls the appropriate function (do_mount or do_unmount) based on the action specified.
    • Calls the usage function if the action is neither "add" nor "remove".

9.2. Step 2: Create systemd unit (service) to run the script on rpi

The script, in turn, is called by a systemd unit file. We use the "@" filename syntax so we can pass the device name as an argument.

/etc/systemd/system/usb-mount@.service

[Unit]
Description=Mount USB Drive on %i

[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/usr/local/bin/usb-mount.sh add %i
ExecStop=/usr/local/bin/usb-mount.sh remove %i

[Unit] Section

Description

Description=Mount USB Drive on %i
  • Description: This provides a brief description of what the service does. In this case, it indicates that the service is responsible for mounting a USB drive.
  • %i: This is a placeholder that gets replaced with the instance name when the service is called. For example, if the service is started with usb-mount@sdb1.service, %i will be replaced with sdb1.

[Service] Section

Type

Type=oneshot
  • Type=oneshot: This indicates that the service runs a single command and then exits. It is not a long-running service but performs a specific task once.

RemainAfterExit

RemainAfterExit=true
  • RemainAfterExit=true: This tells systemd to consider the service active even after the ExecStart command has completed. This is useful for services that perform a setup task and do not need to remain running to be considered active.

ExecStart

ExecStart=/usr/local/bin/usb-mount.sh add %i
  • ExecStart: Specifies the command to run when the service starts. Here, it runs the usb-mount.sh script with the add argument and the instance name (%i). For example, if the service is started as usb-mount@sdb1.service, this line would execute /usr/local/bin/usb-mount.sh add sdb1.
  • add %i: The script is called with the add action and the device name.

ExecStop

ExecStop=/usr/local/bin/usb-mount.sh remove %i
  • ExecStop: Specifies the command to run when the service stops. Here, it runs the usb-mount.sh script with the remove argument and the instance name (%i). For example, if the service is stopped as usb-mount@sdb1.service, this line would execute /usr/local/bin/usb-mount.sh remove sdb1.
  • remove %i: The script is called with the remove action and the device name.

Conclusion

The usb-mount@.service file is a template for a systemd service that can mount and unmount USB drives. Here is how it works:

  1. Instance Creation:
    • The service is instantiated with a specific device name, such as usb-mount@sdb1.service.
    • %i in the service file gets replaced with sdb1.
  2. When Starting the Service:
    • ExecStart: Executes the usb-mount.sh script with the add action and the device name (sdb1), which mounts the USB drive.
  3. When Stopping the Service:
    • ExecStop: Executes the usb-mount.sh script with the remove action and the device name (sdb1), which unmounts the USB drive.
  4. Service Type:
    • Type=oneshot: Indicates the service performs its task and then exits.
    • RemainAfterExit=true: Keeps the service in an active state even after the script completes.

This setup allows for dynamic handling of USB devices, where each device can be managed individually using its own instance of the service.

9.3. Step 3:

Finally, some udev rules start and stop the systemd unit service on hotplug/unplug:

Go to /etc/udev/rules.d in rpi rootfs and create this file 99-local.rules and put on it the below

KERNEL=="sd[a-z][0-9]", SUBSYSTEMS=="usb", ACTION=="add", RUN+="/bin/systemctl start usb-mount@%k.service"

KERNEL=="sd[a-z][0-9]", SUBSYSTEMS=="usb", ACTION=="remove", RUN+="/bin/systemctl stop usb-mount@%k
  1. Navigate to the udev rules directory:

    • On your Raspberry Pi root filesystem, go to the directory where udev rules are stored:

      cd /etc/udev/rules.d/
  2. Create a new udev rules file:

    • Create a file named

      99-local.rules
      

      in this directory. You can use a text editor like Vi ,nano ,gedit ......etc.

      sudo nano 99-local.rules
  3. Add the udev rules:

    • Copy and paste the following rules into the file and save it:

      bashCopy codeKERNEL=="sd[a-z][0-9]", SUBSYSTEMS=="usb", ACTION=="add", RUN+="/bin/systemctl start usb-mount@%k.service"
      
      KERNEL=="sd[a-z][0-9]", SUBSYSTEMS=="usb", ACTION=="remove", RUN+="/bin/systemctl stop usb-mount@%k.service"
      

Explanation of the udev Rules

Rule for Adding (Plugging in) a USB Device

KERNEL=="sd[a-z][0-9]", SUBSYSTEMS=="usb", ACTION=="add", RUN+="/bin/systemctl start usb-mount@%k.service"
  • KERNEL=="sd[a-z][0-9]": This matches devices with names like sda1, sdb1, sdc1, etc. The [a-z] matches any letter and [0-9] matches any digit, ensuring it matches partitions on USB drives.
  • SUBSYSTEMS=="usb": This specifies that the rule applies to devices within the USB subsystem.
  • ACTION=="add": This specifies that the rule should be applied when a device is added (plugged in).
  • RUN+="/bin/systemctl start usb-mount@%k.service": This runs the specified command when the rule matches. Here, %k is a placeholder for the kernel device name (e.g., sdb1). This command starts the usb-mount@%k.service systemd service, which in turn runs the usb-mount.sh add script for the device.

Rule for Removing (Unplugging) a USB Device

KERNEL=="sd[a-z][0-9]", SUBSYSTEMS=="usb", ACTION=="remove", RUN+="/bin/systemctl stop usb-mount@%k.service"
  • KERNEL=="sd[a-z][0-9]": Matches the same set of devices as the add rule.
  • SUBSYSTEMS=="usb": Applies to devices within the USB subsystem.
  • ACTION=="remove": This specifies that the rule should be applied when a device is removed (unplugged).
  • RUN+="/bin/systemctl stop usb-mount@%k.service": This runs the specified command when the rule matches. Here, it stops the usb-mount@%k.service systemd service, which in turn runs the usb-mount.sh remove script for the device.

Then run those commands to refresh the system

udevadm control --reload-rules
systemctl daemon-reload

10. Graphical User Interface GUI (Qt)

10.1. Download Qt

image-20240520195139348

  • make the downloaded file executable

    sudo chmod +x qt-online-installer-linux-x64-4.8.0.run
    

    image-20240520195657579

    10.2. install Qt creator

    Screenshot_from_2024-05-19_15-42-55

Screenshot_from_2024-05-19_15-43-04

Screenshot_from_2024-05-19_15-44-50

Screenshot_from_2024-05-19_15-45-35

Screenshot_from_2024-05-19_15-46-06

Screenshot_from_2024-05-19_16-05-01

Screenshot_from_2024-05-19_16-06-43

Screenshot_from_2024-05-19_16-07-24

Screenshot_from_2024-05-19_16-07-31

Screenshot_from_2024-05-19_16-07-47

Screenshot_from_2024-05-19_18-16-15

  • After finish you may face this warning

image-20240520200130901

[SOLVED]

sudo apt-get install libxcb-cursor0

image-20240520201338488

image-20240623053056554

10.3. Install Qt5 Tool chain for cross compilation

bitbake meta-toolchain-qt5  

image-20240623053438699

  • Go to cd tmp/deploy/sdk
 cd tmp/deploy/sdk
  • Run the this script

    ./poky-glibc-x86_64-meta-toolchain-qt5-cortex53-raspberrypi3-64-toolchain-4.0.18.sh 

Screenshot_from_2024-06-22_21-17-05

Screenshot_from_2024-06-22_22-56-38

I select the Path to be : /home/anas/yocto/poky/build/target

Screenshot_from_2024-06-22_22-59-48

Screenshot_from_2024-06-22_23-04-10

10.4. Configuring the cross compiling and remote deployment settings on Qt creator

  • source the SDK toolchain. The source path may differ depending on the output of your SDK installation
source /home/anas/yocto/poky/build/target/environment-setup-cortexa53-poky-linux
  • From the same terminal launch qtcreator

    ~/Qt/Tools/QtCreator/bin/qtcreator 

Screenshot_from_2024-06-22_23-20-24

image-20240623060734842

Screenshot_from_2024-06-22_23-33-27

10.4.1. Add a device for rpi

image-20240705191916722

I connect the the rpi and my labtop on the same network through Wifi , and the IP 192.168.43.11 is rpi IP

10.4.1. Add a Kit for rpi

image-20240705192112956

  • C compiler path:

    /home/anas/yocto/poky/build/target/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc

  • C++ Compiler path :

    /home/anas/yocto/poky/build/target/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++

    image-20240705192452611

  • Debugger path :

    /home/anas/yocto/poky/build/target/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gdb

image-20240705192520784

  • Qt Version (qmake) path:

    /home/anas/yocto/poky/build/target/sysroots/x86_64-pokysdk-linux/usr/bin/qmake

    image-20240705192705587

  • Cmake Path :

    /home/anas/yocto/poky/build/target/sysroots/x86_64-pokysdk-linux/usr/bin/cmake

image-20240705192800505

10.4.2. Test the Connection between Qt on laptop and rpi

Screenshot_from_2024-06-27_18-21-19

10.5. Qt Project Setup

This guide will help you create a new project in Qt Creator that can run on both desktop and Raspberry Pi 3.

Prerequisites

  • Qt Creator installed on your development machine.
  • Qt for Raspberry Pi 3 toolchain installed (for cross-compilation).
  • A Raspberry Pi 3 with an appropriate operating system installed.

Steps to Create a New Qt Project

  1. Open Qt Creator

  2. Create a New Project

  • Select File > New File or Project from the menu.
  • In the dialog that appears, choose Application > Qt Widgets Application (or another type of application if needed) and click Choose....

Screenshot from 2024-06-25 14-48-53

  1. Set Project Details
  • Enter the Name and Location for your project.
  • Click Next.

Screenshot from 2024-06-25 14-49-32

  1. Define the Project Kit
  • Select the kits you want to use. Ensure you select:
    • A desktop kit (e.g., Desktop Qt 5.15.2 GCC 64bit).
    • The Raspberry Pi kit (you should have previously configured this for cross-compilation).

Screenshot from 2024-06-25 14-50-32

  1. Configure Project
  • Customize the Class Information if needed (e.g., MainWindow class details).
  • Click Next.
  1. Write Your Application Code
  • Implement your application logic in the generated project files (main.cpp, mainwindow.cpp, etc.), you can add .h files to Header Files ,and .cpp files to Source Files
  • Save your changes.

Screenshot from 2024-06-25 14-55-51

  1. Build and Run on Desktop
  • Select the desktop kit from the kit selector.
  • Click the Build button (hammer icon) to compile the project.
  • Click the Run button (green play icon) to run the application on your desktop.
  1. Deploy to Raspberry Pi 3

a. Cross-Compile the Project

  1. Select the Raspberry Pi kit from the kit selector.
  2. Click the Build button to compile the project for Raspberry Pi 3.

11. Features of Our In-Vehicle Infotainment System

11.1. Music Streaming

Description: When the music icon is clicked, the system streams MP3 files from a USB flash drive. It supports pause, continue, playback, repeat, shuffle, volume up, and volume down.

Required Qt Classes:

  • QMediaPlayer: For playing audio files.
  • QMediaPlaylist: For managing playlists and shuffle/repeat functionality.
  • QFileSystemModel: To browse files on the USB drive.
  • QListWidget: To display the list of songs.
  • QDirIterator, QDir, QUrl: For handling file directories and URLs.

11.2. Video Streaming

Description: When the video icon is clicked, the system streams MP4 files from a USB flash drive. It supports pause, continue, playback, volume control, and other playback features.

Required Qt Classes:

  • QMediaPlayer: For playing video files.

  • QGraphicsVideoItem: To display the video.

  • QGraphicsScene: For managing the video display.

  • QRectF: For defining the video display area.

  • QPushButton: For control buttons (pause, play, volume up/down, etc.).

11.3. Bluetooth Audio Streaming

Description: Supports audio streaming from Bluetooth-enabled devices, allowing users to play music wirelessly.

Required Qt Classes:

  • QBluetoothLocalDevice: To manage the local Bluetooth device.
  • QBluetoothDeviceDiscoveryAgent: To discover other Bluetooth devices.
  • QBluetoothSocket: For Bluetooth communication.

11.4. Time and Date Display

Description: The system displays the current time and date.

Required Qt Classes:

  • QDate: For handling dates.
  • QTime: For handling time.
  • QTimer: To update the display every second.
  • QLabel: To display the time and date.

11.5. Temperature Display

Description: The system displays the current temperature, acquired from OpenWeatherMap.org using API keys.

Required Qt Classes:

  • QNetworkAccessManager: For making HTTP requests to the OpenWeatherMap API.
  • QNetworkReply: To handle the responses from the API.
  • QJsonDocument: To parse the JSON data received from the API.
  • QJsonObject, QJsonValue: For JSON data manipulation.
  • QNetworkRequest: For making the network request.

11.6. Settings

Description: The settings menu includes options to change the theme and edit the time and date.

Required Qt Classes:

  • QComboBox: For selecting the theme.
  • QDateTimeEdit: To edit the date and time.
  • QSettings: To save and load settings.
  • QPushButton: For applying changes.

11.7. YouTube Integration

Description: When the YouTube icon is clicked, the system opens the YouTube page in the browser.

Required Qt Classes:

  • QDesktopServices: To open URLs in the default web browser.
  • QUrl: To handle the YouTube URL.
  • QPushButton: For the YouTube button.
  • QWidget, QVBoxLayout: For layout management.

11.8. Air conditioner

12. Boot the rpi on our IVI Application

We can put the application on .profile of rpi rootfs, so after system login our application will run , copy the below as it is and put them in the end of .profile file

profile

Note that:

  1. don't change the screen calibration script and don't change the file order
  2. our application stored under /usr/local/bin and its name mp3_usb

14. Refrences

https://github.com/alzahraaelsallakh/Infotainment-System-Yocto https://projects.raspberrypi.org/en/projects/raspberry-pi-setting-up/1

About

IVI System

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages