-
Notifications
You must be signed in to change notification settings - Fork 1
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
Parse Fail Reduction By Message Splitting #90
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AarjavJain101
changed the title
Parse Fail Reduction + Raw View Feature
Parse Fail Reduction By Message Splitting
Jun 5, 2024
ishanjoshi23
approved these changes
Jun 5, 2024
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.
Tested.
Only feature that needs to be tested is filters in the payload from link_telemetry to the parser. Will release after this is tested. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem:
Solution:
link_telemetry.py
in the callback (see changes for details).Changes:
.gitignore
now contains the log foldersAPI.md
docs changed to reflect the necessary modifications to supportmain.py
having to split the incoming chunk into valid messages. The parser then sends back a dictionary containing one field calledall_responses
which maps to a list of dictionaries of the parsed messages that could be obtained from the big chunk passed. Each dictionary could contain aPARSE_FAIL
orOK
orINFLUX_WRITE_FAIL
status message.link_telemetry.py
: Chunk size is now 24 * 21 which is 21 CAN messages. This equals 504 bytes total and is as close to 512 bytes as possible. I chose to make it close to 512 because we were previously using a Chunk Size of 512 when we fixed IMU parse fails so I did not see reason to diverge from what the system can already accomplish.link_telemetry.py
: Modifiedprocess_response
function to handle the newall_responses
list.main.py
: Removed unnecessary functiontry_extract_measurements
.main.py
: Added logic to split length >= 45 messages for no write and bucket endpoints.tools/MemoratorUploader.py
: Fixed LOG file path to have the extension at the end (was missing before).Next Steps: