Add pattern for Vector BLF Frame Logging Format #409
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.
Adds a basic pattern for the Binary Logging Format used by VECTOR Informatik GmbH for logging various protocols found in vehicles, such as CAN (FD), LIN, MOST, FlexRay, Ethernet, and some others. This pattern currently only supports standard CAN and CAN FD frames, and the object structs would need to be added for the rest.
Note that the format (or the official exporter) is slightly stupid and the pattern might not work for other files with other data, since for example for
app_text
object the object size falsely does not include the null terminator of the string, making it impossible to "just skip" the object in the object array.I've opened this as a draft for now, since I'd be interested in getting some general feedback of how this pattern is written since this is my first ever, and I might look into adding more object formats in the future. There's also plenty of things I am not sure about how they work, and there's a lot of "padding" here that might actually contain data that I just don't know about. However, I would like for this format to be in this repository so that other people who might need to work with this format have a good reference as to how it is laid out.