Skip to content

VSS to VHAL mapper.#441

Open
jankubovy wants to merge 10 commits intoCOVESA:masterfrom
jankubovy:vhal-generator
Open

VSS to VHAL mapper.#441
jankubovy wants to merge 10 commits intoCOVESA:masterfrom
jankubovy:vhal-generator

Conversation

@jankubovy
Copy link
Copy Markdown

@jankubovy jankubovy commented Mar 14, 2025

This mapper should serve as a basis for the ongoing generic VHAL discussions. See the docs/vhal.md for more information.

@jankubovy jankubovy force-pushed the vhal-generator branch 4 times, most recently from 10ed133 to 339db9e Compare March 14, 2025 14:58
@jankubovy jankubovy marked this pull request as draft March 14, 2025 15:01
@mikehaller
Copy link
Copy Markdown

Would you be able to provide an example vss_to_android_property_map.json ?

@jankubovy
Copy link
Copy Markdown
Author

Would you be able to provide an example vss_to_android_property_map.json ?

Just generate one with:
vspec export jsonvhal --vspec /path/to/vehicle_signal_specification/spec/VehicleSignalSpecification.vspec --min-property-id 32768 --vhal-map vss_to_android_property_map.json --output-dir /path/to/output

The --vhal-map is input/output. If the file does not exist it will be created. You just need to point to checked out https://github.com/COVESA/vehicle_signal_specification with the --vspec param.

Eventually COVESA should maintain a common vss_to_android_property_map.json but that should be discussed further. For now and testing everyone can just generate their own.

@jankubovy jankubovy force-pushed the vhal-generator branch 3 times, most recently from 9ad57fc to d23c553 Compare March 18, 2025 12:51
@jankubovy jankubovy requested a review from sschleemilch March 18, 2025 13:53
@jankubovy jankubovy force-pushed the vhal-generator branch 8 times, most recently from cc8c987 to a2c86a7 Compare March 21, 2025 17:02
@jankubovy
Copy link
Copy Markdown
Author

jankubovy commented Mar 24, 2025

Would you be able to provide an example vss_to_android_property_map.json ?

@mikehaller there are minimal examples in the tests if you just want to see how it may look like. E.g. tests/vspec/test_static_uids_vhal/validation_jsons/validation_group_1_min_32768.json

@erikbosch
Copy link
Copy Markdown
Collaborator

MoM:

  • Presented at meeting

@slawr
Copy link
Copy Markdown

slawr commented Jul 28, 2025

From the doc (https://github.com/COVESA/vss-tools/blob/a2c86a73c939c0818d88116771461c7186aee2c1/docs/vhal.md#property-change-mode):

STATIC : used to VSS node types ATTRIBUTE and ACTUATOR

Can you explain why an VSS actuator node has a static change mode? Perhaps I misunderstand the meaning of change mode in the mapper.

@jankubovy
Copy link
Copy Markdown
Author

From the doc (https://github.com/COVESA/vss-tools/blob/a2c86a73c939c0818d88116771461c7186aee2c1/docs/vhal.md#property-change-mode):

STATIC : used to VSS node types ATTRIBUTE and ACTUATOR

Can you explain why an VSS actuator node has a static change mode? Perhaps I misunderstand the meaning of change mode in the mapper.

Hi, I have overlooked https://covesa.github.io/vehicle_signal_specification/rule_set/data_entry/sensor_actuator/#actuator-type:

..., can be read and written. ...

should be same as sensor. I will fix that.

@jankubovy jankubovy force-pushed the vhal-generator branch 2 times, most recently from 7d7aeb0 to 14cd5b7 Compare August 4, 2025 09:37
@jankubovy jankubovy requested a review from sschleemilch August 4, 2025 09:44
@jankubovy jankubovy force-pushed the vhal-generator branch 2 times, most recently from 4739489 to a62c5bf Compare March 10, 2026 17:13
@jankubovy jankubovy requested a review from sschleemilch March 10, 2026 17:13
@erikbosch
Copy link
Copy Markdown
Collaborator

Still intentionally in draft @jankubovy ?

@jankubovy
Copy link
Copy Markdown
Author

Still intentionally in draft @jankubovy ?

Hi @erikbosch, thanks for asking. Since the AOSP part is now also out I need to just rebase it and then it can be merged.

@jankubovy jankubovy marked this pull request as ready for review April 7, 2026 10:55
Signed-off-by: Jan Kubovy <jan.kubovy@bmw.de>
Signed-off-by: Jan Kubovy <jan.kubovy@bmw.de>
Signed-off-by: Jan Kubovy <jan.kubovy@bmw.de>
Signed-off-by: Jan Kubovy <jan.kubovy@bmw.de>
Signed-off-by: Jan Kubovy <jan.kubovy@bmw.de>
Signed-off-by: Jan Kubovy <jan.kubovy@bmw.de>
@jankubovy jankubovy force-pushed the vhal-generator branch 3 times, most recently from e7c5029 to f29b5e6 Compare April 7, 2026 14:53
@jankubovy jankubovy requested a review from erikbosch April 7, 2026 15:04
@jankubovy jankubovy force-pushed the vhal-generator branch 3 times, most recently from 8218a62 to d93495c Compare April 8, 2026 08:49
- Change VSS permission naming scheme.
- Rename VSS VHAL to more generic OEM VHAL.
- Simplify parameters.

Signed-off-by: Jan Kubovy <jan.kubovy@bmw.de>
COVESA#500
Signed-off-by: Jan Kubovy <jan.kubovy@bmw.de>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand things correctly you are copying the current vspec and using it as test data. That is fine. But what is the intended approach forward? Shall these files be updated regularly when VSS master branch changes or is it ok to keep them static as long as they work. I was thinking if a small comment here or in a README on the tests are supposed to be maintained could be useful.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs/vhal.md Outdated
--vspec /path/to/vehicle_signal_specification/spec/VehicleSignalSpecification.vspec \
--property-group 4 \
--vhal-map vss_to_android_property_map.json \
--continuous-list-change-mode vss_continuous.json \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be --continuous-change-mode ?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also for the JSON files mentioned here - do we have any example files? I think it could have an example of the syntax for both vhal-map and continuous-list as well as example files so you easily could test out the tool.

In VSS we have as part of https://github.com/COVESA/vehicle_signal_specification/blob/master/.github/workflows/buildcheck.yml calls to Makefile to execute all exporters. If we would have a very simple example file just including say 5 stable VSS signals we could use that in VSS Continuous Integration for a sanity check that things seems still to work when VSS catalog changes.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added an explanation to the example: --continuous-change-mode is shown above, --vhal-map does not need to exist - it will be created upon first run.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can add some example in the Makefile of vehicle_signal_specification later :)

Signed-off-by: Jan Kubovy <jan.kubovy@bmw.de>
Signed-off-by: Jan Kubovy <jan.kubovy@bmw.de>
jankubovy

This comment was marked as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants