Repository navigation
Conversation
Japan-built crossovers sold outside North America carry the WMI JM7, which no Mazda platform lists. platform_from_vin finds no candidate for them, and the firmware fallback stops too, since only OCEANIA_EXPORT VINs continue to the EPS-swap path. A 2025 CX-5 with a JM7 VIN therefore never fingerprints, even though its chassis code KF and model year code S already match MAZDA_CX5_2022. Add JM7 as EXPORT_CROSSOVER, accept it on MAZDA_CX5_2022, and add the engine and transmission firmware read from that car. Its EPS, ABS and forward camera versions are already listed.
There was a problem hiding this comment.
Thanks for contributing to opendbc! 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
- include a route or your device' dongle ID if relevant
zephleggett
added a commit
that referenced
this pull request
Sep 25, 2026
JM7 is the WMI on Japan-built crossovers sold outside North America. No platform listed it, so platform_from_vin found nothing and the fuzzy path stopped as well, and a 2025 Latin-American CX-5 read as unknown although three of its five ECUs were already in the table. JM7 carries the same chassis and year fields as JM3, so it sits beside JM3 on every crossover platform; the car's engine and transmission versions are added. From #18 (klebeer), widened from MAZDA_CX5_2022 alone.
|
Merged onto danger-unstable as fc4c015, widened from your version: JM7 sits beside JM3 on every crossover platform, since it carries the same chassis and year fields and a 2017-21 export CX-5 or an export CX-9 would otherwise still read as unknown. Your two firmware strings are in as written. VIN tests cover JM7 KF S, KF L and TC P. We will test on the car from a personal branch before it reaches develop. Thanks for the clean report. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Adds the WMI
JM7and accepts it onMAZDA_CX5_2022, plus two firmware versions.JM7is the WMI Mazda uses for Japan-built crossovers sold outside North America. No platform lists it, soplatform_from_vinreturns no candidate, andmatch_fw_to_car_fuzzystops as well because onlyOCEANIA_EXPORTVINs continue to the EPS-swap fallback. The result is "unable to identify your car" on a car whose chassis code and model year code already match the platform.The car
2025 CX-5 AWD, Latin American market. VIN fields: WMI
JM7, chassis codeKF, model year codeS.KSD5-3210X-C-00KSD5-437K2-AGSH7-67XK2-UPWN8-188K2-PXDL-21PS1-CThree of the five were already in the table, which supports this being the same platform rather than a variant.
Files
opendbc/car/mazda/values.py:WMI.EXPORT_CROSSOVER = "JM7", added toMAZDA_CX5_2022.wmisopendbc/car/mazda/fingerprints.py: one engine version, one transmission versionVerification
platform_from_vinrun on device against the car's own VIN, with and without the added WMI:NoneMAZDA_CX5_2022MAZDA_CX5_2022is the only platform that acceptsJM7, so the VIN stays unambiguous, and aJM3VIN still resolves to the same platform. The firmware versions were read by the device's own query and are listed above; three of them already being in the table is what identifies the platform.Assisted-by: Claude