-
What is the purpose of the "mux criteria"? The C++ example denotes the following criteria:
After investigating the code, I did not understand the purpose of this criteria. Furthermore, when I call The C example has no obvious code therefore. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
In addition to normal signals, DBC also offers an opportunity to specify a multiplexer signal and multiplexed signals in messages. If a multiplexer signal is specified in a message, the multiplexer signal determines which multiplexed signals are in the frame. E.g. from
The message So to have a generic algorithm which decodes signals from an arbritary DBC, you first have to check, if the signal is a multiplexed signal. And if so, you have to compare the value from the DBC against the multiplexer value from the data frame you've received. |
Beta Was this translation helpful? Give feedback.
-
OK, now I understand this. Thank you- |
Beta Was this translation helpful? Give feedback.
-
This is great info, but how does one get the mux value using C? I have attempted to do this but do not properly parse the mux value.
|
Beta Was this translation helpful? Give feedback.
-
You can use this function: |
Beta Was this translation helpful? Give feedback.
In addition to normal signals, DBC also offers an opportunity to specify a multiplexer signal and multiplexed signals in messages. If a multiplexer signal is specified in a message, the multiplexer signal determines which multiplexed signals are in the frame.
E.g. from
tests/test_files/dbc/multiplex.dbc
: