+++ /dev/null
-SUMMARY = "Demo LIN configuration for DBC feeder for KUKSA.val"
-HOMEPAGE = "https://github.com/eclipse/kuksa.val"
-BUGTRACKER = "https://github.com/eclipse/kuksa.val/issues"
-
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
-
-SRC_URI += "file://config-sllin.ini \
- file://kuksa-dbc-feeder-sllin.service \
-"
-
-inherit allarch systemd
-
-SYSTEMD_SERVICE:${PN} = "${BPN}.service"
-
-do_install() {
- # NOTE: Installing into same /etc directory as the main configuration for now,
- # this may be worth re-evaluating at some point (e.g. splitting the DBC
- # files, having a dedicated token, etc.).
- install -d ${D}${sysconfdir}/kuksa-dbc-feeder
- install -m 0644 ${WORKDIR}/config-sllin.ini ${D}${sysconfdir}/kuksa-dbc-feeder/
- if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
- install -d ${D}${systemd_system_unitdir}
- install -m 0644 ${WORKDIR}/kuksa-dbc-feeder-sllin.service ${D}${systemd_system_unitdir}
- fi
-}
-
-FILES:${PN} += "${systemd_system_unitdir}"
-
-RDEPENDS:${PN} += " \
- kuksa-dbc-feeder \
- can-dev-helper \
- sllin-demo \
-"
+++ /dev/null
-[general]
-# use case:
-# switch between databroker and kuksa
-# default kuksa
-usecase = kuksa
-# VSS mapping file
-mapping=/etc/kuksa-dbc-feeder/mapping.yml
-
-[kuksa_val]
-# kuksa VSS server address
-server=wss://localhost:8090
-# JWT security token file
-token=/etc/kuksa-dbc-feeder/dbc_feeder.json.token
-
-[can]
-# CAN port
-port=sllin0
-#Enable SAE-J1939 Mode. False: ignore
-j1939=False
-# DBC file used to parse CAN messages
-dbcfile=/etc/kuksa-dbc-feeder/agl-vcar.dbc
+++ /dev/null
-[Unit]
-Description=Eclipse KUKSA.val DBC feeder (sllin0)
-Requires=kuksa-val.service sllin-demo.service
-After=kuksa-val.service sllin-demo.service
-
-[Service]
-ExecStartPre=/usr/sbin/can-dev-helper.sh /etc/kuksa-dbc-feeder/config-sllin.ini
-ExecStart=/usr/bin/dbcfeeder.py --config /etc/kuksa-dbc-feeder/config-sllin.ini
-Restart=on-failure
-
-[Install]
-WantedBy=multi-user.target
+++ /dev/null
-SUMMARY = "AGL demo configuration for HVAC service daemon"
-HOMEPAGE = "https://gerrit.automotivelinux.org/gerrit/#/admin/projects/apps/agl-service-hvac"
-SECTION = "apps"
-
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
-
-SRC_URI = "file://agl-service-hvac-can.conf.demo \
- file://sllin.conf \
-"
-
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
-do_configure[noexec] = "1"
-do_compile[noexec] = "1"
-
-do_install () {
- # Install configuration file to use sllin0 instead of the default
- # can0 CAN device.
- install -D -m 644 ${WORKDIR}/agl-service-hvac-can.conf.demo ${D}${sysconfdir}/xdg/AGL/agl-service-hvac-can.conf
-
- # Install systemd override to add a dependency on kuksa-dbc-feeder-sllin.service,
- # which currently brings up sllin0. This will need to be reworked in the future
- # to be a bit more straightforward.
- install -d ${D}${systemd_system_unitdir}/agl-service-hvac.service.d
- install -m 0644 ${WORKDIR}/sllin.conf ${D}${systemd_system_unitdir}/agl-service-hvac.service.d/
-}
-
-FILES:${PN} += "${systemd_system_unitdir}"
-
-RDEPENDS:${PN} += "agl-service-hvac kuksa-dbc-feeder-sllin"
+++ /dev/null
-[can]
-port = "sllin0"
+++ /dev/null
-[Unit]
-Requires=kuksa-dbc-feeder-sllin.service
-After=kuksa-dbc-feeder-sllin.service
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!--PCAN-LIN CT profile.-->
-<PCLIN_PROFILE Version="1">
- <LIN Group="2">
- <Scheduler_Entries Count="1">
- <!-- Poll steering wheel adapter at address 0x21 every 100 ms -->
- <Entry Time="100">33</Entry>
- </Scheduler_Entries>
- </LIN>
-</PCLIN_PROFILE>
+++ /dev/null
-[Unit]
-Description=LIN demo configuration
-ConditionPathExists=/dev/ttyUSB0
-
-[Service]
-Type=forking
-PIDFile=/run/lin_config/lin_config.pid
-ExecStart=/usr/bin/start_lin_demo.sh
-RemainAfterExit=yes
-
-[Install]
-WantedBy=multi-user.target
+++ /dev/null
-#!/bin/sh
-
-# Attach serial LIN->CAN bridge and set up LIN polling
-if [ -c /dev/ttyUSB0 ]; then
- sleep 1
- /usr/bin/lin_config -m -c /etc/lin_config.conf -a sllin:/dev/ttyUSB0
- mkdir -p /run/lin_config/
- pidof lin_config > /run/lin_config/lin_config.pid
- sleep 1
-else
- ip link add dev sllin0 type vcan
-fi
-ip link set sllin0 up
-
-# Initialize HVAC controller
-usleep 100000
-cansend sllin0 030#
-usleep 100000
-cansend sllin0 030#
-usleep 100000
-cansend sllin0 02A#
-usleep 100000
-cansend sllin0 02B#
-usleep 100000
-cansend sllin0 032#F0F8FFFFFFFFFFFF
-usleep 100000
-cansend sllin0 032#F0F8FFFFFFFFFFFF
-usleep 100000
-cansend sllin0 030#
-usleep 100000
-cansend sllin0 030#
-usleep 100000
-cansend sllin0 030#
-usleep 100000
-cansend sllin0 030#
-usleep 100000
-cansend sllin0 030#
-usleep 100000
-cansend sllin0 030#
-usleep 100000
-cansend sllin0 030#
-usleep 100000
-cansend sllin0 030#
-usleep 100000
-cansend sllin0 030#
-usleep 100000
-cansend sllin0 030#
-usleep 100000
-cansend sllin0 030#
-usleep 100000
-cansend sllin0 02D#
-usleep 100000
-cansend sllin0 02C#
-usleep 100000
-cansend sllin0 02D#
-usleep 100000
-cansend sllin0 02C#
-usleep 100000
-
+++ /dev/null
-DESCRIPTION = "AGL IVI demo slLIN driver configuration"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
-
-inherit allarch systemd
-
-SRC_URI = " \
- file://sllin-demo.service \
- file://start_lin_demo.sh \
- file://lin_config.conf \
-"
-
-SYSTEMD_SERVICE:${PN} = "sllin-demo.service"
-
-do_install:append () {
- install -d 644 ${D}/${bindir}
- install -m 0755 ${WORKDIR}/start_lin_demo.sh ${D}/${bindir}/start_lin_demo.sh
- install -d ${D}${systemd_system_unitdir}
- install -m 0644 ${WORKDIR}/sllin-demo.service ${D}${systemd_system_unitdir}/
- install -d ${D}${sysconfdir}
- install -m 0644 ${WORKDIR}/lin_config.conf ${D}${sysconfdir}/
-}
-
-FILES:${PN} += " \
- ${bindir}/start_lin_demo.sh \
- ${sysconfdir}/lin_config.conf \
-"
-
-RDEPENDS:${PN} += "lin-config"
# - demo-i2c-udev-conf:
# Adds udev configuration and scripts for supporting USB attached
# I2C devices for RTC and HVAC LED support.
-# - sllin-demo:
-# Adds systemd unit and scripting to drive configuring sllin
-# driver with lin-config utility, enabling HVAC fan control and
-# steering wheel controls in the demo.
-# - kuksa-dbc-feeder-sllin:
-# Adds configuration and systemd unit to run a second instance of
-# the DBC feeder against the sllin0 interface to connect the
-# steering wheel controls into VIS.
-# - agl-service-hvac-demo-conf:
-# Adds configuration to make agl-service-hvac use sllin0 for its
-# HVAC board control via CAN -> LIN.
# - simple-can-simulator:
# CAN message simulator for vehicle and engine speed message
# generation, with some support for the cruise control events from
RDEPENDS:${PN} = "\
packagegroup-agl-demo-platform \
demo-i2c-udev-conf \
- sllin-demo \
- kuksa-dbc-feeder-sllin \
- agl-service-hvac-demo-conf \
simple-can-simulator \
"