Skip to content

Add support in VHAL tool for generating property area IDs. - #555

Open
jankubovy wants to merge 2 commits into
COVESA:masterfrom
jankubovy:vhal-area-ids
Open

Add support in VHAL tool for generating property area IDs.#555
jankubovy wants to merge 2 commits into
COVESA:masterfrom
jankubovy:vhal-area-ids

Conversation

@jankubovy

Copy link
Copy Markdown
Contributor

Enables VHAL Area IDs

Maps instances into areas, e.g., seats, windows, mirrors.

Signed-off-by: Jan Kubovy <jan.kubovy@bmw.de>
VhalAreaType,
)

# All possible VSS positional instance strings (lowercase)

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.

why lowercase? And can customers overwrite possible keywords?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

just that it's consistent - will remove the comment, we are lowecasing that on use.


# Global VSS translation map (normalizing terminology)
VSS_SIDE_TO_COLUMN: dict[str, str] = {
"driverside": "left", # ambiguous

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.

Depends on the market, doesn't it?

@jankubovy jankubovy Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes it does. What is meant here is that VSS is defining "driverside", "driver", "passengerside", "passenger"and "middle", e.g. here:

Vehicle.Occupant:
  type: branch
  instances:
    - Row[1,2]
    - ["DriverSide","Middle","PassengerSide"]
  description: Occupant (Driver or Passenger) data.

while Android's Area IDs for seat define "left", "right", "center" (https://cs.android.com/android/platform/superproject/main/+/main:hardware/interfaces/automotive/vehicle/aidl_property/android/hardware/automotive/vehicle/VehicleAreaSeat.aidl)

A mapping needs to be done - the comment should highlight, that is not optimal.

if str(item) == value or item.name == value or item.value == value:
return item
logging.error(f"{cls} can have values: {', '.join(options)}; but was {value}")
sys.exit(1)

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 raise instead of sys.exit()

@erikbosch

Copy link
Copy Markdown
Collaborator

MoM:

  • Presented at meeting, please review

Signed-off-by: Jan Kubovy <jan.kubovy@bmw.de>
@jankubovy
jankubovy requested a review from sschleemilch August 26, 2026 07:27
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.

3 participants