eclipse-leda / meta-leda

Yocto / OpenEmbedded Meta-Layers for Eclipse SDV components
https://eclipse-leda.github.io/leda/
Apache License 2.0
8 stars 9 forks source link

Integrate and configure VUM and CUA #180

Closed vasilvas99 closed 1 year ago

vasilvas99 commented 1 year ago

VUM and CUA are now available as open source components.

This PR integrates and configures both VUM and CUA (as part of kanto).

The VUM domain is set as "vehicle", therefore the desiredstate topic would be vehicleupdate/desiredstate

Triggering a SUA update

Save as sua_example.json:

{
    "activityId": "random-uuid-as-string",
    "timestamp": 123456789,
    "payload": {
        "domains": [
            {
                "id": "self-update",
                "components": [
                    {
                        "id": "os-image",
                        "version": "v1beta3",
                        "config": [
                            {
                                "key": "image",
                                "value": "http://127.0.0.1:5555/bundle"
                            }
                        ]
                    }
                ]
            }
        ]
    }
}

Run:

mosquitto_pub -t "vehicleupdate/desiredstate" -f sua_example.json

Triggering a CUA update

Save as cua_example.json:

{
    "activityId": "testActivityId",
    "payload": {
        "domains": [
            {
                "id": "containers",
                "config": [],
                "components": [
                    {
                        "id": "hello-world",
                        "version": "latest",
                        "config": [
                            {
                                "key": "image",
                                "value": "docker.io/library/hello-world:latest"
                            }
                        ]
                    }
                ]
            }
        ]
    }
}

Run:

mosquitto_pub -t "vehicleupdate/desiredstate" -f cua_example.json