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

Hongqi HS5 #24012

Closed
wants to merge 54 commits into from
Closed

Hongqi HS5 #24012

wants to merge 54 commits into from

Conversation

jyoung8607
Copy link
Collaborator

@jyoung8607 jyoung8607 commented Mar 21, 2022

Today we bring to you the glorious Hongqi HS5 from the FAW Car Company in China. Minimal port, work in progress.

TODO:

  • FAW: Add safety mode msgq#261
  • Hongqi: Add DBC for Hongqi HS5 opendbc#580
  • Hongqi HS5 panda#882
  • verify ABS wheel speed signal scaling, current value is a best estimate
  • need to identify more signals
    • turn signals
    • BSM (not sure if available on the test vehicle)
    • cruise control buttons
    • ACC speed setpoint
    • yaw rate, if available
    • EPS temp/perm fault states
    • parking brake
    • gearshift lever position
    • door open states
    • driver's seatbelt
    • stability control enabled
  • cancel spam on disengage
  • send LKAS HUD messages to instrument cluster
  • UDS fingerprinting (this should be easy based on tests from last year)
  • harness / wiring diagram docs (not really part of this PR, but needs to be done)
  • replay route

@GregorKikelj
Copy link
Contributor

This should probably get closed: #23630

@AdamsBlack
Copy link

glorious?

@jyoung8607 jyoung8607 changed the title FAW: Hongqi HS5 Hongqi HS5 Aug 24, 2022
@jyoung8607
Copy link
Collaborator Author

Working FPv2 based on the part number consistently returned from VEHICLE_MANUFACTURER_SPARE_PART_NUMBER. VIN query already worked fine. Have confirmed the engine, transmission, EPS, and fwdCamera. There is no fwdRadar; all FCW/AEB and adaptive cruise duties are handled by the fwdCamera on this vehicle.

Full scan of the vehicle with engine running: https://termbin.com/2n59

Test route: 7d3307665954222a|2022-10-17--22-17-18

Output:

               'carFingerprint': 'HONGQI HS5 1ST GEN',
               'carFw': [{'address': 2016,
                          'brand': 'hongqi',
                          'bus': 1,
                          'ecu': 'engine',
                          'fwVersion': b'3601015-DD21    ',
                          'request': [b'"\xf1\x87'],
                          'responseAddress': 2024,
                          'subAddress': 0},
                         {'address': 2017,
                          'brand': 'hongqi',
                          'bus': 1,
                          'ecu': 'transmission',
                          'fwVersion': b'3611015-DD01\x00\x00\x00\x00',
                          'request': [b'"\xf1\x87'],
                          'responseAddress': 2025,
                          'subAddress': 0},
                         {'address': 1826,
                          'brand': 'hongqi',
                          'bus': 1,
                          'ecu': 'fwdCamera',
                          'fwVersion': b'3616215-DD03-B  ',
                          'request': [b'"\xf1\x87'],
                          'responseAddress': 1834,
                          'subAddress': 0},
                         {'address': 1954,
                          'brand': 'hongqi',
                          'bus': 1,
                          'ecu': 'eps',
                          'fwVersion': b'3418310-DD01\x00\x00\x00\x00',
                          'request': [b'"\xf1\x87'],
                          'responseAddress': 1962,
                          'subAddress': 0}],
               'carName': 'hongqi',
               'carVin': 'LFB1E6079N1Y00406',

@adeebshihadeh adeebshihadeh added car vehicle-specific and removed ignore stale labels Apr 10, 2024
@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_repo/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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
car port car vehicle-specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants