- Newest
- Most votes
- Most comments
Hello Kamalnath,
The error message you're encountering indicates that there is an issue with the syntax or format of your DBC (Database Container) file, specifically related to the definition of signals and the assignment of Multiplex values (like S1) within a message (BO_).
The issue appears to be in your DBC file's definition of signal lines. In the DBC file format, each signal line (SG_) should be defined with specific attributes, such as start bit, length, byte order, and more. The error message suggests that there is a problem with the signal definition for "S1_PID_0C_EngineSpeed," "S1_PID_0D_VehicleSpeed," and "S1 Service."
Here's a corrected example for the signal definitions in your DBC file:
SG_ S1_PID_0C_EngineSpeed : 31|16@0+ (0.25,0) [0|16383.75] "rpm" Vector__XXX SG_ S1_PID_0D_VehicleSpeed : 23|8@0+ (1,0) [0|255] "km/h" Vector__XXX SG_ S1_Service : 11|4@0+ (1,0) [0|15] "" Vector__XXX
In the corrected lines above, I removed the multiplex value "m12," "m13," and "M" from the signal names because multiplexing values should not be part of the signal name in the DBC file. Instead, you should define the multiplexing relationship in the multiplexing settings section of the DBC file.
For example, in the multiplexing settings section of your DBC file, you can define how signals are multiplexed within a message (BO_). Assuming you want all three signals (S1_PID_0C_EngineSpeed, S1_PID_0D_VehicleSpeed, and S1_Service) to be multiplexed using the same "S1" multiplexer value, you can define it like this:
SG_MUL_VAL_ 2024 S1_PID_0C_EngineSpeed S1 12-12; SG_MUL_VAL_ 2024 S1_PID_0D_VehicleSpeed S1 13-13; SG_MUL_VAL_ 2024 S1_Service S1 1-1;
In this example, the multiplexing value "S1" is associated with all three signals within message 2024 (BO_ 2024), allowing you to represent multiple PIDs under a single message with the same multiplexing value.
Make sure to adjust the DBC file accordingly to match your specific use case and multiplexing requirements.
Please give a thumbs up if my suggestion helps
Relevant content
- asked a month ago
- asked a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
Thanks a lot Gabriel. Your response helped us to do multiplexing and decoding of multiple parameters in a single response. Eg: Data=04410C220113 (Vehicle speed and Engine speed multiplexed in a single response)
Can you suggest the dbc file format to handle if the multiple parameters are sent in separate responses with different PID's
Eg: Data=04410C001300 -> Engine speed Data=04410D220000 -> Vehicle speed