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

H7: fix GMLAN bitbang timer #1542

Merged
merged 3 commits into from
Oct 3, 2023
Merged

H7: fix GMLAN bitbang timer #1542

merged 3 commits into from
Oct 3, 2023

Conversation

briskspirit
Copy link
Contributor

No description provided.

@briskspirit briskspirit marked this pull request as ready for review August 7, 2023 20:41
@@ -119,6 +119,14 @@ def test_gmlan_bad_toggle(p):
assert comp_kbps_normal > (0.6 * SPEED_NORMAL)
assert comp_kbps_normal < (1.0 * SPEED_NORMAL)

@pytest.mark.panda_expect_can_error
@pytest.mark.skip_panda_types(PandaGroup.GMLAN)
def test_gmlan_bitbang(p):
Copy link
Contributor

Choose a reason for hiding this comment

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

does this test catch the bug? it was pretty subtle

Copy link
Contributor Author

Choose a reason for hiding this comment

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

bug was caused by wrong timer settings, so yes, was caught on RP everytime

for _ in range(10):
p.can_send(0x10, b"data", 3)
time.sleep(0.1)
assert p.health()['gmlan_send_errs'] == 0
Copy link
Contributor

Choose a reason for hiding this comment

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

also check the messages were sent on the loopback bus? do they get added there?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

don't think we ever forwarded those back, only rejected messages by safety mode.

tests/hitl/3_usb_to_can.py Show resolved Hide resolved
@adeebshihadeh
Copy link
Contributor

Can we finish this?

@briskspirit briskspirit merged commit 5778c0a into master Oct 3, 2023
@briskspirit briskspirit deleted the h7_fix_gmaln branch October 3, 2023 20:14
adeebshihadeh added a commit that referenced this pull request Nov 24, 2023
adeebshihadeh added a commit that referenced this pull request Nov 24, 2023
adeebshihadeh added a commit that referenced this pull request Nov 25, 2023
spektor56 added a commit to spektor56/panda that referenced this pull request Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants