-
Notifications
You must be signed in to change notification settings - Fork 3
Add support for FlexRay symbols #2
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
base: main
Are you sure you want to change the base?
Conversation
CI failed |
@@ -36,6 +36,7 @@ struct flexray_frame | |||
uint8_t cc; | |||
|
|||
uint8_t data[254]; | |||
uint8_t symbol_length; |
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.
In PCAP FlexRay symbol is defined as array of bytes, not just one value
The site explicitly states that a FR symbol frame has the measurement header of 1 byte and the symbol length of 1 byte, The SL[0..6] values represent a 7-bit unsigned integer (0-127). |
@@ -163,6 +163,9 @@ namespace pcapng_exporter { | |||
const uint8_t FR_HDR_SIZE = 7; | |||
uint8_t fr[FR_HDR_SIZE + 254] = { 0 }; | |||
fr[0] = (frame.channel << 6) | frame.type; | |||
uint8_t frame_length; | |||
if (frame.type == FR_TYPE_FRAME) |
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.
@aamereller, could you please fix the indentation inside the if / else blocks ?
@kayoub5 , could you please re run the CI ? do you have any other remarks ? |
ci failing |
I am not seing any pipeline being launched in #3. any explanation ? I am asking because nothing in the changes looks related to the CI failure. |
most likely because the branch came from a fork |
Regarding the CI: |
@aamereller , concerning the linux part, you can force the image For Windows CI, I will have a look and get back to you |
@aamereller , please try to replace this (https://github.com/Technica-Engineering/Technica.Traces.Pcapng.Exporter/blob/main/.github/workflows/cmake.yml#L32) with another altyernative since it seems that this issue is impacting others also in github. I have found different issues when searchin Please have a look on dotpcap/sharppcap#454 |
https://conan.io/center/recipes/libpcap?version=1.10.5 , you can have a look if needed to this alternative but it is not tested. (Thanks @kayoub5 for help) |
@aamereller , I think that the issue of CI on windows will persist because it is related tothe install of winpcap. Please refer to the previous suggestion |
@kayoub5 , CI is passing, do you still have any remark ? |
Hi @kayoub5, does this pull request look good to you? |
Do you already have matching PR for BLF or TECMP? |
- name: Install (macos) | ||
if: matrix.os == 'macos-latest' | ||
run: brew install libpcap | ||
|
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.
Why?
@kayoub5 , I think that those are topics that can be handled separetely in case of need |
The flexray export function does not support flexray frames as of now. The struct and exporter function have been adapted to also support FlexRay symbols.