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: fix spotty FW query without comma power #32627

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

sshane
Copy link
Contributor

@sshane sshane commented Jun 5, 2024

See commaai/panda#1967 for what is exactly going on here.

Querying fwdCamera & fwdRadar on OBD port, then quickly switching to PT bus 1:

master: 1618132d68afc876/0000000c--c966bc8dce (each request is missing radar or camera or both)
this PR: 1618132d68afc876/0000000d--33b6b2e9ff (all requests have both radar and camera)

The above but a lot more requests per route:

master: 1618132d68afc876/00000008--a78cc51a8c
master: 1618132d68afc876/00000009--8c7533ceaf
this PR: 1618132d68afc876/0000000b--4dffacab79


TL;DR: messages sent while mux'd to the OBD2 port are stuck in the can core's hardware queue until we switch to the powertrain bus (bus 1 on HDA2 cars), at which point we send two first frames to the ECU since we didn't expect the message destined for the OBD2 port to stick around and end up sending.

@sshane sshane changed the title Hyundai: fix spotty FW query without comma power Hyundai CAN FD: fix spotty FW query without comma power Jun 5, 2024
@sshane sshane linked an issue Jun 5, 2024 that may be closed by this pull request
@sshane sshane marked this pull request as ready for review June 5, 2024 01:19
@sshane sshane merged commit a3d2d78 into master Jun 5, 2024
26 checks passed
@sshane sshane deleted the fix-missing-comma-power-fp branch June 5, 2024 01:22
@sshane
Copy link
Contributor Author

sshane commented Jun 5, 2024

thanks to @haram-KONA for his time spent lending his car for testing!

Edison-CBS pushed a commit to Edison-CBS/openpilot that referenced this pull request Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

“Dashcam Mode car unrecognized” occur.
1 participant