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

Chrysler VIN fuzzy fingerprint #33000

Closed
wants to merge 8 commits into from

Conversation

ksfi
Copy link
Contributor

@ksfi ksfi commented Jul 15, 2024

May close commaai/opendbc#1092

Don't seem to be any pattern in fw versions that can give any hints except relative versioning so using VIN parsing like for VW
It seems that we can fully determine a Stellantis platform with chassis code (pos 4-5) + engine (pos 7) + year (pos 9)
Sources:
https://vpic.nhtsa.dot.gov/mid/home/displayfile/b5f541b7-8157-415d-889c-7f63628e9e66

@github-actions github-actions bot added the car vehicle-specific label Jul 15, 2024
Copy link
Contributor

github-actions bot commented Jul 15, 2024

Thanks for contributing to openpilot! In order for us to review your PR as quickly as possible, check the following:

  • Convert your PR to a draft unless it's ready to review
  • Read the contributing docs
  • Before marking as "ready for review", ensure:
    • the goal is clearly stated in the description
    • all the tests are passing
    • the change is something we merge
    • include a route or your device' dongle ID if relevant

@ksfi ksfi changed the title Chsyler VIN fuzzy fingerprint Chrysler VIN fuzzy fingerprint Jul 15, 2024
Comment on lines 152 to 155
# Check chassis code, engine and year to determine the platform
chassis_code = vin[4:6]
engine = vin[7]
year = vin[9]
Copy link
Contributor

@sshane sshane Jul 16, 2024

Choose a reason for hiding this comment

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

Does the engine denote the trim/or if hybrid? Recently we're erring on the side of allowing more variants to fingerprint, if we reasonably expect them to work fine. For example, on Toyota the Corolla and Corolla Hybrid are treated the same. If the engine code here is supposed to split those, perhaps we don't need it.

Copy link
Contributor Author

@ksfi ksfi Jul 16, 2024

Choose a reason for hiding this comment

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

Yes it denotes hybrid

Ok so maybe we can rearrange the platforms into 2:
CHRYSLER_PACIFICA_2017 that contains 2017_HYBRID, 2018_HYBRID and 2018
CHRYSLER_PACIFICA_2020 that contains 2020 and 2019_HYBRID

CHRYSLER_PACIFICA_2020 needs to be different because handled differently in interface.py

@sshane
Copy link
Contributor

sshane commented Aug 20, 2024

We've moved the car interfacing code to our opendbc repository, which is now the new home for car ports and fingerprints. Please re-open your pull request against opendbc at your convenience by using this command below. This will transform all changes under selfdrive/car/ to opendbc/opendbc/car/. Make sure you have initialized submodules beforehand and have checked out the latest opendbc commit.

PR_NUMBER=33045
curl -L https://github.com/commaai/openpilot/pull/$PR_NUMBER.patch | sed -e 's/selfdrive\/car/opendbc_repo\/opendbc\/car/g' | git apply -v --reject

Simply replace the PR number with your own. Once done, add the files, fix any conflicts, and open a new PR. Alternatively, you may start a new PR from scratch if that is easier for you.

@sshane sshane closed this Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
car vehicle-specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chrysler: reliable fuzzy fingerprinting
2 participants