-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Sending UDS message (FF+CF) #278
Conversation
Prepare system tests
- Add creation of Flow Control packets (for the next task =/). - Define Transmission Error and Waning. - Core implementation of synchronous sending of FF+CF message.
- Implement async message sending - add checks for n_br_measured - rework n_cr_measured and n_bs_measured - add timeout test after ff (detecting fc is received too late)
- Adjusted expectations in system tests - Provided examples of timing issues with python-can
- unit tests for _send_packets_block - unit tests for _async_send_packets_block - unit tests for send_message (error handling - unexpected packet and transmission interrupted)
Provide all unit tests for sending message feature. Fix a few defects in code.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #278 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 39 39
Lines 2425 2503 +78
Branches 596 612 +16
=========================================
+ Hits 2425 2503 +78
|
Add target to intergration tests branch coverage as 80% is used.
add flag so comments from bot contain coverage changes
must be set :(
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.
There are a few things to fix.
tests/system_tests/transport_interface/can_transport_interface/test_python_can.py
Outdated
Show resolved
Hide resolved
tests/system_tests/transport_interface/can_transport_interface/test_python_can.py
Outdated
Show resolved
Hide resolved
tests/system_tests/transport_interface/can_transport_interface/test_python_can.py
Outdated
Show resolved
Hide resolved
- update docstrings - move and improve n_bs_measured and n_cr_measured to AbstractCanTransportInterface - add more references to knowledge base - improve async systemn tests (task handling) - add missing assertions to unit tests
remove needless lines
- add system tests with message interrupting another message - fix async_frames_bugger issue
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.
There is one serious defect.
tests/system_tests/transport_interface/can_transport_interface/test_python_can.py
Outdated
Show resolved
Hide resolved
Fix defect with asynchronous implementation where in some cases received packets were ignored during message transmission.
fixes before PR merging
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.
LGTM
Description
Sending of segmented UDS messages over CAN (using python-can package).
How Has This Been Tested?
NOTE: Bug ticket #228 affects these changes.
Process
I know the process and did my best to follow it