-
Notifications
You must be signed in to change notification settings - Fork 49
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
Fix: Assign bitrate and loopback on for Socketcan #662
Conversation
Two changes are made in this commit. 1. For most of devices with Can hardware component, the Can interface cannot be brought up if the bitrate is not given. Therefore, I assign the bitrate for eff and sff local socketcan tests like what the remote socketcan tests do. 2. For local Socketcan test, loopback is the must need parameter be assigned before bringing the Can interface up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have much knowledge on the topic, so it's hard for me to review this, but thankfully you provide some submissions!
Where do the values you provide come from? For some of the commands, you issue a bitrate of 100,000 while for another one you set it to 1,000,000. Is this expected, or is it a typo?
If you have a source for the numbers you are using, could you add it in the commit message so that we know why we have these numbers?
Also, was this tested on the devices that were running these socketcan tests previously?
Codecov Report
@@ Coverage Diff @@
## main #662 +/- ##
======================================
Coverage ? 1.95%
======================================
Files ? 126
Lines ? 14950
Branches ? 2583
======================================
Hits ? 292
Misses ? 14595
Partials ? 63
Flags with carried forward coverage won't be shown. Click here to find out more. |
The value 100,000 was used in lots of Project Checkbox like I listed above (Baoshan, Limeric, Baytwon and others). But to be honest, I have no idea why they were 100,000 instead of 1,000,000. The value 1,000,000 is referenced from socketcan remote job.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes have been verified on different devices from different projects using socketcan and are known to work, so all good.
+1
Description
Two changes are made in this commit.
Resolved issues
No
Bitrate
& NoLoopback on
:Limeric Project
Baoshan Project
bitrate
be assigned.loopback on
isn't given.With
Bitrate
andLoopback on
:Baoshan Project
Baytown Project
Limeric Project
Documentation
N/A
Tests