Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyundai CAN-FD: Add CAN fingerprint fallback checks for HDA2 detection #1285

Merged
merged 9 commits into from
Sep 27, 2024

Conversation

sunnyhaibin
Copy link
Contributor

Description

Add fallback detection for HDA2 cars using CAM bus fingerprinting when ADAS Driving ECU response is absent.

Prerequisite of

@github-actions github-actions bot added car related to opendbc/car/ hyundai labels Sep 25, 2024
sunnyhaibin added a commit to sunnypilot/opendbc that referenced this pull request Sep 25, 2024
sunnyhaibin added a commit to sunnypilot/opendbc that referenced this pull request Sep 25, 2024
@jyoung8607 jyoung8607 self-assigned this Sep 26, 2024
Comment on lines 34 to 35
# Some HDA2 cars do not respond ADAS Driving ECU if the known HDA2 steering messages are present.
# The hda2 flag to initialize CanBus is not critical here since we only care about CAM bus steering messages.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we've ever verified what is sending LFA here btw. The ADAS could actually exist but behind a new gateway (a FW scan on OBD port should show it), or it could actually not exist and radar might take over this function.

@jyoung8607 jyoung8607 marked this pull request as draft September 26, 2024 21:33
@sunnyhaibin sunnyhaibin marked this pull request as ready for review September 26, 2024 21:53
opendbc/car/hyundai/interface.py Outdated Show resolved Hide resolved
opendbc/car/hyundai/tests/test_hyundai.py Show resolved Hide resolved
opendbc/car/hyundai/tests/test_hyundai.py Show resolved Hide resolved
@jyoung8607 jyoung8607 marked this pull request as draft September 26, 2024 23:09
@sunnyhaibin sunnyhaibin marked this pull request as ready for review September 27, 2024 02:59
@sunnyhaibin sunnyhaibin force-pushed the hyundai-canfd-hda2-alt-check branch from 68c6ae7 to f0a4a50 Compare September 27, 2024 03:04
@sunnyhaibin
Copy link
Contributor Author

Offline Validation

  • pytest opendbc
  • pytest selfdrive/car/tests
  • selfdrive/test/process_replay/test_processes.py

@jyoung8607
Copy link
Collaborator

Looks good! PR review bot fail looks to be a Docker outage.

@jyoung8607 jyoung8607 merged commit d332152 into commaai:master Sep 27, 2024
2 of 3 checks passed
jyoung8607 added a commit that referenced this pull request Sep 27, 2024
* HKG: Car Port for Genesis G80 2024 (2.5T, HDA2)

* Apply #1284

* Apply #1285

* add test route

* Update opendbc/car/hyundai/values.py

Co-authored-by: Jason Young <[email protected]>

---------

Co-authored-by: Jason Young <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
car related to opendbc/car/ hyundai
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants